• Harkrishn Patro's avatar
    ACL channels permission handling for save/load scenario. (#8794) · 7a3d1487
    Harkrishn Patro authored
    
    
    In the initial release of Redis 6.2 setting a user to only allow pubsub access to
    a specific channel, and doing ACL SAVE, resulted in an assertion when
    ACL LOAD was used. This was later changed by #8723 (not yet released),
    but still not properly resolved (now it errors instead of crash).
    
    The problem is that the server that generates an ACL file, doesn't know what
    would be the setting of the acl-pubsub-default config in the server that will load it.
    so ACL SAVE needs to always start with resetchannels directive.
    
    This should still be compatible with old acl files (from redis 6.0), and ones from earlier
    versions of 6.2 that didn't mess with channels.
    Co-authored-by: default avatarHarkrishn Patro <harkrisp@amazon.com>
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    7a3d1487
redis.conf 91.5 KB