Aster TypeScript 0.3.893
    Preparing search index...

    Interface AsterConfig

    Aster configuration. Every field is optional; omitted fields take the Rust defaults. The loaders return every field filled in (keys as hex strings).

    The u64 knobs accept number or bigint; loaders return a number unless the value exceeds Number.MAX_SAFE_INTEGER.

    interface AsterConfig {
        rootPubkey?: KeyMaterial;
        rootPubkeyFile?: string;
        enrollmentCredentialFile?: string;
        enrollmentCredentialIid?: string;
        allowAllConsumers?: boolean;
        allowAllProducers?: boolean;
        endpointAddr?: string;
        storagePath?: string;
        gcIntervalMs?: number | bigint;
        secretKey?: KeyMaterial;
        secretKeyFile?: string;
        identityFile?: string;
        relayMode?: RelayModeName | string & {};
        relayUrls?: string[];
        bindAddr?: string;
        localDiscovery?: boolean;
        enableMonitoring?: boolean;
        enableHooks?: boolean;
        hookTimeoutMs?: number | bigint;
        hookFailureMode?: HookFailureMode;
        clearIpTransports?: boolean;
        clearRelayTransports?: boolean;
        portmapper?: boolean;
        proxyUrl?: string;
        proxyFromEnv?: boolean;
        transportMaxConcurrentBidiStreams?: number | bigint;
        transportMaxConcurrentUniStreams?: number | bigint;
        transportStreamReceiveWindow?: number | bigint;
        transportReceiveWindow?: number | bigint;
        transportSendWindow?: number | bigint;
        transportMaxIdleTimeoutMs?: number | bigint;
        transportKeepAliveIntervalMs?: number | bigint;
        transportInitialMtu?: number;
        transportDatagramReceiveBufferSize?: number | bigint;
        transportDatagramSendBufferSize?: number | bigint;
        transportSendFairness?: boolean;
        transportEnableSegmentationOffload?: boolean;
        alpns?: (string | Uint8Array<ArrayBufferLike>)[];
        logFormat?: LogFormat;
        logLevel?: LogLevel;
        logMask?: boolean;
        healthPort?: number;
        healthHost?: string;
        healthEnabled?: boolean;
    }
    Index

    Properties

    rootPubkey?: KeyMaterial

    Deployment root public key. ASTER_ROOT_PUBKEY, [trust] root_pubkey.

    rootPubkeyFile?: string

    File with the root public key (hex or {"public_key": "<hex>"}).

    enrollmentCredentialFile?: string

    Enrollment credential file. ASTER_ENROLLMENT_CREDENTIAL.

    enrollmentCredentialIid?: string

    Cloud instance identity token. ASTER_ENROLLMENT_CREDENTIAL_IID.

    allowAllConsumers?: boolean

    Skip the consumer admission gate (dev mode). ASTER_ALLOW_ALL_CONSUMERS.

    allowAllProducers?: boolean

    Kept for schema parity with Rust. Producer mesh admission is not supported by the TypeScript binding: AsterServer throws on false.

    endpointAddr?: string

    Producer address for consumer-side dialing. ASTER_ENDPOINT_ADDR.

    storagePath?: string

    Persistent node directory; in-memory when unset. ASTER_STORAGE_PATH.

    gcIntervalMs?: number | bigint

    Blob GC interval (ms); 0 / unset = no GC. ASTER_GC_INTERVAL_MS.

    secretKey?: KeyMaterial

    Node secret key. ASTER_SECRET_KEY, [network] secret_key.

    secretKeyFile?: string

    Node secret key file (64 hex characters) — the one on-disk identity format shared with Rust and every binding. Loaded at start if it exists (an explicit secretKey that disagrees is an error), otherwise created (mode 0600) from secretKey or a fresh key. ASTER_SECRET_KEY_FILE.

    identityFile?: string

    .aster-identity credential file. ASTER_IDENTITY_FILE, [identity] file.

    relayMode?: RelayModeName | string & {}

    ASTER_RELAY_MODE, [network] relay_mode.

    relayUrls?: string[]

    Custom relay URLs (implies custom). ASTER_RELAY_URLS.

    bindAddr?: string

    Local bind address, e.g. "0.0.0.0:9000". ASTER_BIND_ADDR.

    localDiscovery?: boolean

    mDNS local discovery. ASTER_LOCAL_DISCOVERY.

    enableMonitoring?: boolean

    Connection monitoring. ASTER_ENABLE_MONITORING.

    enableHooks?: boolean

    Admission hooks (Gate 0). ASTER_ENABLE_HOOKS.

    hookTimeoutMs?: number | bigint

    Hook decision timeout (ms, default 5000). ASTER_HOOK_TIMEOUT_MS.

    hookFailureMode?: HookFailureMode

    ASTER_HOOK_FAILURE_MODE.

    clearIpTransports?: boolean

    Relay-only. ASTER_CLEAR_IP_TRANSPORTS.

    clearRelayTransports?: boolean

    Direct-only. ASTER_CLEAR_RELAY_TRANSPORTS.

    portmapper?: boolean

    UPnP / NAT-PMP port mapping; unset = enabled. ASTER_PORTMAPPER_CONFIG.

    proxyUrl?: string

    HTTP/SOCKS proxy URL. ASTER_PROXY_URL.

    proxyFromEnv?: boolean

    Use HTTP(S)_PROXY. ASTER_PROXY_FROM_ENV.

    transportMaxConcurrentBidiStreams?: number | bigint
    transportMaxConcurrentUniStreams?: number | bigint
    transportStreamReceiveWindow?: number | bigint

    Per-stream receive window (bytes).

    transportReceiveWindow?: number | bigint

    Per-connection receive window (bytes).

    transportSendWindow?: number | bigint

    Send window (bytes).

    transportMaxIdleTimeoutMs?: number | bigint
    transportKeepAliveIntervalMs?: number | bigint
    transportInitialMtu?: number

    Initial UDP payload size (u16).

    transportDatagramReceiveBufferSize?: number | bigint

    Incoming datagram buffer (bytes); 0 disables incoming datagrams.

    transportDatagramSendBufferSize?: number | bigint
    transportSendFairness?: boolean
    transportEnableSegmentationOffload?: boolean
    alpns?: (string | Uint8Array<ArrayBufferLike>)[]

    Extra inbound ALPNs beyond blobs / docs / gossip. Not loaded from env.

    logFormat?: LogFormat

    ASTER_LOG_FORMAT, [logging] format.

    logLevel?: LogLevel

    ASTER_LOG_LEVEL, [logging] level.

    logMask?: boolean

    Mask sensitive fields. ASTER_LOG_MASK.

    healthPort?: number

    Health HTTP port; 0 disables unless healthEnabled. ASTER_HEALTH_PORT, [health] port.

    healthHost?: string

    Health HTTP host (default 127.0.0.1; pods need 0.0.0.0). ASTER_HEALTH_HOST, [health] host.

    healthEnabled?: boolean

    Force the listener on (an ephemeral port when healthPort is 0) or off. Unset: on exactly when healthPort is non-zero. ASTER_HEALTH_ENABLED, [health] enabled.