Http Post Basic Auth credentials stored on environment variables #216
-
Hello Since some credentials can be passed through environment variables (e.g. ElasticSearch) or files (e.g. jira creds), would it be possible to use the same for basic authorization with http posts? From a CI/CD perspective it would be more practical to read the creds from environment variables injected into the containers. This has been mentioned on other github issues but the solutions were hacky. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I think that basic authentication is not supported by http_alerter, but is it actually moving? |
Beta Was this translation helpful? Give feedback.
-
It is possible to use environment variables in the rule because the following pull requests are included. |
Beta Was this translation helpful? Give feedback.
-
@nsano-rururu Basic auth is supported in http-post alerts via the header setting. The example in the docs shows one way to do this. https://elastalert2.readthedocs.io/en/latest/ruletypes.html#http-post @tl-Bruno-Braga Could you tell me what prompted you to create an issue for this topic, instead of creating a discussion? I've tried to communicate that questions do not belong in this issues list (See default issue template, pinned discussion post, and project guidelines document), but the community continues to open issues instead of discussions. So if you could help me understand your reasoning for posting the question here that might help me improve this. |
Beta Was this translation helpful? Give feedback.
-
The following "123dr3234" actually specifies the character string in which the user ID: password is Base64-encoded.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for reaching out fellas. Apologies for creating the issue instead of discussion @jertel . |
Beta Was this translation helpful? Give feedback.
@tl-Bruno-Braga
It is possible to use environment variables in the rule because the following pull requests are included.
#149