Repository navigation
bab 0.4.22
Fixed
- An agent's owner can pick its repositories.
PUT /integrations/{id}took an admin or
security reviewer for every vendor butagents, so a console that lets an agent's owner pick
the repositories the agent may reach (a set under the GitHub connection) was refused for
anyone not on those teams. A caller on no team may now write that one shape: a child of a
service connection whose spec names itsrepositories, for a vendor whose credential is
narrowed by them (GitHub). Picking grants nothing; the level is still asked for and decided
by a reviewer, who sees the set. An empty set stays a reviewer's (it would be the whole
connection), and of such a write the repositories alone are taken: an existing set keeps its
ceiling and the rest of its spec, a new one starts with the repositories only. - Naming the
agentsvendor no longer opens another vendor's row. Any actor may write an
agentsintegration, and the check read the vendor from the request, so a caller on no team
could re-describe any integration as anagentsone and then delete it. The lane is now for
rows that are, or are about to be,agentsrows. - Disconnecting an integration takes back what waited on it. Requests still pending on a
deleted integration are markedwithdrawn, so none can be approved onto a row that later
takes the same name.
Added
- A repository added to a set that carries grants waits for a reviewer. Once an agent
holds a level on its set, or has asked for one a reviewer has yet to decide, an owner's pick
is split: what it removes leaves the set at once, and what it adds becomes one request of
kindrepositories(proposal: {added, removed};permissionsthe levels held or asked
for on the set, read again each time the request is listed and frozen when it is decided, so
the reviewer sees what the new repositories would be reached with). ThePUTanswers 202 with the set as it stands and the request under
pending; picking again replaces what waits, and saving the set without the addition (or a
reviewer writing the set) marks itwithdrawn.POST /requests/decideapplies an approved
one to the set; a denial leaves it.GET /requestsrows carryproposal(null on a
permission request). Therequeststable gains aproposalcolumn at boot. - A changed set reaches the agent on its next call. Writing a set that carries grants, or
approving an addition to it, drops the credential cached for it, so the next lease is minted
for the new set instead of the old one being handed out until its hour ran out.
Image: ghcr.io/tenishai/bab@sha256:9a139c1e90224f428877b0cfac3cff86d7f7efe71780585367cc84db8e155091 (tags v0.4.22, 43df984; linux/amd64, linux/arm64)