Skip to content

Security: isora-cloud-group/stratum-python

Security

SECURITY.md

Security Policy — Stratum-Python

Repository: stratum-python
Security Operations: [email protected]
General Contact: [email protected]
Revision: 3.1.0
Status: Production (Unattended & Scalable)


1. Supported Versions

Security updates are provided for the following active revisions:

Component Supported Revision Status
stratum-python 3.1.x ✅ Active / Supported
Platform Baseline (Stratum-Core) 3.1.x ✅ Supported
Legacy Releases < 3.1 ❌ Deprecated / Unsupported

2. Reporting a Vulnerability

Do not report security vulnerabilities through public GitHub issues, discussions, or any other public channel.

To report a vulnerability, send an email to:

[email protected]

Include:

  1. Type of vulnerability: (e.g., lateral movement across app_internal, privilege escalation, capability bypass, info leak in probes, credential exposure).
  2. Affected component: Specify app-*, worker*, postgres, valkey, Dockerfile, src/main.py, or docker-compose*.yml.
  3. Affected revision: Declare the revision number (e.g., 3.1.0).
  4. Description, reproduction steps, and impact assessment.

3. Threat Model & Confinement (STRIDE Analysis)

Threat Stratum Architectural Countermeasure
Spoofing Per-service PostgreSQL scram-sha-256 roles (<org>_<service>), Valkey 8.1 --aclfile authentication (user default off, dedicated healthcheck -@all +ping, prefix-scoped <CACHE_USER>), and org-router ingress filtering.
Tampering Root filesystems enforce read_only: true across all services (app-*, worker*, postgres, valkey). Production builds bake /app/src into the image (no :rw bind mounts); app-test mounts ./src:/app/src:ro. Volatile writes are confined to noexec,nosuid,nodev tmpfs mounts.
Repudiation Structured JSON container logging (10m × 3, compressed) and trusted proxy IP preservation via Central NPM / org router.
Information Disclosure Zero Public Ports (ADR-0007): 0.0.0.0 and :: bindings are prohibited (127.0.0.1 loopback allowed strictly in test mode). src/main.py disables /docs, /redoc, /openapi.json when APP_ENV=production and strips internal hosts/exceptions from /health. Valkey credentials reside in /tmp/users.acl (0600), never passed via --requirepass CLI args.
Denial of Service Cgroups v2 deploy.resources.limits (cpus, memory, pids) plus mem_limit, memswap_limit, and pids_limit prevent fork bombs and swap exhaustion. Valkey enforces --maxmemory below VALKEY_MEM_LIMIT with allkeys-lru.
Elevation of Privilege Non-root execution (appuser 1000:1000 for app/worker, valkey 999:1000 for Valkey), cap_drop: [ALL], and no-new-privileges:true enforced across all containers.

4. Shared Responsibility & Scope Notes

  • Linux Network Namespaces (DOCKER-USER): Network isolation is implemented via Linux kernel namespaces (internal: true, enable_ipv6: false) and DOCKER-USER netfilter chains in stratum-core.
  • Shared Application Segments (delegated mode): Within stratum_${TENANT_ORG}_internal, peer workloads of the same organization share an internal bridge. Operators assume shared responsibility for intra-organization lateral risk and should deploy isolated mode with private engines for high-risk or untrusted workloads.
  • Celery / Valkey ACL Confinement: Strict prefix ACLs disable gossip/mingle/remote control; enable interactive Celery events or Flower only under isolated environments.
  • Upstream Dependencies: See THIRD-PARTY-NOTICES.md for upstream image/package licenses and nominative Redis® RESP fair-use details.

There aren't any published security advisories