@@ -0,0 +1,7 @@
|
||||
# API service policy (attached to the AppRole messenger-api).
|
||||
# Least privilege: the token can only read this service's own KV v2 secret.
|
||||
# No root, no wildcard paths, no ability to write policies or read other
|
||||
# services' secrets -- a stolen API token cannot escalate.
|
||||
path "secret/data/messenger/api" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Worker service policy (attached to the AppRole messenger-worker).
|
||||
# The worker gets its own path only: it must NOT be able to read the API's
|
||||
# database URL or any admin credential. This separation is what limits the
|
||||
# blast radius of a compromised worker (grade 5, track 1).
|
||||
path "secret/data/messenger/worker" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
Reference in New Issue
Block a user