You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Hmm there is no direct one, but we can hit the npm API and check the _npmUser property. The _npmUser property will have a trustedPublisher property that confirms a package is published via OIDC.
Hi! Hmm there is no direct one, but we can hit the npm API and check the _npmUser property. The _npmUser property will have a trustedPublisher property that confirms a package is published via OIDC.
The _npmUser is internal/implementation metadata. Underscore-prefixed fields in npm Registry responses (for example _id, _rev, _attachments) come from the registry's CouchDB-style storage layer and are not part of the public, stable API contract. We shouldn't rely on them for long-term use.
We might be able to use the attestations field in the registry, see example at https://registry.npmjs.org/sigstore/2.3.1 npm doc claims it's used as part of the cryptographic proof, the URL points at the location to fetch a Sigstore Bundle to verify build by the OIDC.
While this is used to cryptographic verify the supply chain, I think that for our use we can use npm as the source of truth, correct me if im wrong as the docs say only supported providers are allowed, i assume they will not allow metadata without a verify.
We could in theory verify provenance attestations but that would take too much resources and does not align with shield's goals.
btw, we could add tursted publishing support to badge-maker
Hi! Hmm there is no direct one, but we can hit the npm API and check the _npmUser property. The _npmUser property will have a trustedPublisher property that confirms a package is published via OIDC.
The _npmUser is internal/implementation metadata. Underscore-prefixed fields in npm Registry responses (for example _id, _rev, _attachments) come from the registry's CouchDB-style storage layer and are not part of the public, stable API contract. We shouldn't rely on them for long-term use.
Activity
PyvesB commentedon Dec 13, 2025
Hello @targetlucked69 👋🏻
What would be the use case for this? Which API would we be able to hit to get the OpenID Connect information?
targetlucked69 commentedon Dec 14, 2025
Hi! Hmm there is no direct one, but we can hit the npm API and check the
_npmUserproperty. The_npmUserproperty will have atrustedPublisherproperty that confirms a package is published via OIDC.Example: https://registry.npmjs.org/vue/latest
LitoMore commentedon Jan 8, 2026
This one?https://www.npmjs.com/package/simple-icons/v/16.0.0/provenancenvm, this endpoint has a Cloudflare captcha guard.
LitoMore commentedon Jan 8, 2026
The
_npmUseris internal/implementation metadata. Underscore-prefixed fields in npm Registry responses (for example _id, _rev, _attachments) come from the registry's CouchDB-style storage layer and are not part of the public, stable API contract. We shouldn't rely on them for long-term use.jNullj commentedon Jan 10, 2026
We might be able to use the
attestationsfield in the registry, see example athttps://registry.npmjs.org/sigstore/2.3.1npm doc claims it's used as part of the cryptographic proof, the URL points at the location to fetch a Sigstore Bundle to verify build by the OIDC.
While this is used to cryptographic verify the supply chain, I think that for our use we can use npm as the source of truth, correct me if im wrong as the docs say only supported providers are allowed, i assume they will not allow metadata without a verify.
We could in theory verify provenance attestations but that would take too much resources and does not align with shield's goals.
btw, we could add tursted publishing support to badge-maker
targetlucked69 commentedon Jan 15, 2026
agree here
targetlucked69 commentedon Jan 15, 2026
I think the
dist.attestationsfield here like @jNullj said is the way to go for now. What do you think @LitoMore ?heliocarlitos commentedon Feb 15, 2026