Skip to content

team 0.3.1

Choose a tag to compare

@github-actions github-actions released this 06 Oct 15:47
· 7358 commits to main since this release
42b2849

A release about delegation: a team's owner approves, once, which panes outside the team's own
session may run up, down, add and remove for that team, and every delegated run is
matched on session and pane id against a file that is exactly the approved one.

Added

  • delegates, a team-file section (owner section, one to eight entries): each entry names a
    pane — <herdr session>/<pane id>, matched whole and case-sensitively — and the operational
    commands of up, down, add, remove it may run. Entry order and command order are part
    of what the owner approves. A pane in the team's own session is refused at load, and so is
    seat: or any other key.
  • The delegate gate: the four commands decide a delegated run in preflight order and refuse
    a caller that is not the approved pane, a command the entry does not list, prohibited flags, a
    file that is not exactly the approved one, or a pane that collides with a seat or with the
    team's session. A delegated run writes one line to the file's log naming the pane and the
    command, and the four commands' own delegate refusal ids are in the exit-code contract.
  • team approve prints one Delegate: pane <pane> may run <commands>. line per entry, before
    the seat-count question.
  • docs/team-file.md: the format page, with the delegates section.

Known limits

Not in this release: approve by a delegate — never, approval is the owner's, and a commands
list naming approve is a load error; --abandon by a delegate — never; restarting a running
seat (needs a team restart that changes no file); status, doctor and their JSON for a delegate
— next.