Files
mtusi2026lab7/infra/openbao/policies/api.hcl
T
ejur22 d995f98446
Skeleton contracts / contracts (pull_request) Canceled after 0s
Lab 7
2026-11-27 20:47:58 +03:00

8 lines
333 B
HCL

# 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"]
}