Repository navigation
Release v2.8.0
An operator can now grant and withdraw an audience for one named system, identified by its client id and described by its kind, so an application system such as an MCP client or an API caller gets its own audiences besides the ones every system holds. Existing grants keep their meaning. Part of Cratis/Direct#2870.
Added
AudienceLevel.NamedSystemand theSystemClientIdandSystemKind(None,Mcp,Api,Other) types, so a decision can name one system without changing what theSystemlevel means (#135)GrantAudienceandWithdrawAudiencetake an optionalClientIdandKind; a named-system decision must name both and no tenant or user, and a withdrawal removes that system's grant onlySystemsDeclaredandSystemDeclaration: a product reports the systems that call it, throughIKnownSystems, and the operator reads them as theProductSystemsquery, so an operator can list systems with their client id and kindIGuestList.ForNamedSystemandForSystemCaller, andGuestListAudienceSource.GetGrants(subject, clientId): a request made by a named system gets the audiences of every system plus its own, never another system's and never a person's
Changed
AudienceGranted,AudienceWithdrawnandAudienceDecisionReceivedare generation 2 and carryClientId(andKindon the decisions). Generation 1 is kept and migrated, so an event published or stored before reads as the product-wideSystemholderProductGuestList,HeldAudienceandUndeclaredAudienceGrantcarryClientIdandKind- Update products before granting an audience to a named system: a product that has not been updated ignores those decisions and never widens them to every system