-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MWI: flexibility for AWS Roles Anywhere output #54229
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
Changes from all commits
6c62034
1495773
3cc2271
3187724
84f01c0
4eea1df
0965ed4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,19 @@ type WorkloadIdentityAWSRAService struct { | |
| // defaults to 1 hour. | ||
| SessionRenewalInterval time.Duration `yaml:"session_renewal_interval"` | ||
|
|
||
| // CredentialProfileName is the name of the AWS credentials profile to | ||
| // write to. If unspecified, the profile will be named "default". | ||
| CredentialProfileName string `yaml:"credential_profile_name,omitempty"` | ||
|
|
||
| // ArtifactName is the name of the artifact to write to. This is the | ||
| // filename of the file that will be written to the destination. This is | ||
| // by default "aws_credentials". | ||
| ArtifactName string `yaml:"artifact_name,omitempty"` | ||
| // OverwriteCredentialFile is a flag that indicates whether the output | ||
| // should overwrite the existing credentials file rather than merging with | ||
| // it. | ||
| OverwriteCredentialFile bool `yaml:"overwrite_credential_file,omitempty"` | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking of perhaps using a string enum here rather than a bool - in case we wanted to add some stricter modes in future (e.g "don't merge and don't overwrite - a safe mode"). WDYT
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good to me |
||
|
|
||
| // EndpointOverride is the endpoint to use for the AWS Roles Anywhere service. | ||
| // This is designed to be leveraged by tests and unset in production | ||
| // circumstances. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| type: workload-identity-aws-roles-anywhere | ||
| selector: | ||
| name: my-workload-identity | ||
| destination: | ||
| type: memory | ||
| role_arn: arn:aws:iam::123456789012:role/example-role | ||
| profile_arn: arn:aws:rolesanywhere:us-east-1:123456789012:profile/0000000-0000-0000-0000-00000000000 | ||
| trust_anchor_arn: arn:aws:rolesanywhere:us-east-1:123456789012:trust-anchor/0000000-0000-0000-0000-000000000000 | ||
| region: us-east-1 | ||
| session_duration: 59m0s | ||
| session_renewal_interval: 29m0s |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [foo] | ||
| aws_secret_access_key=existing | ||
| aws_access_key_id=existing | ||
| aws_session_token=existing | ||
|
|
||
| [default] | ||
| aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLESAK | ||
| aws_access_key_id=AKIAIOSFODNN7EXAMPLEAKID | ||
| aws_session_token=AQoDYXdzEJrtyWJ4NjK7PiEXAMPLEST |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [test-profile] | ||
| aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLESAK | ||
| aws_access_key_id=AKIAIOSFODNN7EXAMPLEAKID | ||
| aws_session_token=AQoDYXdzEJrtyWJ4NjK7PiEXAMPLEST |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [default] | ||
| aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLESAK | ||
| aws_access_key_id=AKIAIOSFODNN7EXAMPLEAKID | ||
| aws_session_token=AQoDYXdzEJrtyWJ4NjK7PiEXAMPLEST |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [default] | ||
| aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLESAK | ||
| aws_access_key_id=AKIAIOSFODNN7EXAMPLEAKID | ||
| aws_session_token=AQoDYXdzEJrtyWJ4NjK7PiEXAMPLEST |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [test-profile] | ||
| aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLESAK | ||
| aws_access_key_id=AKIAIOSFODNN7EXAMPLEAKID | ||
| aws_session_token=AQoDYXdzEJrtyWJ4NjK7PiEXAMPLEST |
Uh oh!
There was an error while loading. Please reload this page.