-
Notifications
You must be signed in to change notification settings - Fork 228
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 configure a secret in opensearch.yml config. #458
Comments
@prudhvigodithi Any idea on this? |
Hey @vamsi-amazon, you can pre-create the secret and mount the secret using Example:
When you add as secret, make sure you comment this line https://github.com/opensearch-project/helm-charts/blob/main/charts/opensearch/values.yaml#L48 that asks for |
@prudhvigodithi are you suggesting to create entire opensearch.yml as a secret volume and mount it? |
yes @vamsi-amazon , that how a secret and a k8s secret mount works, the secrets will be encoded and will replace the mount path (the full file path or directory), so it needs to be a complete file. |
Is there a way just for using k8's secrets inside of opensearch.yml, not whole file plugins.query.datasources.encryption.masterkey: {K8's secret} |
Is this setting |
@vamsi-amazon Is your setting supported as env variable? |
@prudhvigodithi @Flyingliuhub I didn't know what that means? |
@vamsi-amazon certain OpenSearch configs can be passed as environment values ex |
Closing this issue, please feel free to re-open if required. |
Is your feature request related to a problem? Please describe.
I am looking out for a way to configure opensearch.yml with a secret.
For eg:
plugins.query.datasources.masterkey: "secret"
Above master key can't be committed to github, so we need a way to integrate opensearch.yml with secrets in K8s.
The text was updated successfully, but these errors were encountered: