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 AWS session token duration a configurable setting #1067

Merged
merged 12 commits into from
Aug 12, 2021

Conversation

onkarbhat
Copy link
Contributor

Change Overview

  • Make the AWS session token duration a configurable setting

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Update callers of the function to pass default duration.
Update GetCredentials, so that it accepts the configured assume role duration instead
of the previous hard coded default.
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/secrets/aws_test.go Outdated Show resolved Hide resolved
onkarbhat and others added 8 commits August 10, 2021 18:12
Enable debug logging in AWS SDK
Updated an info log to debug log to print the expiration time..
Add back log with assumeRoleDuration. But made it a debug log instead of info log.
Co-authored-by: Pavan Navarathna <pavan@kasten.io>
pkg/aws/aws.go Outdated Show resolved Hide resolved
pkg/secrets/aws.go Outdated Show resolved Hide resolved
Added comments for the helper function.
@mergify mergify bot merged commit 68e326e into master Aug 12, 2021
@mergify mergify bot deleted the session_token_duration branch August 12, 2021 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants