up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
This commit is contained in:
@@ -28,6 +28,8 @@ public sealed class ScannerWorkerOptions
|
||||
|
||||
public StellaOpsCryptoOptions Crypto { get; } = new();
|
||||
|
||||
public SigningOptions Signing { get; } = new();
|
||||
|
||||
public DeterminismOptions Determinism { get; } = new();
|
||||
|
||||
public sealed class QueueOptions
|
||||
@@ -208,4 +210,35 @@ public sealed class ScannerWorkerOptions
|
||||
/// </summary>
|
||||
public int? ConcurrencyLimit { get; set; }
|
||||
}
|
||||
|
||||
public sealed class SigningOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Enable DSSE signing for surface artifacts (composition recipe, layer fragments).
|
||||
/// When disabled, the worker will fall back to deterministic hash envelopes.
|
||||
/// </summary>
|
||||
public bool EnableDsseSigning { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Identifier recorded in DSSE signatures.
|
||||
/// </summary>
|
||||
public string KeyId { get; set; } = "scanner-hmac";
|
||||
|
||||
/// <summary>
|
||||
/// Shared secret material for HMAC-based DSSE signatures (base64 or hex).
|
||||
/// Prefer <see cref=\"SharedSecretFile\"/> for file-based loading.
|
||||
/// </summary>
|
||||
public string? SharedSecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional path to a file containing the shared secret (base64 or hex).
|
||||
/// </summary>
|
||||
public string? SharedSecretFile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allow deterministic fallback when signing is enabled but no secret is provided.
|
||||
/// Keeps offline determinism while avoiding hard failures in sealed-mode runs.
|
||||
/// </summary>
|
||||
public bool AllowDeterministicFallback { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user