iya-sts
    Preparing search index...
    fetchHttpChallenge: (
        hostname: string,
        port: number,
        path: string,
    ) => Promise<
        {
            body: Buffer;
            headers: any;
            kind: string;
            ok: boolean;
            status: number;
            url: string;
            why: string;
        },
    > = ...

    Forwards to FederationHttp.fetchHttpChallenge().

    Type Declaration

      • (
            hostname: string,
            port: number,
            path: string,
        ): Promise<
            {
                body: Buffer;
                headers: any;
                kind: string;
                ok: boolean;
                status: number;
                url: string;
                why: string;
            },
        >
      • Fetches a SPIRE http_challenge over plain http from the address an attesting agent named, after the caller matched the host name against the allowed patterns.

        Kill switch, internal-address refusal in product mode with the connection pinned, no redirect, 64 bytes of body and a 10-second timeout. Never rejects.

        Parameters

        • hostname: string

          the host the agent named

        • port: number

          the port it serves on

        • path: string

          the challenge path

        Returns Promise<
            {
                body: Buffer;
                headers: any;
                kind: string;
                ok: boolean;
                status: number;
                url: string;
                why: string;
            },
        >

        a promise of { ok, status, body, headers, kind, why, url }