Table of Contents

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

string

ConstraintThrows

A Development-only demonstration constraint throws during policy evaluation.

public const string ConstraintThrows = "constraint-throws"

Field Value

string

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

string

ExecutionFailsAfterApproval

The decision is allowed and persisted, then the mutation fails.

public const string ExecutionFailsAfterApproval = "execution-fails-after-approval"

Field Value

string

ExpiredToken

A token presented after it expired.

public const string ExpiredToken = "expired-token"

Field Value

string

LedgerAppendFails

The decision receipt cannot be appended to the audit ledger.

public const string LedgerAppendFails = "ledger-append-fails"

Field Value

string

MissingCapabilityGrant

The capability-protected endpoint is called without the capability grant.

public const string MissingCapabilityGrant = "missing-capability-grant"

Field Value

string

OutboxDeliveryFails

The outbox cannot append the lifecycle event for a delivered audit completion.

public const string OutboxDeliveryFails = "outbox-delivery-fails"

Field Value

string

PayloadTampering

A request whose payload differs from the payload bound into an otherwise valid token.

public const string PayloadTampering = "payload-tampering"

Field Value

string

RecordsPath

The path of the governed endpoint that creates an audited record.

public const string RecordsPath = "/api/v1/governed-operations/records"

Field Value

string

Properties

Scenarios

Gets the scenarios, in the order the explorer lists them.

public static IReadOnlyList<FailureScenarioDefinition> Scenarios { get; }

Property Value

IReadOnlyList<FailureScenarioDefinition>

Methods

Find(string?)

Finds a scenario by identifier.

public static FailureScenarioDefinition? Find(string? scenarioId)

Parameters

scenarioId string

The scenario identifier.

Returns

FailureScenarioDefinition

The scenario, or null when none has that identifier.