Skip to content
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

[minor] Add smtp and ldap credentials from SM option for gitops #1164

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

whitfiea
Copy link
Contributor

@whitfiea whitfiea commented Aug 8, 2024

Changes the giotps_mas_config so that the smtp and ldap credentials are now optionally passed in. First the function will check if the smtp or ldap credentials have been passed into the function, if not then the secrets manager will be checked in the following secret locations for entries:

${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}${MAS_INSTANCE_ID}${SECRETS_KEY_SEPERATOR}smtp and the keys username and password

${ACCOUNT_ID}${SECRETS_KEY_SEPERATOR}${CLUSTER_ID}${SECRETS_KEY_SEPERATOR}${MAS_INSTANCE_ID}${SECRETS_KEY_SEPERATOR}ldap and the keys bindDN and bindPassword

This change also adds a check to verify that secrets exist when we expect them, and outputs an error if not found:

image- 2024-08-08 at 14 58 29

image- 2024-08-08 at 15 09 10

and finally tested by just setting the values in SM and the argo apps work:

image- 2024-08-08 at 15 57 51

@whitfiea whitfiea merged commit 2f07697 into master Aug 8, 2024
8 checks passed
@whitfiea whitfiea deleted the ajw-mascore-3446 branch August 8, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant