openhands.core.config.security_config
SecurityConfig Objects
class SecurityConfig(BaseModel)
Configuration for security related functionalities.
Attributes:
confirmation_mode
- Whether to enable confirmation mode.security_analyzer
- The security analyzer to use.
from_toml_section
@classmethod
def from_toml_section(cls, data: dict) -> dict[str, 'SecurityConfig']
Create a mapping of SecurityConfig instances from a toml dictionary representing the [security] section.
The configuration is built from all keys in data.
Returns:
dict[str, SecurityConfig]: A mapping where the key "security" corresponds to the [security] configuration