iya-sts
    Preparing search index...
    recordAttestation: (
        id: any,
        detail: any,
    ) =>
        | { agent: Record<string, any>; banned: boolean; created?: undefined }
        | { agent: Record<string, any>; banned: boolean; created: boolean } = ...

    Type Declaration

      • (
            id: any,
            detail: any,
        ):
            | { agent: Record<string, any>; banned: boolean; created?: undefined }
            | { agent: Record<string, any>; banned: boolean; created: boolean }
      • Records an attestation, creating the agent on first sight and updating it afterwards; at the cap the oldest agent is dropped.

        Parameters

        • id: any

          the agent's SPIFFE ID

        • detail: any

          what was attested: the attestation type, selectors and the rest of the agent entry

        Returns
            | { agent: Record<string, any>; banned: boolean; created?: undefined }
            | { agent: Record<string, any>; banned: boolean; created: boolean }

        banned: true with the agent when it is banned (the one refusal), otherwise the agent and whether it was created; null with no store