mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Add route permissions
The `client.perms` struct is left unchanged. We simply map Import and Export semantics to existing Publish and Subscribe ones. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
25
test/configs/srv_a_perms.conf
Normal file
25
test/configs/srv_a_perms.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
# Cluster Server A
|
||||
|
||||
listen: 127.0.0.1:5222
|
||||
|
||||
cluster {
|
||||
listen: 127.0.0.1:5244
|
||||
|
||||
authorization {
|
||||
user: ruser
|
||||
password: top_secret
|
||||
timeout: 0.5
|
||||
permissions {
|
||||
import: "foo"
|
||||
export: ["bar", "baz"]
|
||||
}
|
||||
}
|
||||
|
||||
# Routes are actively solicited and connected to from this server.
|
||||
# Other servers can connect to us if they supply the correct credentials
|
||||
# in their routes definitions from above.
|
||||
|
||||
routes = [
|
||||
nats-route://ruser:top_secret@127.0.0.1:5246
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user