fix: harden runtime deployment defaults
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_compose_does_not_embed_password_or_net_admin_capability():
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
|
||||
assert "POSTGRES_PASSWORD=pingwatch123" not in compose
|
||||
assert "NET_ADMIN" not in compose
|
||||
assert "127.0.0.1:8001:8000" in compose
|
||||
|
||||
|
||||
def test_oauth_client_does_not_disable_tls_verification():
|
||||
auth_source = (ROOT / "backend" / "app" / "core" / "auth.py").read_text(encoding="utf-8")
|
||||
|
||||
assert "verify=False" not in auth_source
|
||||
Reference in New Issue
Block a user