iya-sts
    Preparing search index...
    requestConfigured: (
        raw: string,
        options?: {
            body?: any;
            ca?: string;
            cert?: string;
            chainOnly?: boolean;
            headers?: Record<string, string>;
            key?: string;
            loopbackPlainHttp?: boolean;
            method?: string;
            signedArtifact?: boolean;
            skipVerify?: boolean;
            timeoutMs?: number;
        },
    ) => Promise<
        {
            body: Buffer;
            headers: any;
            kind: string;
            ok: boolean;
            status: number;
            url: string;
            why: string;
        },
    > = ...

    Forwards to FederationHttp.requestConfigured().

    Type Declaration

      • (
            raw: string,
            options?: {
                body?: any;
                ca?: string;
                cert?: string;
                chainOnly?: boolean;
                headers?: Record<string, string>;
                key?: string;
                loopbackPlainHttp?: boolean;
                method?: string;
                signedArtifact?: boolean;
                skipVerify?: boolean;
                timeoutMs?: number;
            },
        ): Promise<
            {
                body: Buffer;
                headers: any;
                kind: string;
                ok: boolean;
                status: number;
                url: string;
                why: string;
            },
        >
      • Makes a request to a URL an administrator configured, such as a SPIFFE node attestor's source; internal addresses are not refused, since a Kubernetes API server lives on one.

        Kill switch, transport policy, no redirect, body cap and timeout still apply. Never rejects.

        Parameters

        • raw: string

          the URL

        • Optionaloptions: {
              body?: any;
              ca?: string;
              cert?: string;
              chainOnly?: boolean;
              headers?: Record<string, string>;
              key?: string;
              loopbackPlainHttp?: boolean;
              method?: string;
              signedArtifact?: boolean;
              skipVerify?: boolean;
              timeoutMs?: number;
          }

          method, headers, body, ca (a PEM bundle to verify against instead of the default roots), timeoutMs, signedArtifact (plain http for a document whose own signature the caller verifies), cert and key (a client certificate), chainOnly, skipVerify (development only) and loopbackPlainHttp

        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 }