-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
export configuration as plain text with secrets? #2004
Comments
zetaab
changed the title
export configuration as plain text?
export configuration as plain text with secrets?
Aug 20, 2019
You could work from the file on disk. |
Closing as a duplicate of #1985. |
@brian-brazil do you have tip for that? I tried following
but the problem is that in file its still So I am trying to make new alertmanager configuration using alertmanager libs and then output that as string or similar. However, for me this looks like really difficult. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to export alertmanager configuration as plain text, because I am inserting it to kubernetes configmap. The problem is that when I marshal/unmarshal things the secrets are replaced with
<secret>
. Is there any way to avoid removing secrets from the configuration.Example
alertmanager.String() will produce:
instead I would like to have
Of course I can run
strings.Replace(alertmanager.String(), "<secret>", "placeholder", -1)
. However, the problem starts when there are multiple secrets in configuration.The text was updated successfully, but these errors were encountered: