feat(security): add operator rotation and recovery commands
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-20 19:02:00 +03:00
parent 1dd020d060
commit f2ea9d65a8
22 changed files with 983 additions and 46 deletions
+9
View File
@@ -8,6 +8,7 @@ import time
from scripts.bao_operator import Operator
from scripts.bootstrap_security import OPERATOR, generate
from scripts.credentials import repair
from scripts.prepare_dependencies import main as dependencies
from scripts.prepare_dependencies import postgres
from scripts.stand import ROOT, command, compose, ready
@@ -42,6 +43,9 @@ def main():
operator.init()
operator.unseal()
operator.configure()
# The maintenance identity is intentionally stopped between migrations.
# Its expired leaf is repaired explicitly by the operator before reuse.
repair(operator, "migrate")
finally:
operator.close()
agents = [
@@ -107,6 +111,11 @@ def main():
"observer",
"reconciler",
)
if "compose.test.yaml" in os.getenv("COMPOSE_FILE", ""):
from scripts.operator_task import prepare
prepare()
compose("up", "-d", "--no-deps", "controller")
ready(timeout=120)
print("Secure stand ready at https://localhost:8443; values remain local")