Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): add external s3 uri #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benjamin-texier
Copy link
Collaborator

@benjamin-texier benjamin-texier commented Dec 6, 2021

See MEN-5280

Issue

In the self-hosted kubernetes version of Mender, you provide a way to set up S3 storage on minio.

Deployments only takes one variable for AWS_URI. This variable is used by Deployments itself to talk with minio and by IoT devices to fetch artifacts.

With only one URI, it is not possible to use mTLS to validate incoming connections (or you have to rebuild the mender-deployments image to add a client certificate in it).

Also, this requires connections between deployments and minio to be outbound of the cluster

Our modifications

The simplest way would be to have two endpoints, AWS_URI and AWS_EXTERNAL_URI:

  • AWS_URI: connection between the service deployment and S3 storage
  • AWS_EXTERNAL_URI: base URI for frontend and artifacts URIs sent to devices.

Example

Parameter Description Example value Default
global.s3.AWS_URI minio internal endpoint http://minio:9000  
global.s3.AWS_EXTERNAL_URI minio external endpoint https://mender.webdomain.com {global.s3.AWS_URI}

Docker images

docker pull upciti/mender-deployments:latest

@benjamin-texier benjamin-texier force-pushed the feature/add-s3-external-uri branch 2 times, most recently from 2ceb4bd to 7dc7398 Compare December 6, 2021 13:00
@benjamin-texier benjamin-texier force-pushed the feature/add-s3-external-uri branch 3 times, most recently from 87eeaa8 to 1b09935 Compare December 20, 2021 08:48
@benjamin-texier benjamin-texier changed the title feat(aws): add external s3 uri feat(storage): add external s3 uri May 17, 2022
@benjamin-texier benjamin-texier force-pushed the feature/add-s3-external-uri branch 7 times, most recently from 8dd0c58 to 486fe73 Compare May 18, 2022 07:50
Changelog: Allow to use S3 Exernal URI
Ticket: MEN-5280

Signed-off-by: Benjamin Texier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant