Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

fix(print): Segment fault if cannot assume role #36

Merged
merged 2 commits into from
Feb 24, 2021
Merged

Conversation

rtkjbeverly
Copy link
Contributor

If print cannot assume a role, then error instead of attempting to print invalid credentials.

This resolves the issue where if the AssumeRole cannot be assumed with the permissions of the AWS SSO Role, then it will attempt to print nil credentials, resulting in a segfault (panic: runtime error: invalid memory address or nil pointer dereference). This can reproduced by removing all policies from an SSO role, resulting in AssumeRole failing on permission denied.

@rtkjbeverly rtkjbeverly self-assigned this Feb 24, 2021
@rtkjbeverly rtkjbeverly merged commit a8c5ca4 into main Feb 24, 2021
@rtkjbeverly rtkjbeverly deleted the assume-role-guard branch February 24, 2021 19:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant