Skip to content

Record an interactive run's owner from the request that starts it #2947

Done

Description

@rdimitrov

Part of: phase 2 (#2545), follow-up to slice 2's #2557
Removes shortcut: the run owner is the session's owner, read at each run entry, not recorded from the request that started the run (#2557)

Problem

run-owner.md says mecak8s records the run owner when a run starts, from the company identity (sub_id) in that request's AS-1 token. mecak8s reads the session's owner at every run entry instead. While a session has one owner the two are the same value, so nothing breaks today. Shared sessions need the request's identity. #2569 covers scheduled runs only.

Implements

Scope

Done when

  • An interactive run's owner comes from the verified identity on the request that started it, and is carried on the run, not read again from the session. A resume (an approval, a retry, an authorization continuation) continues under that owner.
  • A test shows a run keeps the owner it started with.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions