pub struct SecurityConfig {
pub profile: Option<String>,
pub profiles: BTreeMap<String, PostureOverrides>,
pub overrides: PostureOverrides,
pub projects: BTreeMap<String, ProjectPostureOverride>,
}Expand description
The raw [security] config section as written in boatramp.cfg (RON).
Fields§
§profile: Option<String>Selected profile: a built-in (multi-tenant / single-tenant / dev) or
a name defined under profiles. Default multi-tenant.
profiles: BTreeMap<String, PostureOverrides>Operator-defined custom profiles: name → overrides over the strict baseline.
overrides: PostureOverridesIndividual knob overrides applied over the selected profile (these win).
projects: BTreeMap<String, ProjectPostureOverride>Per-project overrides (Gap 4a) of the tenancy/capability sub-knobs — project name → override. Layered over the resolved fleet posture for that project only; every other project (and every non-tenancy knob) uses the fleet posture. Lets a shared, multi-project serve process run e.g. a strict-isolation production project alongside a looser preview project.
Implementations§
Source§impl SecurityConfig
impl SecurityConfig
Sourcepub fn resolve(&self) -> Result<SecurityPosture, SecurityError>
pub fn resolve(&self) -> Result<SecurityPosture, SecurityError>
Resolve the configured profile + overrides into a concrete posture.
Sourcepub fn explain(&self) -> Result<String, SecurityError>
pub fn explain(&self) -> Result<String, SecurityError>
Render the resolved posture with each knob’s value and source (the profile
preset vs an explicit override), for boatramp security explain.
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more