Audit of pubnub channel doesn't show grants
Recently my production application started throwing exceptions due to some strange behavior with grant / audit functions. To summarize, I can grant permissions for the channel / key combination and get a success response, but when I immediately check the channel it shows an empty result set. To rule out a bug in the application, I tested this behavior in the pubnub developer console.
Grant deposit / withdrawal
provide a screenshot of the input
RESPONSE:
{
"auths": {
"102cd0f27f216cc3ce7733e7a56ce1ae9e35407c": {
"r": 1,
"w": 0
}
},
"subscribe_key": "sub-c-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ttl": 0,
"channel": "32f563fcc122d2b0db5f133b0967bcd8",
"level": "user"
}
I / O audit
screenshot of audit input
RESPONSE:
{
"channels": {
},
"subscribe_key": "sub-c-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"level": "channel"
}
I expect to see permissions that were only granted during the audit. Am I missing something stupid?
Thank.
PubNub Grant / Review and Audit
This is unintended behavior and TTL 0 should work as you expect Forever Grant . We are working on this issue and will resolve it shortly. Currently, any grants less than 5 TTL are not saved. Currently, the instant solution for you is to provide above TTL 5.
PubNub offers access control management with data feeds offering privilege / revoke admin privileges to manage permissions for your realtime streams at user / device, channel or key level. Access control starts with Auth tokens from any existing authentication system like Facebook Connect, Twitter, Google, LDAP, or home solutions.
PAM is a serverless, easy-to-use, keyword-based security solution for all of your applications, allowing you to manage users and intervene when needed for each subscriber. By default, PubNub does not require ACLs or security restrictions. With PubNub Access Manager, you can provide authorization and channel access control for your users.