chore: finalize lab7 security verification
CI / verify (pull_request) Successful in 14m53s

This commit is contained in:
2026-11-06 22:00:42 +03:00
parent 5ac64f51fa
commit a8edaf058d
53 changed files with 1130 additions and 224 deletions
+3 -3
View File
@@ -22,8 +22,8 @@ scripts/openbao-init.sh
scripts/openbao-unseal.sh
chmod 0600 .runtime/openbao/seed/api.json .runtime/openbao/seed/worker.json
scripts/openbao-bootstrap.sh \
.runtime/openbao/seed/api.json \
.runtime/openbao/seed/worker.json
"$PWD/.runtime/openbao/seed/api.json" \
"$PWD/.runtime/openbao/seed/worker.json"
scripts/openbao-test-policy.sh
```
@@ -37,7 +37,7 @@ Seed-файлы — непустые JSON-объекты с фактически
```sh
chmod 0600 .runtime/openbao/seed/api-next.json
scripts/openbao-rotate.sh api .runtime/openbao/seed/api-next.json
scripts/openbao-rotate.sh api "$PWD/.runtime/openbao/seed/api-next.json"
```
Ротация создаёт новую версию KV v2 и новый короткоживущий `SecretID`; предыдущий accessor отзывается. Agent перечитывает статический secret не позднее пяти минут. Уже выданный token может жить до своего TTL, поэтому при компрометации дополнительно отзывают его accessor или отключают роль и перезапускают Agent с новой идентичностью.
-1
View File
@@ -1,4 +1,3 @@
{{- with secret "secret/data/messenger/api" -}}
{{ .Data.data | toJSON }}
{{- end -}}
-1
View File
@@ -41,4 +41,3 @@ template {
perms = "0600"
backup = false
}
-1
View File
@@ -1,4 +1,3 @@
{{- with secret "secret/data/messenger/worker" -}}
{{ .Data.data | toJSON }}
{{- end -}}
-1
View File
@@ -41,4 +41,3 @@ template {
perms = "0600"
backup = false
}
-1
View File
@@ -17,4 +17,3 @@ listener "tcp" {
}
log_level = "info"
-1
View File
@@ -29,4 +29,3 @@ path "auth/token/revoke-self" {
path "sys/policies/*" {
capabilities = ["deny"]
}
@@ -29,4 +29,3 @@ path "auth/token/revoke-self" {
path "sys/policies/*" {
capabilities = ["deny"]
}