Skip to content

Adding secure files settings to consolidated object storage

Darby Frey requested to merge secure_files_consolidated_object_storage into master

What does this MR do and why?

This MR adds support for consolidated object storage to the Secure Files feature.

Closes gitlab-org/incubation-engineering/mobile-devops/readme#124

How to set up and validate locally

  1. Update gdk.yml adding the object storage configuration for ci_secure_file, for example:

    object_store:
      enabled: true
      consolidated_form: true
      connection:
        provider: 'AWS'
        aws_access_key_id: '<YOUR AWS ACCESS KEY ID>'
        aws_secret_access_key: '<YOUR AWS SECRET ACCESS KEY>'
      objects:
        ci_secure_files:
          bucket: your-bucket-name
  2. gdk reconfigure and gdk restart

  3. Go to CI/CD settings for any project (i.e. /flightjs/Flight/-/settings/ci_cd) and upload a new file under the Secure Files section at the bottom of the page. Use the fixture file in spec/fixtures/ci_secure_files/sample.cer.

  4. Confirm the upload request completed successfully, and that the file had been uploaded to the object storage bucket

  5. Refresh the page and click the blue View Metadata button for the file

    image

  6. Confirm the sample file metadata looks similar to the screenshot below

    image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vitali Tatarintev

Merge request reports