Skip to content

Mount signing JWKS volume to agent container#765

Merged
DrJosh9000 merged 1 commit into
mainfrom
fix/jwks-file-agent-container
Nov 10, 2025
Merged

Mount signing JWKS volume to agent container#765
DrJosh9000 merged 1 commit into
mainfrom
fix/jwks-file-agent-container

Conversation

@petetomasik
Copy link
Copy Markdown
Contributor

In v0.28.0-beta5 the changes introduced a bug where the SigningJWKSVolume is not mounted to the agent container, but the agent requires access to the JWKS file at startup for validation. This causes the following error in the agent container logs:

2025-11-06 20:23:43 FATAL  Signing JWKS failed validation: Failed to read job signing keyset: open /buildkite/signing-jwks/key: no such file or directory

This change additionally mounts the signing key volume to the agent container, similar to the existing verification key volume mount.

A workaround to this missing volume is to explicitly mount the signing key volume to the agent container by patching PodSpec when config.agent-config.signingJWKSVolume and config.agent-config.verificationJWKSVolume are correctly configured:

config:
...
  agent-config:
    signing-jwks-file: key
    signing-jwks-key-id: my-jwks-key
    signingJWKSVolume:
      name: buildkite-signing-jwks
      secret:
        secretName: my-signing-key
    verification-jwks-file: key
    verificationJWKSVolume:
      name: buildkite-verification-jwks
      secret:
        secretName: my-verification-key
  pod-spec-patch:
    containers:
    - name: agent
      volumeMounts:
      - name: buildkite-signing-jwks
        mountPath: /buildkite/signing-jwks

@petetomasik petetomasik requested a review from a team as a code owner November 7, 2025 17:11
Copy link
Copy Markdown
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@DrJosh9000 DrJosh9000 merged commit b489fc5 into main Nov 10, 2025
1 check passed
@DrJosh9000 DrJosh9000 deleted the fix/jwks-file-agent-container branch November 10, 2025 05:42
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