Source: factory.core/ConfigIni.py
Configuration-related errors.
Configuration management with secret backend.
Loads hierarchical YAML configuration from config.yaml
with package-specific overrides and variable substitution.
Integrates with Infisical for centralised secret
...
| Method | Signature | Description |
|---|---|---|
| debug | debug(*args) -> None |
Print debug output to console. |
| remote_connections | remote_connections() -> str |
Lazy-load remote connections configuration. |
| primary_ip | primary_ip() -> str |
Lazy-load primary IP configuration. |
| seeddisk_cache | seeddisk_cache() -> int |
Fetch all Infisical secrets and write to |
| seed_awsdisk_cache | seed_awsdisk_cache() -> int |
Seed disk cache from AWS Secrets Manager. |
| send_infisical_alert | send_infisical_alert(db_connection: object) -> None |
Dispatch a deferred Infisical failure alert. |
| send_aws_secrets_alert | send_aws_secrets_alert(db_connection: object) -> None |
Dispatch a deferred AWS Secrets Manager alert. |
| is_aws | is_aws() -> bool |
Check if running on an AWS EC2 instance. |
| is_kvm | is_kvm() -> bool |
Check if running on KVM/Proxmox. |
| has_private_key | has_private_key(package: str) -> bool |
|
| has_public_key | has_public_key(package: str) -> bool |
|
| encrypt | encrypt(text: str, package: str = 'reference') -> str |
|
| decrypt | decrypt(text: str, package: str = 'reference') -> str |
|
| clear_cache | clear_cache() -> None |
Clear the Get() result cache. |
| Get | Get(section: str, option: str, default: str = '') |
Retrieve a configuration value. |
| get_secret | get_secret(secret_name: str) -> str |
Retrieve a named secret from the backend. |
| cycle | cycle() -> None |
Test config cycle — prints DB credentials. |
| get_db_config | get_db_config(name: str) -> dict |
Get database connection config by name. |
| get_provider_config | get_provider_config(provider: str, terraform_key: str = '') -> dict |
Get connection config for a named provider. |
| get_active_db_name | get_active_db_name() -> str |
Get the active database connection name. |
| get_mac_address | get_mac_address(interface: str = 'ens18') -> str |
Get MAC address of a network interface. |
| annotate_config | annotate_config(config_path: str = 'config.yaml', output_path: str = '') -> str |
Parse config.yaml and rewrite with annotations. |
Annotate config.yaml with descriptions, GUIDs, and public keys.
Comprehensive Infisical integration test.