Skip to content

How to update an expired GitHub PAT #121

Answered by zackproser
zackproser asked this question in Help
Discussion options

You must be logged in to vote

You can update the github PAT if you use the gruntwork secrets update command, which will update the secret in place.

However, if you need to rename the secret and recreate it, there is an extra step after the secrets create command. You need to update the secrets manager secret to be encrypted with the shared KMS key instead of the default. The gruntwork CLI in create mode doesn’t automatically use the right KMS key because it is unfortunately designed for pre deployment and isn’t optimized for post deployment secrets rotation.

So we recommend doing this via the AWS web console. When you open the page for the secrets manager entry, you should see a drop down with the KMS key used for enc…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zackproser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment