feat(peering): receivers in admin API/UI, inbound group resolution, group-only warning (#129) #139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/peering-receivers-129"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #129.
Bigger than filed: the receivers allowlist (#123) existed only in the registry —
addPeernever decoded it,listPeersnever returned it, the panel had no fields for it, andpeerRecipientspassednilgroups unconditionally, so a group-based receivers list matched nobody on every instance, admin client or not.Server:
addPeerdecodesreceivers {users, groups}and stores it;listPeersreturns each peer's receivers plus a top-levelgroupsLivecapability bit (spacesMgr != nil— the Keycloak admin client).peerRecipientsgains agroupshook wired tospaces.Manager.UserGroupswhen the admin client is configured — inbound group resolution now actually works (natural completion of #123). Without the client the hook is nil and group lists keep failing closed.TestAddPeerRoundTripsReceivers: round-trip,groupsLivepresence, group receiver honoured with groups, group-only list matches nobody without them.Panel:
send: zeus321 · receive: staff (group).Responsebug in the peers list render (same class as #136; never seen because no peer had been registered yet).Green on branch: gofmt/vet, full
go test ./...incl. the new test,node --checkboth blocks. Removes the three scout workflows.