Skip to content

fix: separate requestState sealing from token encryption - #1927

Closed
QuentinBisson wants to merge 2 commits into
mainfrom
fix/independent-request-state-key
Closed

QuentinBisson wants to merge 2 commits into
mainfrom
fix/independent-request-state-key

Conversation

@QuentinBisson

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds aggregator.requestState.keyFile and chart muster.requestState.secretKeyRef.{name,key} for shared retry-state sealing, using mcp-oauth's existing sealer. Token encryption remains independently configured.

What is the effect of this change to users?

Multiple replicas can share a sealing key without changing existing Valkey credentials or grants. The existing encryption-key fallback and HKDF derivation remain compatible; an invalid explicit key fails startup. The chart mounts only the selected key and protects its Secret from MCPServer references.

Any background context you can provide?

Required by giantswarm/agent-platform#1512 to preserve two replicas without enabling encryption over existing plaintext stores. No data migration or credential reset is performed.

Testing

Full race suite, build, vet, security lint and chart checks; real MCP input-required/retry across two HTTP replicas, legacy/explicit key compatibility in both directions, and plaintext token reads/writes across configuration changes.

Do the docs need to be updated?

Updated request-state configuration, rotation and storage-migration guidance; platform skill guidance is in giantswarm/agent-platform#1512.

@circleci-architect

circleci-architect Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Published Helm chart muster-crds

5.66.3-rdef431c6t20261127125227hcac0a46
Chart muster-crds
Version 5.66.3-rdef431c6t20261127125227hcac0a46
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/muster-crds:5.66.3-rdef431c6t20261127125227hcac0a46
Digest sha256:7dfc74d0a42695fd1986e85942fa3975cba1bcf2826c25b9918f402d4a332fa5
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/muster-crds --version 5.66.3-rdef431c6t20261127125227hcac0a46

Posted by architect-orb · build 52811 · commit cac0a46 · updated in place on every push

@circleci-architect

circleci-architect Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Published Helm chart muster

5.66.3-rdef431c6t20261127125227hcac0a46
Chart muster
Version 5.66.3-rdef431c6t20261127125227hcac0a46
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/muster:5.66.3-rdef431c6t20261127125227hcac0a46
Digest sha256:c720f6046041cc1c3ad7c5f324d7f89c220fca80021607e0be2ec0d99592d573
Registry public — gsoci.azurecr.io
Git catalog giantswarm-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/muster --version 5.66.3-rdef431c6t20261127125227hcac0a46

Posted by architect-orb · build 52814 · commit cac0a46 · updated in place on every push

@fiunchinho

Copy link
Copy Markdown
Member

This still refuses the agent-platform chart's defaults and documented examples (2 replicas, neither key), so agent-platform's verify-all stays red (giantswarm/agent-platform#1514). Since the requestState key is now separate and only seals short-lived retry state, could the chart generate it (lookup + helm.sh/resource-policy: keep, as the connectivity chart does for the workspace grant key) when there is more than one replica and neither key is set? A lost key then only fails retries in flight.

@QuentinBisson
QuentinBisson marked this pull request as ready for review November 27, 2026 14:36
@QuentinBisson
QuentinBisson requested a review from a team as a code owner November 27, 2026 14:36
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