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

Add ability to specify 'ca_cert' when using API for user management #190

Open
bcroxton opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@bcroxton
Copy link

SUMMARY

Feature request related to recent changes from issues #76 /171; Add a choice for allowing specification of 'ca_cert' when using API for user management.

ISSUE TYPE
  • Feature need: Managing other resources using rabbitmq API allow the specification of 'ca_cert', this specification is also required for managing users on internal clusters if they're using internal certs.
COMPONENT NAME

.../main/plugins/modules/rabbitmq_user.py

ADDITIONAL INFORMATION

Specifying a custom CA cert is required when working with some clusters, especially internal clusters, and specifying ca_cert is not currently possible with the community.rabbitmq.rabbitmq_user plugin.

- name: Add application user and assign default permissions
  community.rabbitmq.rabbitmq_user:
    vhost: /test
    login_host: rmqbroker.fqdn.com
    login_port: 15671
    login_protocol: https
    login_user: user
    login_password: secret
    **ca_cert: certs/some.internalCA.com.crt**
    user: testuser
    password: "{{ lookup('ansible.builtin.password', '/dev/null', chars=['ascii_lowercase', 'ascii_uppercase', 'digits'], length=12) }}"
    permissions: 
      - vhost: /test
        configure_priv: 
        read_priv: .*
        write_priv: .*
    topic_permissions:
      - vhost: /test
        exchange: '(AMQP default)'
        read_priv: .*
        write_priv: .*
    state: present
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