formacao
This commit is contained in:
+2
-2
@@ -190,8 +190,8 @@ Verifies the signature in the supplied bundle. Returns a `Signer` object contain
|
||||
- `ctLogThreshold` `<number>`: The number of certificate transparency logs on which the signing certificate must appear. Defaults to `1`.
|
||||
- `tlogThreshold` `<number>`: The number of transparency logs on which the signature must appear. Defaults to `1`.
|
||||
- `certificateIssuer` `<string>`: Value that must appear in the signing certificate's issuer extension (OID 1.3.6.1.4.1.57264.1.1). Not verified if no value is supplied.
|
||||
- `certificateIdentityEmail` `<string>`: Email address which must appear in the signing certificate's Subject Alternative Name (SAN) extension. Must be specified in conjunction with the `certificateIssuer` option. Takes precedence over the `certificateIdentityURI` option. Not verified if no value is supplied.
|
||||
- `certificateIdentityURI` `<string>`: URI which must appear in the signing certificate's Subject Alternative Name (SAN) extension. Must be specified in conjunction with the `certificateIssuer` option. Ignored if the `certificateIdentityEmail` option is set. Not verified if no value is supplied.
|
||||
- `certificateIdentityEmail` `<string>`: Email address expected in the signing certificate's Subject Alternative Name (SAN) extension. The value is matched as a regular expression against the SAN; for exact matching, use an anchored pattern (e.g. `^user@example\\.com$`). Must be specified in conjunction with the `certificateIssuer` option. Takes precedence over the `certificateIdentityURI` option. Not verified if no value is supplied.
|
||||
- `certificateIdentityURI` `<string>`: URI expected in the signing certificate's Subject Alternative Name (SAN) extension. The value is matched as a regular expression against the SAN; for exact matching, use an anchored pattern (e.g. `^https://github\\.com/owner/repo$`). Must be specified in conjunction with the `certificateIssuer` option. Ignored if the `certificateIdentityEmail` option is set. Not verified if no value is supplied.
|
||||
- `certificateOIDs` `<Object>`: A collection of OID/value pairs which must be present in the certificate's extension list. Not verified if no value is supplied.
|
||||
- `keySelector` `<Function>`: Callback invoked to retrieve the public key (as either `string` or `Buffer`) necessary to verify the bundle signature. Not used when the signature was generated from a Fulcio-issued signing certificate.
|
||||
- `hint` `<String>`: The hint from the bundle used to identify the the signing key.
|
||||
|
||||
+6
@@ -65,6 +65,12 @@ function createVerificationPolicy(options) {
|
||||
if (options.certificateIssuer) {
|
||||
policy.extensions = { issuer: options.certificateIssuer };
|
||||
}
|
||||
if (options.certificateOIDs) {
|
||||
policy.oids = Object.entries(options.certificateOIDs).map(([oid, value]) => ({
|
||||
oid: { id: oid.split('.').map(Number) },
|
||||
value: Buffer.from(value),
|
||||
}));
|
||||
}
|
||||
return policy;
|
||||
}
|
||||
// Instantiate the FulcioSigner based on the supplied options.
|
||||
|
||||
+7
-7
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sigstore",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"description": "code-signing for npm packages",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@@ -29,17 +29,17 @@
|
||||
"devDependencies": {
|
||||
"@sigstore/rekor-types": "^4.0.0",
|
||||
"@sigstore/jest": "^0.0.0",
|
||||
"@sigstore/mock": "^0.11.0",
|
||||
"@tufjs/repo-mock": "^4.0.0",
|
||||
"@sigstore/mock": "^0.12.1",
|
||||
"@tufjs/repo-mock": "^4.0.1",
|
||||
"@types/make-fetch-happen": "^10.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sigstore/bundle": "^4.0.0",
|
||||
"@sigstore/core": "^3.1.0",
|
||||
"@sigstore/core": "^3.2.1",
|
||||
"@sigstore/protobuf-specs": "^0.5.0",
|
||||
"@sigstore/sign": "^4.1.0",
|
||||
"@sigstore/tuf": "^4.0.1",
|
||||
"@sigstore/verify": "^3.1.0"
|
||||
"@sigstore/sign": "^4.1.1",
|
||||
"@sigstore/tuf": "^4.0.2",
|
||||
"@sigstore/verify": "^3.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.17.0 || >=22.9.0"
|
||||
|
||||
Reference in New Issue
Block a user