Skip to content

MWI: flexibility for AWS Roles Anywhere output#54229

Merged
strideynet merged 7 commits intomasterfrom
strideynet/further-configurability-for-aws-output
Apr 24, 2025
Merged

MWI: flexibility for AWS Roles Anywhere output#54229
strideynet merged 7 commits intomasterfrom
strideynet/further-configurability-for-aws-output

Conversation

@strideynet
Copy link
Copy Markdown
Contributor

@strideynet strideynet commented Apr 23, 2025

Provide further flexibility of the AWS Roles Anywhere service:

  • Ability to set file name
  • Ability to customize profile name
  • Ability to control merge/overwrite behaviour

changelog: More customizability options for the AWS Roles Anywhere MWI service

Comment thread lib/tbot/config/service_workload_identity_aws_ra.go
// 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"`
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good to me

@strideynet strideynet marked this pull request as ready for review April 23, 2025 12:28
@github-actions github-actions Bot requested review from boxofrad and timothyb89 April 23, 2025 12:28
Comment thread lib/tbot/config/service_workload_identity_aws_ra.go
// 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"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good to me

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from timothyb89 April 24, 2025 09:39
@strideynet strideynet added this pull request to the merge queue Apr 24, 2025
Merged via the queue into master with commit 0882726 Apr 24, 2025
47 checks passed
@strideynet strideynet deleted the strideynet/further-configurability-for-aws-output branch April 24, 2025 10:01
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@strideynet See the table below for backport results.

Branch Result
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants