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

Make the session token duration (or expiration) configurable by the user #43

Conversation

mihai-dinu
Copy link

These changes will allow a user to configure the session token duration to something more than the default (1 hour).

The duration is in seconds. In most cases, the AWS role needs to be changed to allow a session token for longer than 1 hour, but this is a trivial thing to do through the AWS console.

@mihai-dinu mihai-dinu force-pushed the feature/make-session-token-duration-updatable branch from a131d9c to 65e884c Compare July 31, 2018 14:25
@mihai-dinu mihai-dinu force-pushed the feature/make-session-token-duration-updatable branch from 65e884c to 7cee60f Compare July 31, 2018 17:17

/**
* Old data bound constructor. It is maintained to keep binary compatibility with clients that were using it directly.
*/
public AWSCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id,
@CheckForNull String accessKey, @CheckForNull String secretKey, @CheckForNull String description) {
this(scope, id, accessKey, secretKey, description, null, null);
this(scope, id, accessKey, secretKey, description, null, null, null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to keep the existing constructors to maintain binary compatibility. Instead of changing constructor, add new ones (moving the @DataBoundConstructor to the appropriate one) or use a @DataBoundSetter for the new field.

nathandines pushed a commit to nathandines/aws-credentials-plugin that referenced this pull request Feb 14, 2019
…he existing constructor

Recommendation based off of comment here: jenkinsci#43 (comment)
nathandines pushed a commit to nathandines/aws-credentials-plugin that referenced this pull request Feb 15, 2019
…he existing constructor

Recommendation based off of comment here: jenkinsci#43 (comment)
nathandines pushed a commit to nathandines/aws-credentials-plugin that referenced this pull request Feb 23, 2019
…he existing constructor

Recommendation based off of comment here: jenkinsci#43 (comment)
nathandines pushed a commit to nathandines/aws-credentials-plugin that referenced this pull request Feb 24, 2019
…he existing constructor

Recommendation based off of comment here: jenkinsci#43 (comment)
nathandines pushed a commit to nathandines/aws-credentials-plugin that referenced this pull request Feb 24, 2019
…he existing constructor

Recommendation based off of comment here: jenkinsci#43 (comment)
@andresrc
Copy link
Contributor

Superseded by #48

@andresrc andresrc closed this Feb 25, 2019
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