Skip to content

Use the publicKey field name in the bundle example - #451

Open
arpitjain099 wants to merge 1 commit into
sigstore:mainfrom
arpitjain099:fix/bundle-public-key-field-name
Open

Use the publicKey field name in the bundle example#451
arpitjain099 wants to merge 1 commit into
sigstore:mainfrom
arpitjain099:fix/bundle-public-key-field-name

Conversation

@arpitjain099

Copy link
Copy Markdown

Closes #446. @mlschroe is right, and I checked it against the pinned spec rather than taking it on faith.

sigstore_bundle.proto declares the oneof member as:

oneof content {
        dev.sigstore.common.v1.PublicKeyIdentifier public_key = 1 [(google.api.field_behavior) = REQUIRED];
        dev.sigstore.common.v1.X509CertificateChain x509_certificate_chain = 2 [(google.api.field_behavior) = REQUIRED];
        dev.sigstore.common.v1.X509Certificate certificate = 5 [(google.api.field_behavior) = REQUIRED];
}

PublicKeyIdentifier is the message type; the field is public_key, so protojson emits publicKey. The X.509 example a few lines above already uses the field name (certificate, from certificate = 5) rather than the type name, so this example was the odd one out.

It matters beyond tidiness: someone hand-assembling a bundle from this page puts the key hint under a name no verifier looks at, and the content oneof then has nothing set.

One occurrence in the repo, content/en/about/bundle.md:52. I left the ##### Public Key Identifier heading alone, since that names the type and reads correctly as prose.

The example shows publicKeyIdentifier, which is the message type name.
The field in VerificationMaterial is

  dev.sigstore.common.v1.PublicKeyIdentifier public_key = 1

so protojson emits publicKey. The neighbouring X.509 example already
uses the field name, certificate, rather than the type name, so this is
the odd one out.

Anyone hand-building a bundle from this page ends up with a key hint
under a name no verifier reads.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for docssigstore ready!

Name Link
🔨 Latest commit c02866a
🔍 Latest deploy log https://app.netlify.com/projects/docssigstore/deploys/6a87eb90cb074e00080043db
😎 Deploy Preview https://deploy-preview-451--docssigstore.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

The bundle documentation uses publicKeyIdentifier instead of publicKey as element name

1 participant