feat(planning): grille hebdomadaire complète avec API et filtres
- Connexion API via proxy Angular (résolution CORS, base path /api) - Import CSS ng-zorro global pour les modales et composants - Filtres Camion/Show câblés sur l'affichage de la grille - Camions affichés via TrucksService (linkés au show du même créneau) - Panneau de détails : spectacles + camions du jour sélectionné - Modale de création de spectacle stylisée avec fond et centrage - Positionnement précis des events à la minute dans leur créneau - Auto-scroll vers l'heure courante au chargement - Ligne "maintenant" sur la colonne du jour actuel - Régénération des services OpenAPI (nouveaux noms de types) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -12,7 +12,7 @@ and verify any file.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Node.js version ^20.17.0 || >=22.9.0
|
||||
- Node.js version >= 18.17.0
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -182,7 +182,7 @@ as well as the verification material necessary to verify the signature.
|
||||
|
||||
### verify(bundle[, payload][, options])
|
||||
|
||||
Verifies the signature in the supplied bundle. Returns a `Signer` object containing the public key and identity information from the verification.
|
||||
Verifies the signature in the supplied bundle.
|
||||
|
||||
- `bundle` `<Bundle>`: The Sigstore bundle containing the signature to be verified and the verification material necessary to verify the signature.
|
||||
- `payload` `<Buffer>`: The bytes of the artifact over which the signature was created. Only necessary when the `sign` function was used to generate the signature since the Bundle does not contain any information about the artifact which was signed. Not required when the `attest` function was used to generate the Bundle.
|
||||
@@ -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 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.
|
||||
- `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.
|
||||
- `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,12 +65,6 @@ 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.
|
||||
|
||||
+3
-4
@@ -1,11 +1,10 @@
|
||||
import { SerializedBundle } from '@sigstore/bundle';
|
||||
import { Signer } from '@sigstore/verify';
|
||||
import * as config from './config';
|
||||
export declare function sign(payload: Buffer, options?: config.SignOptions): Promise<SerializedBundle>;
|
||||
export declare function attest(payload: Buffer, payloadType: string, options?: config.SignOptions): Promise<SerializedBundle>;
|
||||
export declare function verify(bundle: SerializedBundle, options?: config.VerifyOptions): Promise<Signer>;
|
||||
export declare function verify(bundle: SerializedBundle, data: Buffer, options?: config.VerifyOptions): Promise<Signer>;
|
||||
export declare function verify(bundle: SerializedBundle, options?: config.VerifyOptions): Promise<void>;
|
||||
export declare function verify(bundle: SerializedBundle, data: Buffer, options?: config.VerifyOptions): Promise<void>;
|
||||
export interface BundleVerifier {
|
||||
verify(bundle: SerializedBundle, data?: Buffer): Signer;
|
||||
verify(bundle: SerializedBundle, data?: Buffer): void;
|
||||
}
|
||||
export declare function createVerifier(options?: config.VerifyOptions): Promise<BundleVerifier>;
|
||||
|
||||
+3
-3
@@ -78,8 +78,7 @@ async function verify(bundle, dataOrOptions, options) {
|
||||
else {
|
||||
options = dataOrOptions;
|
||||
}
|
||||
const verifier = await createVerifier(options);
|
||||
return verifier.verify(bundle, data);
|
||||
return createVerifier(options).then((verifier) => verifier.verify(bundle, data));
|
||||
}
|
||||
async function createVerifier(
|
||||
/* istanbul ignore next */
|
||||
@@ -106,7 +105,8 @@ options = {}) {
|
||||
verify: (bundle, payload) => {
|
||||
const deserializedBundle = (0, bundle_1.bundleFromJSON)(bundle);
|
||||
const signedEntity = (0, verify_1.toSignedEntity)(deserializedBundle, payload);
|
||||
return verifier.verify(signedEntity, policy);
|
||||
verifier.verify(signedEntity, policy);
|
||||
return;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
+11
-11
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sigstore",
|
||||
"version": "4.1.1",
|
||||
"version": "3.1.0",
|
||||
"description": "code-signing for npm packages",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@@ -27,21 +27,21 @@
|
||||
"provenance": true
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sigstore/rekor-types": "^4.0.0",
|
||||
"@sigstore/rekor-types": "^3.0.0",
|
||||
"@sigstore/jest": "^0.0.0",
|
||||
"@sigstore/mock": "^0.12.1",
|
||||
"@tufjs/repo-mock": "^4.0.1",
|
||||
"@sigstore/mock": "^0.10.0",
|
||||
"@tufjs/repo-mock": "^3.0.1",
|
||||
"@types/make-fetch-happen": "^10.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sigstore/bundle": "^4.0.0",
|
||||
"@sigstore/core": "^3.2.1",
|
||||
"@sigstore/protobuf-specs": "^0.5.0",
|
||||
"@sigstore/sign": "^4.1.1",
|
||||
"@sigstore/tuf": "^4.0.2",
|
||||
"@sigstore/verify": "^3.1.1"
|
||||
"@sigstore/bundle": "^3.1.0",
|
||||
"@sigstore/core": "^2.0.0",
|
||||
"@sigstore/protobuf-specs": "^0.4.0",
|
||||
"@sigstore/sign": "^3.1.0",
|
||||
"@sigstore/tuf": "^3.1.0",
|
||||
"@sigstore/verify": "^2.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.17.0 || >=22.9.0"
|
||||
"node": "^18.17.0 || >=20.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user