-
Notifications
You must be signed in to change notification settings - Fork 163
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
securely store S3 credentials for S3Boto3Storage #516
Comments
Thanks for filing this issue, @gclawes. |
That's the approach that I'm currently taking (though I haven't gotten my instance to the point of using the S3 storage yet, so I haven't validate it). I'm currently creating the secret with with |
Thanks for your reply. |
At a minimum for documentation, putting a note here in the recommendation for S3 configs that secrets here are stored insecurely I think would guide users away from it: netbox-chart/charts/netbox/values.yaml Lines 318 to 323 in 0ab927e
As for functional changes, I think having a dedicated https://github.com/netbox-community/netbox-chart/blob/main/charts/netbox/templates/secret.yaml Would you like me to edit the original post in this issue with this request? |
Alright, this sounds good, it's a good idea. 👍
This addition would match a too specific use case to be included.
As you wish, but this is not necessary 😊 |
Proposed functionality
Currently STORAGE_CONFIG is stored in the config
ConfigMap
, which prevents it from being encrypted with cluster secret encyrption:netbox-chart/charts/netbox/templates/configmap.yaml
Line 83 in 0ab927e
In particular, this can contain the
AWS_SECRET_ACCESS_KEY
value when usingSTORAGE_BACKEND: storages.backends.s3boto3.S3Boto3Storage
.The
S3Boto3Storage
backend supports reading S3 credentials from environment variables instead of the config file, it would be useful to store these in a secret that can be exposed as environment variablesUse case
Securely storing S3 credentials would prevent unauthorized leaking of these secrets.
The text was updated successfully, but these errors were encountered: