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

Improve owner email handling #2843

Merged
merged 4 commits into from Sep 5, 2018
Merged

Improve owner email handling #2843

merged 4 commits into from Sep 5, 2018

Conversation

jaxxstorm
Copy link
Contributor

Currently, the only way to lookup an owner email address is via an OwnerContact tag or via LDAP.

This might be overkill in 2 scenarios:

  • An org uses SSO. In this case, the owner might already be an email address. This PR uses the existing target_is_email method to determine if an event-owner is already an email address, and if it is, use that address as the owner
  • Org AWS usernames match the email address for a user. This PR adds a configuration option, org_domain which will be appended to the aws_username with @ for the owner contact.

Lee Briggs added 3 commits September 4, 2018 15:43
Add more logging output for debugging purposes
If an org is using SSO of some kind, the username might already be an
email address.

Also updated the example.yml
@kapilt
Copy link
Collaborator

kapilt commented Sep 5, 2018

Thanks! All makes senses and sounds great.

@jaxxstorm
Copy link
Contributor Author

Awesome thanks @kapilt hoping to see this merged!

Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, re changes, reducing the log verbosity of the output, and focusing log output on items with informational value to a reader, alot of it feels like branch dev logging that just needs cleanup .

tools/c7n_mailer/c7n_mailer/email_delivery.py Outdated Show resolved Hide resolved
tools/c7n_mailer/c7n_mailer/email_delivery.py Outdated Show resolved Hide resolved
tools/c7n_mailer/c7n_mailer/email_delivery.py Outdated Show resolved Hide resolved
tools/c7n_mailer/c7n_mailer/email_delivery.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@kapilt kapilt merged commit 0121d35 into cloud-custodian:master Sep 5, 2018
sampritavh pushed a commit to sampritavh/cloud-custodian that referenced this pull request Nov 22, 2018
lamyanba pushed a commit to lamyanba/cloud-custodian that referenced this pull request Apr 23, 2019
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.

None yet

2 participants