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

S3 assume role support #290

Closed
wants to merge 4 commits into from
Closed

S3 assume role support #290

wants to merge 4 commits into from

Conversation

hakanmemisoglu
Copy link
Contributor

@hakanmemisoglu hakanmemisoglu commented Sep 13, 2019

Change Overview

Add Kanister to support assuming roles for S3 operations.

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 Plan

  • Manual
  • Unit test
  • E2E

Hakan Memisoglu added 3 commits September 11, 2019 17:19
It will be used to signal S3 provider to switch roles
before establishing connection.
@hakanmemisoglu hakanmemisoglu changed the title S3 role S3 assume role support Sep 13, 2019
if err != nil {
return nil, errors.Wrap(err, "Failed to get role credentials")
}
return &awsCreds{
Copy link
Contributor

Choose a reason for hiding this comment

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

note: not for this PR, but we should consider using the AWS type credential.Value

@hakanmemisoglu hakanmemisoglu marked this pull request as ready for review September 13, 2019 20:33
@@ -48,9 +49,11 @@ type ObjectStoreProviderSuite struct {
const (
testBucketName = "kio-store-tests"
testRegionS3 = "us-west-2"
testRole = ""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to create a role for Kanister test purpose, and make it settable by environment variables.

@hakanmemisoglu
Copy link
Contributor Author

Closing this one in favor of #292

@pavannd1 pavannd1 deleted the s3-role branch October 1, 2019 21:08
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