Member Junction
    Preparing search index...

    Interface EncryptionKeySourceConfig

    Configuration passed to encryption key source providers during instantiation.

    Key sources use this configuration to understand how to retrieve key material. The specific properties used depend on the key source implementation.

    // Environment variable source config
    const envConfig: EncryptionKeySourceConfig = {
    lookupValue: 'MJ_ENCRYPTION_KEY_PII'
    };

    // Config file source config
    const fileConfig: EncryptionKeySourceConfig = {
    lookupValue: 'pii_master_key'
    };
    interface EncryptionKeySourceConfig {
        additionalConfig?: Record<string, unknown>;
        lookupValue?: string;
    }
    Index

    Properties

    additionalConfig?: Record<string, unknown>

    Optional additional configuration specific to the key source. Providers can cast this to their specific config type.

    lookupValue?: string

    The identifier used to look up the key from the source.

    • For env vars: the environment variable name
    • For config files: the key name in the encryptionKeys section
    • For vaults: the secret path