Security-Research icon indicating copy to clipboard operation
Security-Research copied to clipboard

Force dependence on boto3 credential providers

Open Riebart opened this issue 6 years ago • 2 comments

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.

Riebart avatar Jun 20 '18 05:06 Riebart

+1

RajUmadas avatar Aug 13 '18 19:08 RajUmadas

👍

kieranharrigan avatar Aug 13 '18 19:08 kieranharrigan