Coverage for src / local_deep_research / settings / env_definitions / bootstrap.py: 100%
2 statements
« prev ^ index » next coverage.py v7.12.0, created at 2026-01-11 00:51 +0000
« prev ^ index » next coverage.py v7.12.0, created at 2026-01-11 00:51 +0000
1"""
2Bootstrap environment settings.
4These settings are required early in the application lifecycle,
5before database initialization and other core systems.
6"""
8from ..env_settings import (
9 BooleanSetting,
10 StringSetting,
11 PathSetting,
12 SecretSetting,
13)
16# Bootstrap settings required before DB init
17BOOTSTRAP_SETTINGS = [
18 # Security and encryption
19 SecretSetting(
20 key="bootstrap.encryption_key",
21 description="Database encryption key",
22 required=False, # Not required if allow_unencrypted is True
23 ),
24 SecretSetting(
25 key="bootstrap.secret_key",
26 description="Application secret key for session encryption",
27 ),
28 # Database
29 StringSetting(
30 key="bootstrap.database_url",
31 description="Database connection URL",
32 ),
33 BooleanSetting(
34 key="bootstrap.allow_unencrypted",
35 description="Allow unencrypted database (for development)",
36 default=False,
37 ),
38 # System paths
39 PathSetting(
40 key="bootstrap.data_dir",
41 description="Data directory path",
42 create_if_missing=True,
43 ),
44 PathSetting(
45 key="bootstrap.config_dir",
46 description="Configuration directory path",
47 create_if_missing=True,
48 ),
49 PathSetting(
50 key="bootstrap.log_dir",
51 description="Log directory path",
52 create_if_missing=True,
53 ),
54 # Logging
55 BooleanSetting(
56 key="bootstrap.enable_file_logging",
57 description="Enable logging to file",
58 default=False,
59 ),
60]