fix(towercore): block cross-subscriber bulk reads

- Proxy TowerCore frames and reject opcode 0x23 requests containing subscriber selectors.
- Preserve checker bulk reads that address authenticated message IDs.
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 15:24:45 +03:00
1 parent be18145fa6
commit ea9f241058
4 files changed
+163 -2

No files matched your search

+30 -2
View File
@@ -17,8 +17,8 @@ services:
env_file:
- path: ./config.env
required: false
ports:
- "7250:7250"
expose:
- "7250"
volumes:
- towercore_mips_state:/var/lib/towercore
healthcheck:
@@ -32,5 +32,33 @@ services:
max-size: "10k"
max-file: "3"
guard:
build:
context: .
dockerfile: Dockerfile.guard
platform: linux/amd64
restart: unless-stopped
init: true
depends_on:
towercore:
condition: service_healthy
environment:
BACKEND_HOST: towercore
BACKEND_PORT: "7250"
LISTEN_PORT: "7250"
ports:
- "7250:7250"
cpus: "0.5"
mem_limit: 64m
pids_limit: 64
read_only: true
cap_drop: ["ALL"]
security_opt: ["no-new-privileges:true"]
healthcheck:
test: ["CMD", "python", "-c", "import socket; socket.create_connection(('127.0.0.1', 7250), 2).close()"]
interval: 10s
timeout: 3s
retries: 5
volumes:
towercore_mips_state: