Skip to content

fix(UP-2569): use latest secret version for scaler, README updated - #50

Merged
ahumph merged 2 commits into
mainfrom
UP-2569-use-latest-for-scaler-secret-version
Jun 30, 2026
Merged

fix(UP-2569): use latest secret version for scaler, README updated#50
ahumph merged 2 commits into
mainfrom
UP-2569-use-latest-for-scaler-secret-version

Conversation

@ahumph

@ahumph ahumph commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Version was being pinned to whatever 'latest' was at plan time. This meant that a rotated secret was never picked up - therefore the scaler failed to authenticate.

Instead use latest explicitly. This should pick up any rotated secret in GCP.

Comment thread modules/main/main.tf Outdated
# picked up automatically without a terraform apply. Pinning a numeric
# version here would leave the scaler on a stale (possibly disabled)
# version after rotation, causing ObtainToken 401s.
version = "latest"

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.

can we make this a variable (so that we can more easily support version pinning in the future)

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.

makes sense yep

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.

Done, and also using the same variable for the instance templates now to avoid drift

@ahumph
ahumph merged commit 1e060e7 into main Jun 30, 2026
9 checks passed
@ahumph
ahumph deleted the UP-2569-use-latest-for-scaler-secret-version branch June 30, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants