feat(security): add operator rotation and recovery commands
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user