Coverage for src / local_deep_research / settings / env_definitions / security.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.12.0, created at 2026-01-11 00:51 +0000

1""" 

2Security environment settings. 

3 

4These settings control security-related behavior like SSRF validation. 

5""" 

6 

7import os 

8from ..env_settings import BooleanSetting 

9 

10 

11# External environment variables (set by pytest, CI systems) 

12# These are read directly since we don't control them 

13PYTEST_CURRENT_TEST = os.environ.get("PYTEST_CURRENT_TEST") 

14 

15 

16# LDR Security settings (our application's security configuration) 

17SECURITY_SETTINGS = [ 

18 BooleanSetting( 

19 key="security.ssrf.disable_validation", # gitleaks:allow 

20 description="Disable SSRF validation (test/dev only - NEVER in production)", 

21 default=False, 

22 ), 

23]