Skip to content

fix(generate-gentx): write validator operator key under uid node_admin#186

Closed
bdchatham wants to merge 2 commits into
mainfrom
fix/gentx-key-uid-node-admin
Closed

fix(generate-gentx): write validator operator key under uid node_admin#186
bdchatham wants to merge 2 commits into
mainfrom
fix/gentx-key-uid-node-admin

Conversation

@bdchatham
Copy link
Copy Markdown
Contributor

Summary

The gentx task wrote the operator key under uid `validator`, but the rest of the stack — sei-k8s-controller's CRD default for `SecretOperatorKeyringSource.KeyName`, scenario task params, runbooks — uses `node_admin`. Consumers that look up the key by uid (the sidecar's sign-and-broadcast flow, every gov-vote / gov-software-upgrade task) got `key not found` on every signing attempt.

Rename the const value to `node_admin` so the gentx-written key resolves under the same uid as a BYO-Secret operator keyring. Both controller paths (test backend on the data PVC, file backend from a projected Secret) now produce the same identity name — scenario authors and runbooks don't need to switch `keyName` per deployment shape.

Companion PR

Test plan

  • `go build ./...` clean.
  • `go test ./sidecar/...` passes (~31s).
  • End-to-end: after both PRs land, nightly major-upgrade workflow on harbor cluster successfully submits + tallies a software-upgrade proposal.

🤖 Generated with Claude Code

The gentx task previously wrote the operator key under uid "validator"
while the rest of the stack — sei-k8s-controller's CRD default for
SecretOperatorKeyringSource.KeyName, scenario task params, runbooks —
uses "node_admin". Consumers that look up the key by uid (the sidecar's
sign-and-broadcast flow, every gov-vote / gov-software-upgrade task)
got "key not found" on every signing attempt.

Rename the const value to "node_admin" so the gentx-written key resolves
under the same uid as a BYO-Secret operator keyring. Both controller
paths (test backend on the data PVC, file backend from a projected
Secret) now produce the same identity name, so scenario authors and
runbooks don't need to switch keyName per deployment shape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 20, 2026

You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace.

To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard.

Same load-bearing content; fewer words.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 20, 2026

You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace.

To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard.

@bdchatham bdchatham closed this May 20, 2026
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

Successfully merging this pull request may close these issues.

1 participant