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
Cannot use environment variable for aws_sec_key or aws_key_id #340
Comments
aws_sec_key
or aws_key_id
aws_sec_key
aws_sec_key
I use https://github.com/helm/charts/tree/master/stable/fluentd helm chart and using env var is fine just like your config. However, when I use google-fluentd, I ran into the same problem you have.
My config looks like this with the keys hard coded:
I tried using IAM with S3 permission, that did not work. I also try AWS access and secret key. That did not work. Not sure why may be fluent-plugin-s3-1.1.10 does not work? |
I figured out what is wrong with my config. My bucket name is wrong, once I corrected it. The error went away. I did not have to put "" for the keys. |
@repeatedly why is this closed? |
Ah, sorry, this is my mistake. I didn't notice last comment author and issue author are different.... |
I am also observing this issue using the bitnami chart https://artifacthub.io/packages/helm/bitnami/fluentd For OP: even with alphanumeric characters I get the same error For me it looked like a problem of how the base64 string was generated (and I guess encoding),
by doing this (in Helm), it started working |
In my case I found that this was caused by improperly encoding the secret value as if you do
The base 64 encode will be wrong because by default Instead you need to do
|
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
/reopen |
@woodcockjosh #340 (comment) work for you? |
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
My issue was also including the newline character in the base64 encoding. Very tricky bug 🐛. Thank you. |
I have the following configmap which gets mounted to
/fluentd/etc/conf.d/s3.conf
I get the following error in the fluentd container:
I have verified that the environment variable is properly set. If I change the config to hard code the
aws_sec_key
andaws_key_id
into the configmap then everything works fine but that is obviously not ideal.Could this have something to do with there being a
+
symbol in the secret access key?The text was updated successfully, but these errors were encountered: