Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.2.5 HybridCCloudAclsProvider does not translate principal ID properly #537

Open
92twinturboz opened this issue Sep 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@92twinturboz
Copy link

Describe the bug
When defining a principal in the topology as a service account resource ID (sa-XXXXXX) and specifying the com.purbon.kafka.topology.roles.HybridCCloudAclsProvider control class, the ACLs are created in confluent cloud with the sa-XXXXX id as opposed to the integer ID.

To Reproduce
Steps to reproduce the behavior:

  1. Configure JuileOps with the following control class: topology.builder.access.control.class=com.purbon.kafka.topology.roles.HybridCCloudAclsProvider
  2. Create a topology and specify the sa-XXXXX principal ID:
    `context: "test"
    source: "topo"
    projects:
  • name: "julie"
    topics:
    • name: "acl.test.1.0"
      producers:
      • principal: "User:sa-12345"
        consumers:
      • principal: "User:sa-12345"`
  1. Run kafka-acls to validate the ACLs created:
    `kafka-acls --command-config ~/acl-cmd-config --list --bootstrap-server

Current ACLs for resource ResourcePattern(resourceType=TOPIC, name=test.topo.acl.test.1.0, patternType=LITERAL):
(principal=User:sa-12345, host=, operation=READ, permissionType=ALLOW)
(principal=User:sa-12345, host=
, operation=WRITE, permissionType=ALLOW)

...`

Expected behavior
The ACLs should be created with the equivalent integer ID.

Runtime (please complete the following information):

  • OS: Amazon Linux
  • JVM version: openjdk 11
  • Version 4.2.5

Additional context

@92twinturboz 92twinturboz added the bug Something isn't working label Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant