Problem description
Currently, stackit_rabbitmq_credential resource creates a RabbitMQ user with a tag policymaker:
{
"hashing_algorithm": "rabbit_password_hashing_sha256",
"limits": {},
"name": "<username>",
"password_hash": "<password>",
"tags": [
"policymaker"
]
}
and with pretty broad permissions:
{
"configure": ".*",
"read": ".*",
"user": "<username>",
"vhost": "/",
"write": ".*"
}
As it is not possible to create a user with adminstrator tag, I also cannot adjust tags and permissions afterwards via "official" rabbitmq provider.
Proposed solution
I would really like to configure at least the tags, to be added to the user to be created. A custom username would also be nice.
Something like this:
resource "stackit_rabbitmq_credential" "rabbitmq_admin_credential" {
project_id = var.stackit_project_id
instance_id = stackit_rabbitmq_instance.rabbitmq.instance_id
username = "my-awesome-user"
roles = ["administrator"]
}
With that, I could use rabbitmq provider afterwards to edit tags and permissions of the already created users. It would be even better if I could configure the permissions directly with stackits provider.
Something like this:
resource "stackit_rabbitmq_credential" "rabbitmq_credential" {
project_id = var.stackit_project_id
instance_id = stackit_rabbitmq_instance.rabbitmq.instance_id
username = "my-awesome-user"
roles = []
permissions = {
configure = "^some-prefix\\..*$"
write = "^some-prefix\\..*$"
read = "^some-prefix\\..*$"
}
}
Thanks in advance, Nils
Problem description
Currently, stackit_rabbitmq_credential resource creates a RabbitMQ user with a tag policymaker:
{ "hashing_algorithm": "rabbit_password_hashing_sha256", "limits": {}, "name": "<username>", "password_hash": "<password>", "tags": [ "policymaker" ] }and with pretty broad permissions:
{ "configure": ".*", "read": ".*", "user": "<username>", "vhost": "/", "write": ".*" }As it is not possible to create a user with adminstrator tag, I also cannot adjust tags and permissions afterwards via "official" rabbitmq provider.
Proposed solution
I would really like to configure at least the tags, to be added to the user to be created. A custom username would also be nice.
Something like this:
With that, I could use rabbitmq provider afterwards to edit tags and permissions of the already created users. It would be even better if I could configure the permissions directly with stackits provider.
Something like this:
Thanks in advance, Nils