Skip to content

Mark team members created over the API as having a stand-in parent #2986

Backlog

Description

@rdimitrov

A team member created through RunTeam has no source session, so mecak8s registers it with the root's main agent as its parent and reports its delegations from the RunTeam run of that agent (#2557). The broker's records (#2541, #2985) state that parent and delegation as fact, so a lineage walk (#2844) and the end-to-end check (#2817) cannot tell them from a delegation the main agent actually made.

  • Registration and delegation reports carry a mark saying the parent, or the delegating run, stands in for the API request.
  • Registration check 7 compares the mark, so a re-registration cannot change it; a delegation report counts it as content for check 6.
  • The broker checks that a stand-in parent is the root instance, and that a stand-in delegating run belongs to it.
  • The registration and delegation records carry the mark, and credentials-and-lifecycle.md step (4), the delegation report, and audit.md lineage say so.

Removes shortcut: API-created team members register with the root as their parent and no mark (internal/adapter/server/identity_broker_helpers.go).

Depends on: #2541

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions