Cloud native job logs do not support S3 server side encryption
Currently Ci::BuildTraceChunk
does not support AWS server side encryption because it does not pass along the required Fog attributes in the create
attributes in https://gitlab.com/gitlab-org/gitlab/blob/e6bfc2bc1a060e24b848e5e37aeca27ed272f40f/app/models/ci/build_trace_chunks/fog.rb#L18-21.
This should be an easy fix. We need to pass the attributes from ObjectStorage::Config#fog_attributes
: https://gitlab.com/gitlab-org/gitlab/blob/da81bdb0f6b285fa69a94fa6ba9473fb072958a9/lib/object_storage/config.rb#L85
Edited by Stan Hu