This commit is contained in:
@@ -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,4 +1,3 @@
|
||||
{{- with secret "secret/data/messenger/api" -}}
|
||||
{{ .Data.data | toJSON }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ template {
|
||||
perms = "0600"
|
||||
backup = false
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{{- with secret "secret/data/messenger/worker" -}}
|
||||
{{ .Data.data | toJSON }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ template {
|
||||
perms = "0600"
|
||||
backup = false
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ listener "tcp" {
|
||||
}
|
||||
|
||||
log_level = "info"
|
||||
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user