forked from mtusi2026/mtusi2026lab7
75 lines
1.7 KiB
Plaintext
75 lines
1.7 KiB
Plaintext
# OpenBao: allow/deny политик реальными токенами AppRole, CIDR, TTL
|
|
# python scripts/ops.py bao-policy
|
|
# 2026-11-17T23:57:40.0157734+03:00
|
|
{
|
|
"ok": true,
|
|
"checks": [
|
|
{
|
|
"check": "approle login from outside secrets network is denied",
|
|
"ok": true,
|
|
"detail": "exit 2"
|
|
},
|
|
{
|
|
"check": "api reads own kv/messenger/api",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "api cannot read kv/messenger/worker",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "api cannot write own kv path",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "api cannot write policies",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "api cannot mint SecretIDs",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "api token is short-lived (ttl<=15m) and not root",
|
|
"ok": true,
|
|
"detail": "ttl=897s policies=['default', 'messenger-api']"
|
|
},
|
|
{
|
|
"check": "worker reads own kv/messenger/worker",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "worker cannot read kv/messenger/api",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "worker cannot write own kv path",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "worker cannot write policies",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "worker cannot mint SecretIDs",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"check": "worker token is short-lived (ttl<=15m) and not root",
|
|
"ok": true,
|
|
"detail": "ttl=896s policies=['default', 'messenger-worker']"
|
|
}
|
|
]
|
|
}
|
|
2026-11-17T20:57:47.753Z saved evidence/bao_policy.json
|