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

Extract Distinguished Name from Keystore - SSL Mutual Auth does not respect " " when removing spaces #1400

Open
putz612 opened this issue May 1, 2023 · 0 comments

Comments

@putz612
Copy link

putz612 commented May 1, 2023

Describe the issue
We have an issues where our DN's have a space between quotes do to a comma in the OU. When enabling RBAC the sed line to remove spaces does not respect that that things between quotes need to stay that way so it will fail authorizing the broker.
https://github.com/confluentinc/cp-ansible/blob/7.3.4-post/roles/kafka_broker/tasks/set_principal.yml#L28-L41

To Reproduce
Have a DN in this from
CN=server.test.domain,OU=testO="My CO, LLC ",L=Minneapolis,ST=MN,C=US
will become
CN=server.test.domain,OU=testO="My CO,LLC ",L=Minneapolis,ST=MN,C=US

Expected behaviour
Keep white spaces between ""

Environment (please complete the following information):

  • OS: Redhat
  • CP-Ansible Branch: 6.2.1, 7.3.2, 7.3.3
  • Ansible Version 2.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant