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:
+49
-3
@@ -123,7 +123,7 @@ services:
|
||||
depends_on:
|
||||
identity-api:
|
||||
condition: service_started
|
||||
cpus: ${API_CPUS:-0.5}
|
||||
cpus: ${API_CPUS:-1}
|
||||
mem_limit: 768m
|
||||
memswap_limit: 768m
|
||||
pids_limit: 128
|
||||
@@ -144,6 +144,16 @@ services:
|
||||
- -m
|
||||
- src.runtime
|
||||
- src
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- python
|
||||
- -c
|
||||
- import urllib.request;urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=2).read()
|
||||
interval: 3s
|
||||
timeout: 3s
|
||||
start_period: 45s
|
||||
retries: 15
|
||||
s3:
|
||||
image: ${S3_IMAGE:-mtusi-storage:lab7-minio-20251015}
|
||||
build:
|
||||
@@ -1450,13 +1460,22 @@ services:
|
||||
volumes:
|
||||
- ./trust:/trust:ro
|
||||
- ./secrets/probe:/probe-fixtures:ro
|
||||
- identity_openbao:/identities/openbao:ro
|
||||
- identity_api:/identities/api:ro
|
||||
- identity_worker:/identities/worker:ro
|
||||
- identity_relay:/identities/relay:ro
|
||||
- identity_lb:/identities/lb:ro
|
||||
- identity_reconciler:/identities/reconciler:ro
|
||||
- identity_observer:/identities/observer:ro
|
||||
- identity_reconciler:/identities/reconciler:ro
|
||||
- identity_migrate:/identities/migrate:ro
|
||||
- identity_lb:/identities/lb:ro
|
||||
- identity_postgres:/identities/postgres:ro
|
||||
- identity_s3:/identities/s3:ro
|
||||
- identity_broker:/identities/broker:ro
|
||||
- identity_cache:/identities/cache:ro
|
||||
- identity_otel:/identities/otel:ro
|
||||
- identity_prometheus:/identities/prometheus:ro
|
||||
- identity_loki:/identities/loki:ro
|
||||
- identity_tempo:/identities/tempo:ro
|
||||
- identity_grafana:/identities/grafana:ro
|
||||
cap_drop:
|
||||
- ALL
|
||||
@@ -1472,6 +1491,33 @@ services:
|
||||
pids_limit: 64
|
||||
healthcheck:
|
||||
disable: true
|
||||
operator-task:
|
||||
image: ${API_IMAGE:-mtusi-messenger:lab7}
|
||||
pull_policy: never
|
||||
profiles:
|
||||
- operator
|
||||
entrypoint:
|
||||
- python
|
||||
- -m
|
||||
- src.operator
|
||||
user: 10001:10001
|
||||
environment:
|
||||
IDENTITY_ENABLED: '1'
|
||||
volumes:
|
||||
- ./secrets/operator-task:/run/identity:ro
|
||||
- ./trust:/trust:ro
|
||||
read_only: true
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
tmpfs:
|
||||
- /tmp:rw,noexec,nosuid,size=8m
|
||||
cpus: 0.5
|
||||
mem_limit: 192m
|
||||
pids_limit: 64
|
||||
healthcheck:
|
||||
disable: true
|
||||
secrets:
|
||||
postgres_password:
|
||||
file: ./secrets/postgres_password
|
||||
|
||||
Reference in New Issue
Block a user