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

Add 'Period' support to AWS IAM token renewal #3220

Merged
merged 1 commit into from
Aug 22, 2017

Conversation

EXPEddrewery
Copy link
Contributor

Period does not appear to be used when renewing a token created against an AWS role with an auth_type of "IAM".

This PR adds the support.

Note that I did not modify the default behaviour if Period is not set, though I suspect it may need to be updated to match what is done in for the EC2 auth_type (for shortest/longestTTL determination).

@jefferai
Copy link
Member

Looks good! The extra TTL handling for the EC2 method is due to the fact that TTLs can be embedded in role tags. I don't think it's necessary here; the framework function will handle ensuring that it can't go above mount/system max limits.

@jefferai jefferai merged commit a4f4e5b into hashicorp:master Aug 22, 2017
@EXPEddrewery
Copy link
Contributor Author

EXPEddrewery commented Aug 22, 2017

Thanks @jefferai!

Yes the framework code appeared to do the same thing but I wasn't 100% sure.

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.

2 participants