fix: list an app's groups as the app - #28
Merged
Merged
Conversation
No app could enroll: enroll app: internal: list app group memberships: list member groups: rpc error: code = Unauthenticated desc = missing identity id Groups lets a member list its own memberships and otherwise demands organization membership. Both callers of listAppGroups have no user identity to forward -- EnrollApp authenticates with the app's service token, and the membership event handler runs off NATS with no caller at all -- so the call arrived with nothing and was refused. The app is the member being listed, so it names itself. That is the path groups already allows; nothing in its rules changes.
This was referenced Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No first-party app can enroll — this is what the VM image build now dies on, for both
remindersandtelegram-connector:groups.ListMemberGroupsallows a caller that is the member being listed, and otherwise requires organization membership. Neither caller oflistAppGroupshas a user identity to forward:EnrollAppauthenticates with the app's service token, andHandleGroupMembershipEventruns off NATS with no caller at all. The call went out bare and was refused.The app is the member being listed, so it now names itself. That is the path groups already permits — no authorization rule changes.
A test pins it: it fails with
got ""before the fix.