rabbitmq
How to get these credentialsConnection to a RabbitMQ broker: the Management HTTP API (basic auth or OAuth 2 bearer token), an optional AMQP URL for stream reads, and TLS options.
CREATE SECRET rabbitmq (
TYPE rabbitmq,
management_url '<management_url>',
username '<username>',
password '<RABBITMQ_PASSWORD>', -- secret
bearer_token '<BEARER_TOKEN>', -- secret
amqp_url '<RABBITMQ_AMQP_URL>', -- secret
tls_ca_cert '<tls_ca_cert>',
tls_client_cert '<tls_client_cert>',
tls_client_key '<TLS_CLIENT_KEY>', -- secret
tls_server_name '<tls_server_name>',
tls_skip_verify '<tls_skip_verify>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| management_url | VARCHAR | — | Management plugin root, e.g. 'http://localhost:15672' or 'https://rabbit.example.com/rabbitmq' behind a path prefix. /api/... is appended. |
| username | VARCHAR | — | Basic-auth user name for the Management API (and for AMQP when amqp_url has no user). |
| password secret | VARCHAR | — | Basic-auth password. |
| bearer_token secret | VARCHAR | — | OAuth 2 access token, sent as 'Authorization: Bearer <token>' (rabbitmq_auth_backend_oauth2); for AMQP it is sent as the password. |
| amqp_url secret | VARCHAR | — | AMQP 0-9-1 URL used by stream_messages, e.g. 'amqp://user:pass@localhost:5672/' or 'amqps://...'. The vhost argument overrides its path. |
| tls_ca_cert | VARCHAR | — | PEM CA bundle that signs the broker's certificate (HTTPS and AMQPS). |
| tls_client_cert | VARCHAR | — | PEM client certificate for mutual TLS. |
| tls_client_key secret | VARCHAR | — | PEM private key of tls_client_cert. |
| tls_server_name | VARCHAR | — | Server name to verify instead of the URL's host. |
| tls_skip_verify | VARCHAR | — | 'true' disables certificate verification (testing only). |
The worker doesn't mark which keys are required.
Needed by bindingschannelsconnectionsconsumersdefinitions_summarydeprecated_featuresexchangesfeature_flagsglobal_parametershealth_checksnodesoperator_policies and 11 more functions