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
SMTP config: add global and local password file fields #3038
SMTP config: add global and local password file fields #3038
Commits on Sep 12, 2022
-
SMTP config: add global and local password file fields
Add config fields (for both global email config and route-specific email config) that specify path to file containing SMTP password. We don't want the password in the config file itself, and reading the password from a k8s-secret-backed file keeps the password itself "encrypted at rest" in etcd, and cleanly separated from the rest of the AM config. I used the same approach as pull request prometheus#2534 "Add support to set the Slack URL in the file" <https://github.com/prometheus/alertmanager/pull/2534/files> in the upstream repo. Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for e2971ee - Browse repository at this point
Copy the full SHA e2971eeView commit details -
changed *AuthPasswordFile field types to string per review feedback
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 397db16 - Browse repository at this point
Copy the full SHA 397db16View commit details -
added error to getPassword() retval per review feedback
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for c66e4ea - Browse repository at this point
Copy the full SHA c66e4eaView commit details -
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 751ecd3 - Browse repository at this point
Copy the full SHA 751ecd3View commit details -
update docs to reflect field type change
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 936a7de - Browse repository at this point
Copy the full SHA 936a7deView commit details
Commits on Sep 13, 2022
-
don't treat username-without-password as invalid
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 803d8bb - Browse repository at this point
Copy the full SHA 803d8bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ad5936 - Browse repository at this point
Copy the full SHA 4ad5936View commit details -
Apply suggestions from code review
Co-authored-by: Simon Pasquier <spasquie@redhat.com> Signed-off-by: Eric R. Rath <4080262+ericrrath@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 114b26c - Browse repository at this point
Copy the full SHA 114b26cView commit details -
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 9091654 - Browse repository at this point
Copy the full SHA 9091654View commit details
Commits on Sep 14, 2022
-
added sub-test per review feedback
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for ba8a3bb - Browse repository at this point
Copy the full SHA ba8a3bbView commit details
Commits on Sep 15, 2022
-
added test on Email.getPassword() per feedback
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for da48e29 - Browse repository at this point
Copy the full SHA da48e29View commit details -
only inherit global SMTP passwords if neither local password field is…
… set Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for d51d1b3 - Browse repository at this point
Copy the full SHA d51d1b3View commit details -
removed blank line caught by gofumpt
Signed-off-by: Eric R. Rath <eric.rath@oracle.com>
Configuration menu - View commit details
-
Copy full SHA for 1444875 - Browse repository at this point
Copy the full SHA 1444875View commit details