Closed AzureLeMoon closed 2 months ago
hello @edsiper , i saw that this was added to the 3.1.3 milestone, are there any updates? is there extra info you'd need that i could provide ?
Addressed in PR #9255
Addressed in PR #9255
Hey there, I saw that you changed the base parameters(keys like host,port, etc..) to be translated from env variables if applicable,
however parameters used by the caller plugin( in this case out_forward) are still stored in a hashmap which means they wont be translated from env variables, the most notable parameter is the Shared_Key which means the password for connecting to the endpoint still needs to be in plaintext.
It would be much appreciated if this was handled as well
Sure, I missed that detail and thought the only part of the system that lacked that feature was the ha stuff. I'll add that as well =)
I think my last commit should cover the missing feature, I'd really appreciate it if you gave me some more feedback.
@leonardo-albertovich hey thanks for the follow up. I built a docker image using your branch and tested it, I was able to use env variables to set the Shared_Key and other parameters so everything seems to be in order. looking forward to this change being merged and released so we can start using it in prod.
thanks everyone. this will be available on 3.1.7
Bug Report
Describe the bug the upstream config file used by the
forward
plugin does not support use of environmental variables and assigns empty values instead of using the env var. this is problematic when trying to for example assign theshared_key
orport
parameters, since it means the parameters need to be set in plaintext inside the upstream config which would raise security concerns in case ofshared_key
.To Reproduce
in case of using an env var for
share_key
:if the password is set in plain text however the connection succeeds.
in case of using an env var for
port
:Steps to reproduce the problem:
[NODE] name node-1 host fluentd-01.example.com port ${FLUENTD_PORT} Shared_Key ${FLUENTD_PASSWORD} Self_Hostname flb.local tls on tls.verify off
[NODE] name node-2 host fluentd-02.example.com port ${FLUENTD_PORT} Shared_Key ${FLUENTD_PASSWORD} Self_Hostname flb.local tls on tls.verify off
[NODE] name node-3 host fluentd-03.example.com port ${FLUENTD_PORT} Shared_Key ${FLUENTD_PASSWORD} Self_Hostname flb.local tls on tls.verify off
address the config file in the output plugin: