Skip to content

Add Vault Transit pipeline signing - #4701

Open
tomowatt wants to merge 3 commits into
mainfrom
vault-transit-pipeline-signing
Open

tomowatt wants to merge 3 commits into
mainfrom
vault-transit-pipeline-signing

Conversation

@tomowatt

Copy link
Copy Markdown
Member

Description

Let agents sign pipelines with a pinned HashiCorp Vault Transit ECDSA P-256 key version without exporting the private key. Use --signing-vault-transit-key ci/transit/keys/pipeline@2 with start, pipeline upload, or tool sign.

Context

Pipeline signing supports local JWKS, AWS KMS, and GCP KMS today. Teams that manage signing keys in Vault can now use the same service for Buildkite pipeline signing. Verification still uses public JWKS, so verifying agents do not need Vault credentials or connectivity.

Changes

  • Sign through the official Vault API client and include a protected kid derived from the public JWK thumbprint.
  • Reject configurations that combine Vault with another signing provider. When signing is configured on the agent, prevent job environment values and secret mappings from overriding the Vault connection settings.
  • Document uploader access, public JWKS setup, and key rotation.

Public documentation

Status: publish — the operator guide is included in this repository. This PR does not publish documentation-site changes.

Disclosures / Credits

Amp assisted with the design, implementation, regression tests, and documentation.

Sign with a pinned Vault Transit key version without exporting the private key.
Keep verification on public JWKS and protect uploader connection settings from
job environment overrides.

Co-authored-by: Amp <amp@ampcode.com>
@tomowatt
tomowatt requested a review from a team as a code owner November 27, 2026 14:31
@tomowatt tomowatt added the feature New user-facing feature! label Nov 27, 2026

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

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.

No concrete defects found in this pass. This adds a new credential-bearing cryptographic signing path for pipelines, so human approval is required.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 59186, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-6.1-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. The same approval policy applies in every repository:

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). buildsworth may approve without per-PR permission.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical pipeline paths). Human approval required; buildsworth never approves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New user-facing feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant