Repository navigation
Implement PAM categories support - #139
Merged
Merged
Conversation
jakub-grzesiowski
requested review from
Xavrax,
kazydek,
marcin-cebo and
techwritermat
as code owners
October 20, 2026 10:10
marcin-cebo
approved these changes
Oct 20, 2026
Contributor
Author
|
@pubnub-release-bot release as 10.1.0 |
Contributor
|
🚀 Release successfully completed 🚀 |
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.
feat(grant): Added category permissions for listing all App Context metadata.
grantToken()->categories()andgrant()->categories()grant the get permission onPNGrantCategory::CHANNELS,PNGrantCategory::UUIDS, or both. Keysets that restrict App Context listing only allowgetAllChannelMetadata()andgetAllUUIDMetadata()for clients holding these grants.parseToken()exposes the granted categories throughgetChannelsCategory()andgetUuidsCategory(), and Grant results expose them throughgetCategories(). PAMv2 category grants require an auth key and accept onlyget(true)to grant orget(false)to revoke.fix(parse-token): Fixed
parseToken()decoding base64url tokens incorrectly, which could return wrong permissions, timestamps, resource names and signatures.getSignature()now returns the token's actual signature, so values stored from earlier versions may differ.Every
-or_in a token flipped one bit of the decoded data. Authorization was not affected, because the server validates the raw token, but values read from parsed tokens could be wrong, for example full-access permissions read as 251 instead of 255, or timestamps off by up to about 18 hours. If you stored or comparedgetSignature()values, recompute them after upgrading.fix(grant): Fixed
isGetEnabled(),isUpdateEnabled()andisJoinEnabled()on channel, channel group and uuid entries of Grant and Audit results returning the manage permission.fix(audit): Fixed
audit()throwing aTypeErroron every successful response instead of returning aPNAccessManagerAuditResult.