Complete lab 7 security implementation

This commit is contained in:
2026-11-26 22:26:21 +03:00
parent 20afc2c790
commit df47ebd9f1
89 changed files with 9765 additions and 53 deletions
+31
View File
@@ -0,0 +1,31 @@
{
"users": [
{"name": "relay", "password": "relay-secret", "tags": ""},
{"name": "worker", "password": "worker-secret", "tags": ""}
],
"vhosts": [{"name": "/"}],
"permissions": [
{
"user": "relay",
"vhost": "/",
"configure": "^(attachment\\.process\\.v1|attachment\\.process\\.v1\\.dlq)$",
"write": "^(amq\\.default|attachment\\.process\\.v1|attachment\\.process\\.v1\\.dlq)$",
"read": "^$"
},
{
"user": "worker",
"vhost": "/",
"configure": "^(attachment\\.process\\.v1|attachment\\.process\\.v1\\.dlq)$",
"write": "^$",
"read": "^attachment\\.process\\.v1$"
}
],
"parameters": [],
"policies": [],
"queues": [
{"name": "attachment.process.v1", "vhost": "/", "durable": true,
"arguments": {"x-dead-letter-exchange": "", "x-dead-letter-routing-key": "attachment.process.v1.dlq", "x-max-priority": 5}},
{"name": "attachment.process.v1.dlq", "vhost": "/", "durable": true}
],
"exchanges": []
}