forked from mtusi2026/mtusi2026lab7
OpenBao 2.7.3 (raft, TLS 1.3 with client certificates) holds the PostgreSQL role passwords, the Valkey password and the S3 keys; each process logs in with its own mTLS identity, reads only its paths and renews its token in the background. Operator init, unseal, configure and seed go through infra/openbao/bao.py and make bao_*; checks are make bao_check and driver.py openbao-outage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.1 KiB
HCL
31 lines
1.1 KiB
HCL
# Политика процесса API — реплики, консольный и тестовый API (change
|
|
# openbao-secrets, design, решения 6–7). Вход — роль auth/cert/certs/api:
|
|
# identity api-client (CN), DNS SAN api. Только read своих путей KV v2
|
|
# messenger/data/…: metadata/, список, запись, удаление и системные пути не
|
|
# выдаются (версию процесс видит в ответе чтения data/). Шаблонов путей нет,
|
|
# политики default у токена нет (token_no_default_policy). Своим токеном —
|
|
# только просмотр, продление и отзыв.
|
|
path "messenger/data/postgres/api" {
|
|
capabilities = ["read"]
|
|
}
|
|
|
|
path "messenger/data/valkey/api" {
|
|
capabilities = ["read"]
|
|
}
|
|
|
|
path "messenger/data/s3/api" {
|
|
capabilities = ["read"]
|
|
}
|
|
|
|
path "auth/token/lookup-self" {
|
|
capabilities = ["read"]
|
|
}
|
|
|
|
path "auth/token/renew-self" {
|
|
capabilities = ["update"]
|
|
}
|
|
|
|
path "auth/token/revoke-self" {
|
|
capabilities = ["update"]
|
|
}
|