Closed jthak002 closed 3 weeks ago
This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale
label – otherwise this will be closed in two weeks.
This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.
Version & Environment
Redpanda version: (use
rpk version
): v22.2.6 (rev 6814dda)Please also give versions of other components:
/etc/os-release
): ubuntu 20.04 LTS focal (amd64)docker info
): N/Akubectl version
): N/A Virtualized on a VM using VMWare ESXiWhat went wrong?
The logs which are emitted when a SASL authorization fails do not indicate what resource was not being permitted by the ACL - Makes it very difficult to diagnose what resource the principal needs.
For example this is the log which was emitted when my redpanda broker receives a invalid authorization request from one of the principals being used inside the Materialized binary (https://materialized.io)
from the above log I understand there is some permission missing in my ACL (on the destination my service seems to be running fine, however, on the broker I am getting the message) based on the
resource
field whatDESCRIBE
is the principal looking for? Is it a topic, transactional.id, group? currently thematerialize-consumer
has permissions which are given by the following ACL command:Now, In order to fix this issue I had to iteratively add different permissions on every different type of resource in the above
prefixed
version of therpk acl create
command. finally, adding the the following line to my above command stopped the generation of log entrieswhich indicated that the missing permission was on the
Consumer-Group
resource type. (Unfortunately, in the materialize docs there is precious little information on what permissions the kafka/redpanda user account needs - so an alternative is to iteratively add more permissions as and when these log entries arise)What should have happened instead?
A little bit of more information about the missing resource type would be helpful - adding the resource type into the log would have helped (e.g.
resource: {group materialize-cc[...]}
) figure it a lot faster.How to reproduce the issue?
Additional information
N/A
JIRA Link: CORE-1847