Class FailureScenarioCatalog
- Namespace
- ReferenceApplication.Web.Governance.FailureScenarios
- Assembly
- ReferenceApplication.Web.dll
Defines the preset failure and attacker scenarios the explorer offers.
public static class FailureScenarioCatalog
- Inheritance
-
FailureScenarioCatalog
- Inherited Members
Fields
CapabilityPath
The path of the capability-protected governed endpoint.
public const string CapabilityPath = "/api/v1/governed-operations/capability"
Field Value
ConstraintThrows
A Development-only demonstration constraint throws during policy evaluation.
public const string ConstraintThrows = "constraint-throws"
Field Value
EvidenceTampering
A field of an in-memory copy of a persisted decision record is changed and the copy is verified.
public const string EvidenceTampering = "evidence-tampering"
Field Value
ExecutionFailsAfterApproval
The decision is allowed and persisted, then the mutation fails.
public const string ExecutionFailsAfterApproval = "execution-fails-after-approval"
Field Value
ExpiredToken
A token presented after it expired.
public const string ExpiredToken = "expired-token"
Field Value
LedgerAppendFails
The decision receipt cannot be appended to the audit ledger.
public const string LedgerAppendFails = "ledger-append-fails"
Field Value
MissingCapabilityGrant
The capability-protected endpoint is called without the capability grant.
public const string MissingCapabilityGrant = "missing-capability-grant"
Field Value
OutboxDeliveryFails
The outbox cannot append the lifecycle event for a delivered audit completion.
public const string OutboxDeliveryFails = "outbox-delivery-fails"
Field Value
PayloadTampering
A request whose payload differs from the payload bound into an otherwise valid token.
public const string PayloadTampering = "payload-tampering"
Field Value
RecordsPath
The path of the governed endpoint that creates an audited record.
public const string RecordsPath = "/api/v1/governed-operations/records"
Field Value
Properties
Scenarios
Gets the scenarios, in the order the explorer lists them.
public static IReadOnlyList<FailureScenarioDefinition> Scenarios { get; }
Property Value
Methods
Find(string?)
Finds a scenario by identifier.
public static FailureScenarioDefinition? Find(string? scenarioId)
Parameters
scenarioIdstringThe scenario identifier.
Returns
- FailureScenarioDefinition
The scenario, or null when none has that identifier.