Expand description
§Secrets Management
Utilities for safely loading and filtering environment variables as agent configuration secrets.
The primary entry point is load_safe_env_vars, which returns only
non-sensitive environment variables. Sensitive variables (those matching
known credential patterns) are filtered out to prevent accidental leakage
into configuration files or logs.
For intentionally loading specific credentials, use is_env_var_safe
to verify a variable name before loading.
Functions§
- is_
env_ var_ safe - Returns
trueif the environment variable name is considered safe (i.e. does not match any blocked pattern). - load_
env_ var_ safe - Load a single environment variable by name if it is safe.
- load_
safe_ env_ vars - Collect all safe environment variables into a
HashMap.