iya-sts
    Preparing search index...
    Index
    PREFIX_HEADER: "x-sts-wire-prefix" = PREFIX_HEADER
    TLS_HEADER: "x-sts-wire-tls" = TLS_HEADER
    • The worker's half: a request the front process marked with TLS_HEADER is translated here, by this process's view of the realm's mode, and the answer tells the front on PREFIX_HEADER whether to prefix its cookies. Anything else is left alone. A method of its own so that a test can drive it from the main thread.

      Parameters

      • req: any

        the request

      • res: any

        the response

      Returns boolean

      whether the request was marked

    • Whether a request was relayed here by another cell, whose front process translated its Cookie header already. stsCellRelay is set by common/cell_channel.ts's serveRelayed() on the request object, after the peer cell's certificate was checked; no header can set it.

      Parameters

      • req: any

        the request

      Returns boolean

      true for a relayed request

    • The middleware. In a worker it translates only what the front process marked (inWorker()).

      Returns (req: any, res: any, next: any) => any

      an express middleware

    • Every name this service's cookies can carry, inside and on the wire, as prefixes ending in * (2026-11-14). The remote PEP's reverse proxy is handed them on its pull and never forwards one upstream: a browser sends cookies by host, not port, so where the service and the proxy share a host the sign-on session's cookie reached the application. Derived from the two patterns above, so a cookie added tomorrow is covered.

      Returns string[]

      the prefixes

    • Puts a Cookie header into the names the service reads.

      Parameters

      • header: string

        the header as the browser sent it

      • sharedDomain: boolean

        whether __Secure- is a form this service writes

      Returns string

      the header with inside names, without what must not be believed

    • Puts a request's Cookie header into the inside names, in place, where the realm's mode prefixes them.

      Parameters

      • req: any

        the request

      • prefixes: boolean

        whether the realm's mode prefixes cookies

      Returns void

    • The name a browser will know a cookie by, for a document that must name it (DBSC's session instructions). Asked in a worker, so it asks the settings.

      Parameters

      • name: string

        the inside name

      • attributes: string

        the cookie's attributes

      Returns string

      the wire name

    • Puts one Set-Cookie line into its wire form.

      Parameters

      • line: string

        the line as the service wrote it

      Returns string

      the line the browser receives