Complete lab 7 security implementation
This commit is contained in:
@@ -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": []
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
listeners.tcp.default = 5672
|
||||
listeners.ssl.default = 5671
|
||||
|
||||
ssl_options.cacertfile = /certs/ca.crt
|
||||
ssl_options.certfile = /certs/broker.crt
|
||||
ssl_options.keyfile = /certs/broker.key
|
||||
ssl_options.verify = verify_peer
|
||||
ssl_options.fail_if_no_peer_cert = true
|
||||
ssl_options.depth = 2
|
||||
|
||||
management.tcp.port = 15672
|
||||
Reference in New Issue
Block a user