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

Handle STS errors more gracefully #24

Open
aripalo opened this issue May 9, 2022 · 0 comments
Open

Handle STS errors more gracefully #24

aripalo opened this issue May 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@aripalo
Copy link
Owner

aripalo commented May 9, 2022

If user configures invalid values (such as too long duration_seconds) then STS will return an error. This error is not processed and instead the end-user receives the following error with a stack trace:

Error when retrieving credentials from custom-process: panic: operation error STS: AssumeRole, https response error StatusCode: 400, RequestID: ****************************, api error ValidationError: The requested DurationSeconds exceeds the MaxSessionDuration set for this role.

goroutine 1 [running]:
github.com/aripalo/vegas-credentials/internal/credentials.(*Credentials).New(***********, {*********, ******})

This does not "break" anything per se but it's not a nice user experience.

@aripalo aripalo added the bug Something isn't working label May 9, 2022
@aripalo aripalo changed the title Catch STS errors Handle STS errors more gracefully May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant