Anchorage API reference
    Preparing search index...

    Configuration for piiSecrets.

    interface PiiSecretsOptions {
        allowlist?: readonly (string | RegExp)[];
        channels?: readonly OutputChannel[];
        detectors?: readonly (
            | "email"
            | "ssn"
            | "phone"
            | "creditCard"
            | "awsAccessKey"
            | "privateKey"
            | "jwt"
            | "secretAssignment"
            | "highEntropy"
        )[];
        entropyThreshold?: number;
        holdBackChars?: number;
        name?: string;
        phases?: readonly PolicyPhase[];
    }
    Index

    Properties

    allowlist?: readonly (string | RegExp)[]

    Exemptions: a match is skipped when its text equals (case-insensitive) an allowlist string, or tests true against an allowlist RegExp.

    channels?: readonly OutputChannel[]

    Default: ['answer', 'reasoning', 'object'] — leak prevention, matching denyPatterns' default.

    detectors?: readonly (
        | "email"
        | "ssn"
        | "phone"
        | "creditCard"
        | "awsAccessKey"
        | "privateKey"
        | "jwt"
        | "secretAssignment"
        | "highEntropy"
    )[]

    Subset of detector ids to run. Default: all.

    entropyThreshold?: number

    Minimum bits/char for the highEntropy detector. Default 4.5.

    holdBackChars?: number

    Override the computed hold-back hint (maxEnabledSpan - 1).

    name?: string

    Policy name used in denials and audit records.

    phases?: readonly PolicyPhase[]

    Agent lifecycle phases to inspect. Default: both input and output.