iya-sts
    Preparing search index...

    Class export=

    Draws SPIFFE's console pages — the registration entries, the attested agents and the brokers, and their drill-downs — from the answers of GET /admin-api/spiffe/*.

    A static utility class; it holds no state and takes no dependencies.

    Index
    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns any

      the body as HTML

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • Draws one message with parts put into it: each part's slot is handed to draw as the message's parameter, and replaced in what it returns by the part itself, which is already HTML.

      Parameters

      • parts: any

        the parts, by parameter name, as HTML

      • draw: any

        formats the message, given the slots

      Returns string

      the message as HTML

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    Staticentry

    • entry(ctx: any, json: any): any

      Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns any

      the body as HTML

    • Draws the realm's SPIFFE gRPC listeners and what a caller presents on each.

      Parameters

      • t: any

        the page's translator (#539)

      • json: any

        the trust domain's view

      Returns string

      the markup

    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • Draws the form that creates a SPIFFE registration entry.

      Parameters

      • t: any

        the page's translator

      • trustDomain: any

        the realm's trust domain, for the placeholder

      Returns string

      the form as HTML

    • Draws one SPIFFE surface's listeners as table rows: realm, address, whether it bound, and what a caller must present.

      Parameters

      • t: any

        the page's translator

      • bindings: any

        the surface's listener bindings

      • what: any

        the surface's name, for the first column (a product name, drawn as it is)

      Returns any

      the rows as HTML, or one row saying nothing is bound

    • Draws the banner every SPIFFE page carries: that a Workload API caller is not attested, and whether the SPIRE Server API requires mutual TLS.

      Parameters

      • t: any

        the page's translator

      • enforced: any

        whether the SPIRE Server API authenticates its callers (spiffeAuth.authRequired())

      Returns string

      the two notes as HTML

    • Draws the Workload API's attestation state: whether the native module is loaded, the TCP port's posture, the attestors and open connections.

      Parameters

      • t: any

        the page's translator

      • state: any

        the attestation state; optional in effect

      Returns string

      the section as HTML, or an empty string when there is no state