Skip to content

[Automated] Draft docs (kagent): controller/push: preserve signing key handoffs across restarts - #770

Merged
Rachael-Graham merged 3 commits into
mainfrom
pr-tracker-draft-kagent-3782
Nov 30, 2026
Merged

Rachael-Graham merged 3 commits into
mainfrom
pr-tracker-draft-kagent-3782

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The target's own content scan fails where the base build passed (docs-theme-extras markdown-leaks / built-html-integrity):

  • markdown-leaks.spec.ts > markdown-leaks: rendered HTML scan > no leaked markdown across built HTML pages

kagent-dev/kagent#3782 — controller/push: preserve signing key handoffs across restarts

Docs versions: main

No code-path rule covers 6 touched file(s). The planner could route these only by identifier search, so the candidate pages may miss what they changed, including in the other mode:

  • go/api/gen/kagent/config/v1/config.pb.go
  • go/core/cmd/controller/main.go
  • go/core/internal/service/session/push_jwt.go
  • go/core/pkg/app/app.go
  • go/core/pkg/config/defaults.go
  • proto/kagent/config/v1/config.proto

What changes for users: Operators can rotate push notification signing keys without losing the activation delay across controller restarts by setting controller.push.signing.previousSecretName or config.push.previousSigningPrivateKeyFile. The current key still uses controller.push.signing.secretName or config.push.signingPrivateKeyFile, and the delay remains config.push.signingKeyActivationDelay plus the fixed 30-second buffer.

What the docs now say: The operational considerations page now shows a push-signing rotation workflow, documents the previous-key fields, and replaces the old warning that all controller replicas must restart on one key.

How kagent-3782 was drafted

Plan, and what changed it

  • Planned: Choose one of the rule-named operational targets and document the previous-key handoff fields.
  • Learned: operational-considerations.md already owns push notification signing and contained the stale all-replicas restart warning; upgrade-from-0x.md and installation.md are broader workflows.
  • Did: Updated operational-considerations.md with the previous-key fields, a rotation procedure, and the new restart behavior.

Why a documentation change is necessary

The pull request adds controller.push.signing.previousSecretName and config.push.previousSigningPrivateKeyFile so a controller that restarts during a signing-key rotation can keep signing with the previous key until the activation delay finishes. The existing operational page documented push notification signing, but told readers to restart all controller pods on the same key because replicas on different keys published different JWKS responses. That statement is no longer correct for the configured handoff path.

How to verify this change

  1. Create the current and previous signing key Secrets that the page describes, then upgrade the kagent Helm release with controller.push.signing.secretName, controller.push.signing.previousSecretName, and config.push.signingKeyActivationDelay set.
  2. Run kubectl rollout status deployment/kagent-controller -n kagent --timeout=300s; the rollout should finish successfully.
  3. Read the rendered controller configuration from the kagent-controller ConfigMap; it should include signingPrivateKeyFile: /etc/kagent/secrets/push-private-key.pem and previousSigningPrivateKeyFile: /etc/kagent/secrets/push-previous-private-key.pem.
  4. During the activation delay, fetch /.well-known/jwks.json from the controller endpoint; the response should include the previous public key and the new public key.

Proposed release note

Push signing key rotation can preserve the activation delay across controller restarts when a previous key is configured.

Files in this pull request

  • docs-site/content/kagent/main/operations/operational-considerations.md
How the pages were chosen (triage report)

New configuration: no page mentions it yet

kagent-dev/kagent#3782 — controller/push: preserve signing key handoffs across restarts

  • Product: kagent (upstream) → kagent-dev/website
  • Docs version: main
  • Release note: Push signing key rotation can preserve the activation delay across controller restarts when a previous key is configured.
  • Not tested: no cluster was available, so every command in this diff is unrun
  • No rule covers 6 touched file(s). The candidate pages below come from the files that DID match a rule, so they may scope this narrower than the change is. Read these before deciding the change is only about the pages listed:
    • go/api/gen/kagent/config/v1/config.pb.go
    • go/core/cmd/controller/main.go
    • go/core/internal/service/session/push_jwt.go
    • go/core/pkg/app/app.go
    • go/core/pkg/config/defaults.go
    • proto/kagent/config/v1/config.proto

Draft branch: pr-tracker-draft-kagent-3782


Important

The test suite has not run on this pull request. It was opened by github-actions[bot], and GitHub does not start workflows for pull requests opened with the repository's own token. This repository's checks are held as action_required until somebody presses Approve and run on the Checks tab. Checks that come from GitHub Apps rather than Actions, such as DCO, run on their own.

Please approve the checks before reviewing the content: an absence of failures here means the tests have not run, not that they passed.

actions-user and others added 2 commits November 30, 2026 10:23
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Docs preview

Link Points at
Branch preview The newest push to this branch. Updates in place.
Commit preview 125b185 only. Frozen.

Both are uploaded Worker versions and serve no production traffic.

Signed-off-by: Rachael Graham <rachael.graham@solo.io>
@Rachael-Graham
Rachael-Graham merged commit 5c2907e into main Nov 30, 2026
4 checks passed
@Rachael-Graham
Rachael-Graham deleted the pr-tracker-draft-kagent-3782 branch November 30, 2026 19:12
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.

2 participants