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

Same PAT, Same Source, Different KVs #4141

Open
3 tasks
missymessa opened this issue Sep 20, 2024 · 0 comments
Open
3 tasks

Same PAT, Same Source, Different KVs #4141

missymessa opened this issue Sep 20, 2024 · 0 comments

Comments

@missymessa
Copy link
Member

The secret called BotAccount-dotnet-bot-repo-PAT is used in a few places, one of them being OneLoc builds.

Unfortunately, this secret also exists in two different Key Vaults:

maestroprod:

EngKeyVault:

Since this is a GitHub PAT, it is required to be manually rotated by creating a new PAT within the GitHub bot account PATs and then copied into the prompt when running Secret Manager locally. However, this means that it's possible for errors to occur if a PAT is rotated and updated in only one of the locations.

Let's determine a path forward for these two secrets.

Suggestions:

  • Use only one of the PATs. We'd have to determine which will be the only secret to keep and then this will require updating any existing references to the old secret (custom build YAML, variable groups, et cetera, will be impacted).
  • Rename either or both secrets. Reduces confusion for the next dev manually handling this, however, then we'd still have to update any existing references.
  • Implement a naming convention for PATs created (in this case, what's created in GitHub) and keep both secrets as is.

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

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

No branches or pull requests

1 participant