Lab 7
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-27 20:47:58 +03:00
parent 20afc2c790
commit d995f98446
97 changed files with 8638 additions and 56 deletions
+22
View File
@@ -0,0 +1,22 @@
# OpenBao server, NON-dev mode, persistent file storage, TLS listener.
# Root token and unseal shares are created by scripts/openbao-bootstrap.sh and
# stay with the operator (never in Git/images). Applications use AppRole.
#
# NOTE: the official image entrypoint already passes -config=/openbao/config, so
# this file must NOT be passed again with -config or the listener is parsed twice
# ("address already in use"). It is mounted INTO the config directory instead.
ui = true
api_addr = "https://openbao:8200"
cluster_addr = "https://openbao:8201"
storage "file" {
path = "/openbao/file"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = 0
tls_cert_file = "/run/secrets/openbao.crt"
tls_key_file = "/run/secrets/openbao.key"
tls_min_version = "tls12"
}
+7
View File
@@ -0,0 +1,7 @@
# API service policy (attached to the AppRole messenger-api).
# Least privilege: the token can only read this service's own KV v2 secret.
# No root, no wildcard paths, no ability to write policies or read other
# services' secrets -- a stolen API token cannot escalate.
path "secret/data/messenger/api" {
capabilities = ["read"]
}
+7
View File
@@ -0,0 +1,7 @@
# Worker service policy (attached to the AppRole messenger-worker).
# The worker gets its own path only: it must NOT be able to read the API's
# database URL or any admin credential. This separation is what limits the
# blast radius of a compromised worker (grade 5, track 1).
path "secret/data/messenger/worker" {
capabilities = ["read"]
}