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

Force dependence on boto3 credential providers #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Riebart
Copy link

@Riebart Riebart commented Jun 20, 2018

Kludging a credential provider when they're provided out of the box is poor form.

Contains a fair number of whitespace-only change due to linting for style done via yapf automagic.

  • Since this new method (and technically the old one too) allowed role/temporary credentials, the get_current_user() may have thrown, so this works around that.
  • Removes all references to explicit credentials, and falls back to the standard AWS credential provider mechanism.
  • Fixes a bug where the groups marker reference was to an undefined variable (caught in linting) when enumerating groups the user is part of.

Kludging a credential provider when they're provided out of the box is poor form.

- Since this new method (and technically the old one too) allowed role/temporary credentials, the get_current_user() may have thrown, so this works around that.
- Removes all references to explicit credentials, and falls back to the standard AWS credential provider mechanism.
- Fixes a bug where the groups marker reference was to an undefined variable (caught in linting) when enumerating groups the user is part of.
@Riebart Riebart mentioned this pull request Jun 20, 2018
@RajUmadas
Copy link

+1

1 similar comment
@kieranharrigan
Copy link

👍

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.

3 participants