Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 43,111
    • Issues 43,111
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,371
    • Merge requests 1,371
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Merge requests
  • !35480

Use S3 Workhorse client with consolidated object store settings

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Stan Hu requested to merge sh-enable-workhorse-s3-client-consolidated into master Jun 27, 2020
  • Overview 16
  • Commits 1
  • Pipelines 8
  • Changes 6

In GitLab 13.1.0, we added an S3 client to Workhorse (gitlab-workhorse!466 (merged)). Previously this client would only be enabled if AWS instance profiles (use_iam_profile) were used. We extend this functionality if the consolidated object storage settings are enabled for AWS.

This will fix ETag Mismatch errors with non-AWS S3 providers and pave the way for supporting encrypted S3 buckets with customer-provided keys.

Relates to #220288 (closed)

Testing

In the GDK, this can be tested by commenting out all the other XXX.object_store fields (e.g. lfs.object_store, artifacts.object_store, etc.) in gitlab.yml and adding this blurb:

  object_store:
    enabled: true
    connection:
      provider: AWS
      aws_access_key_id: minio
      aws_secret_access_key: gdk-minio
      region: gdk
      endpoint: 'http://127.0.0.1:9000'
      path_style: true
    proxy_download: true
    objects:
      artifacts:
        bucket: artifacts
      external_diffs:
        bucket: external-diffs
      lfs:
        bucket: lfs-objects
      uploads:
        buckets: uploads
      packages:
        bucket: packages
      dependency_proxy:
        bucket: dependency_proxy
      terraform_state:
        bucket: terraform
Edited Jul 02, 2020 by Stan Hu
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sh-enable-workhorse-s3-client-consolidated