iya-sts
    Preparing search index...

    Binds an embedded remote PEP's service account to the one application it is embedded in (#2025), and answers who is bound to what.

    Index
    • Builds the act over its dependencies.

      Parameters

      • deps: PepBindingDeps

        the logger, audit log, error codes, directory slot, roles, registry and the remote PEPs group's name

      Returns export=

    ATTRIBUTE: "stsPepApplication" = ATTRIBUTE

    The attribute the binding is held in.

    • Every binding in the ambient realm, by username, sorted (#2028). Never throws.

      Returns { application: string; name: string }[]

      { name, application } per bound PEP

    • Asks whether an application may be bound: named, and in the realm's registry.

      Parameters

      • application: string

        the application's identifier

      Returns BindingResult

      { ok: true }, or a refusal with its code

    • Clears every binding naming an application that was just deleted, and writes an audit row for each. Called by ldap_server.js's noteApplicationRemoved(), which both doors that delete an application reach. Never throws into the delete.

      Parameters

      • identifier: string

        the deleted application's identifier

      • via: string

        which door deleted it, for the audit row

      Returns string[]

      the PEPs whose binding was removed

    • Every PEP bound to an application, by username, sorted. Never throws.

      Parameters

      • application: string

        the application's identifier

      Returns string[]

      the PEPs' usernames

    • Removes a PEP's binding. Removing one that is not there is not a refusal: the act is idempotent, as a script that clears on every run needs. Audited when something was removed.

      Parameters

      • Optionalbody: any

        name (or pep)

      • Optionalactor: string

        who did it, for the audit row

      Returns BindingResult

      { ok, what, pep, application: '', previous }, or a refusal

    • Asks whether a PEP's entry may carry a binding, without writing anything: there, a service account, holding REMOTE_PEPS. Also asked by issue-pep-credential before it certifies, so a binding that would be refused does not leave a certified key behind it.

      Parameters

      • name: string

        the PEP's username

      Returns BindingResult

      { ok: true, entry }, or a refusal with its code

    • The application a PEP is bound to, or '' when it is bound to none or is nobody. Never throws.

      Parameters

      • name: string

        the PEP's username

      Returns string

      the application's identifier, or ''

    • Binds a PEP's service account to the application it is embedded in, replacing any binding it had. Audited as xacml.pep.binding.

      Parameters

      • Optionalbody: any

        name (or pep) and application

      • Optionalactor: string

        who did it, for the audit row

      Returns BindingResult

      { ok, what, pep, application, previous }, or a refusal

    • Returns the dependencies built from the real modules, each reached LAZILY: roles.js, applications.js and config.js are loaded long before an administrator binds anything.

      Returns PepBindingDeps

      the dependencies

    • Fills the directory's slot. Called by ldap/ldap_server.js at require time. A partial object is refused whole (rule 3e).

      Parameters

      • hooks: BindingDirectory

        locate, write and holders, or null to empty it

      Returns void