-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fulcio mock support for all GH claims (#1319)
Signed-off-by: Brian DeHamer <bdehamer@github.com> Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
- Loading branch information
Showing
5 changed files
with
277 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sigstore/mock': patch | ||
--- | ||
|
||
Update Fulcio mock server to support all GH OIDC claims |
84 changes: 84 additions & 0 deletions
84
packages/mock/src/fulcio/__snapshots__/handler.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`fulcioHandler #fn when invoked returns a certificate chain 1`] = ` | ||
Extensions [ | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.1 | ||
OCTET STRING : 687474703a2f2f666f6f2e636f6d", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.8 | ||
OCTET STRING : | ||
UTF8String : 'http://foo.com'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.2 | ||
OCTET STRING : 776f726b666c6f775f6469737061746368", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.20 | ||
OCTET STRING : | ||
UTF8String : 'workflow_dispatch'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.9 | ||
OCTET STRING : | ||
UTF8String : 'https://github.com/foo/attest-demo/.github/workflows/oidc.yml@refs/heads/main'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.10 | ||
OCTET STRING : | ||
UTF8String : 'ba214227977e57973d87219493ad93eeda9c7d6c'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.6 | ||
OCTET STRING : 726566732f68656164732f6d61696e", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.14 | ||
OCTET STRING : | ||
UTF8String : 'refs/heads/main'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.5 | ||
OCTET STRING : 666f6f2f6174746573742d64656d6f", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.12 | ||
OCTET STRING : | ||
UTF8String : 'https://github.com/foo/attest-demo'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.15 | ||
OCTET STRING : | ||
UTF8String : '792829709'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.16 | ||
OCTET STRING : | ||
UTF8String : 'https://github.com/foo'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.17 | ||
OCTET STRING : | ||
UTF8String : '398027'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.22 | ||
OCTET STRING : | ||
UTF8String : 'public'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.11 | ||
OCTET STRING : | ||
UTF8String : 'github-hosted'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.3 | ||
OCTET STRING : 62613231343232373937376535373937336438373231393439336164393365656461396337643663", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.13 | ||
OCTET STRING : | ||
UTF8String : 'ba214227977e57973d87219493ad93eeda9c7d6c'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.4 | ||
OCTET STRING : 4f494443", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.18 | ||
OCTET STRING : | ||
UTF8String : 'https://github.com/foo/attest-demo/.github/workflows/oidc.yml@refs/heads/main'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.19 | ||
OCTET STRING : | ||
UTF8String : 'ba214227977e57973d87219493ad93eeda9c7d6c'", | ||
"SEQUENCE : | ||
OBJECT IDENTIFIER : 1.3.6.1.4.1.57264.1.21 | ||
OCTET STRING : | ||
UTF8String : 'https://github.com/foo/attest-demo/actions/runs/11997537386/attempts/3'", | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters