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

How to add s3 access and secret key to helm charts without customize the image. #469

Open
ganilmca opened this issue Sep 13, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ganilmca
Copy link

Hi Team,

We were trying to add s3 access and secret key in helm charts, but it's not working.
If we customize the image then its working fine, but we have many customers so we need to add these creds to helm charts.
If we customize the image then the same will not use with another customer.

As of now we tried to add s3 access and secret keys in below ways.

  1. To add with environment variables.
  2. To add with secrets
  3. To add with life cycle.

If anyone done this can you please suggest us how to do it.

NOTE: Here we are using opensearch-2.9.0 version

Thanks,
Anil

@ganilmca ganilmca added enhancement New feature or request untriaged Issues that have not yet been triaged labels Sep 13, 2023
@peterzhuamazon peterzhuamazon added the good first issue Good for newcomers label Sep 13, 2023
@smlx
Copy link
Contributor

smlx commented Sep 15, 2023

You need to add the s3.client.default.access_key and s3.client.default.secret_key in the keystore as described here. Add the values to a secret, and list the secret in the chart values here, which will load the values into the keystore when the container starts.

@ganilmca
Copy link
Author

Hi @smlx ,

We want to add these s3.client.default.access_key and s3.client.default.secret_key at the time of container will start, but we couldn't do that.
We tried to add these keys in initcontainer, but its not taking and also we have created the secret keys and added to in helm charts that time it was not working.
Is there any way to add it please let us know with step by step procedure.

Thanks
Anil

@prudhvigodithi prudhvigodithi removed the untriaged Issues that have not yet been triaged label Oct 10, 2023
@prudhvigodithi
Copy link
Member

[Untriage]
Adding @tranngocsongtruc @SkollRyu @premkirank can you please take a look?

@ztripez
Copy link

ztripez commented Mar 19, 2024

We have the same issue, to add the keys to image is a big no. We can't rebuild the image each time we need change the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: 📦 Backlog
Development

No branches or pull requests

5 participants