new two advisories and sprints work on them

This commit is contained in:
master
2026-01-16 18:39:36 +02:00
parent 9daf619954
commit c3a6269d55
72 changed files with 15540 additions and 18 deletions

View File

@@ -0,0 +1,69 @@
namespace StellaOps.Doctor.Plugins.Verification.Configuration;
/// <summary>
/// Configuration options for the Verification diagnostic plugin.
/// </summary>
public sealed class VerificationPluginOptions
{
/// <summary>
/// Configuration section name.
/// </summary>
public const string SectionName = "Doctor:Plugins:Verification";
/// <summary>
/// Whether the verification plugin is enabled.
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// Test artifact configuration.
/// </summary>
public TestArtifactOptions TestArtifact { get; set; } = new();
/// <summary>
/// Policy test configuration.
/// </summary>
public PolicyTestOptions PolicyTest { get; set; } = new();
/// <summary>
/// HTTP timeout for artifact operations in seconds.
/// </summary>
public int HttpTimeoutSeconds { get; set; } = 30;
}
/// <summary>
/// Test artifact configuration.
/// </summary>
public sealed class TestArtifactOptions
{
/// <summary>
/// OCI reference to the test artifact (e.g., oci://registry.example.com/test@sha256:...).
/// </summary>
public string? Reference { get; set; }
/// <summary>
/// Expected digest of the test artifact for verification.
/// </summary>
public string? ExpectedDigest { get; set; }
/// <summary>
/// Path to local test artifact bundle for offline verification.
/// </summary>
public string? OfflineBundlePath { get; set; }
}
/// <summary>
/// Policy test configuration.
/// </summary>
public sealed class PolicyTestOptions
{
/// <summary>
/// Expected outcome of the policy test (pass or fail).
/// </summary>
public string ExpectedOutcome { get; set; } = "pass";
/// <summary>
/// Policy reference to use for testing.
/// </summary>
public string? PolicyRef { get; set; }
}