Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4523d79
Managed-host cut O1a: evidence-bound rotation route standing + qualif…
Oct 3, 2026
a987c3c
Census: hoist the route-qualification row's reasoning to module grain…
Oct 3, 2026
c05714a
Rotation Apply: bind the approval to the controller, build and reques…
Oct 4, 2026
afcc512
Route module sits below bmc_secure: drop the rotation-event mapping; …
Oct 4, 2026
8e5b038
O1a side-chat review: modeled run cannot ground; response bound to su…
Oct 4, 2026
0f35b65
Managed-host cut O1a-2: IPMI Set User Access as a second route reques…
Oct 4, 2026
6ee95d0
O1a-2: the lockout hazard is a refusal — a privilege-lowering channel…
Oct 4, 2026
7887d74
O1a-2: admit the lockout helper (the citation mint's actual caller)
Oct 4, 2026
b66626e
O1a-2: ManagedAdministratorReadback is sealed and bound to the route'…
Oct 4, 2026
cc8d6cd
Merge main (#13177 squash-landed) into O1a-2; census takes main's man…
Oct 4, 2026
44f35f6
O1a-2 side-chat items 1, 3, precision: pre-write qualification admiss…
Oct 4, 2026
6d27741
O1a-2: an executed grounding states whether its effect was observed; …
Oct 4, 2026
4fe9f69
O1a-2 side-chat review of 6d277411fd: no carrier-returning facades; i…
Oct 5, 2026
e12070a
O1a-2: discriminating target-pair controls; drop the implied (dead) h…
Oct 5, 2026
8960bbe
Merge main (#13221 O1b, O1c-1) into O1a-2; O1b consumes the new Apply…
Oct 5, 2026
a68bb7a
O1a-2 integration: one-arm MissingAccountOperation spelled as a copro…
Oct 5, 2026
7264e4e
O1a-2 integration, side-chat review of 8960bbe511: producer-bound rea…
Oct 5, 2026
8a24066
O1a-2: admit the two new channel-close claims to the citation mint (f…
Oct 5, 2026
111316f
O1a-2: exhaustive arms over RotationApplyAdmission in admitted_channe…
Oct 5, 2026
d5affb1
O1a-2: O1b witness expectations follow the labels the code produces (…
Oct 5, 2026
e2e8259
O1a-2: one equality for IpmiChannelPrivilegeLimit (direct ==); readba…
Oct 5, 2026
ca9ca59
O1a-2: the controller-clock read-floor wall re-pointed at the dry rea…
Oct 5, 2026
3e819eb
Merge main (#13285 risk-model rename) into O1a-2
Oct 5, 2026
74b10e4
O1a-2: the read-floor wall is the observation mint's admission (the a…
Oct 5, 2026
5cec3b2
O1a-2: the idempotent mtcollins1 qualification grounds acceptance onl…
Oct 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion dag/gunbc/auth/privileged_effect_census.dag
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,26 @@ fn route_qualification_effect() -> PrivilegedEffect {
}
}

// ROTATION ROUTE QUALIFICATION, CHANNEL-ACCESS SHAPE (cut O1a-2). The same qualification effect
// executed for an IPMI Set User Access request: one per controller and build. Its characteristics
// are stated as they are rather than copied from the password row. IRREVERSIBLE, AND SAID SO: a
// privilege write to the wrong user or channel can remove the last administrator's access over the
// LAN, and getting it back needs hands on the unit (a host-side interface or a reflash), which no
// reapply over the network can do. It applies NO credential: it changes a privilege limit, not a
// password. No dispatched run carries it; in this cut it is modeled with a dry realization only.
fn route_qualification_channel_access_effect() -> PrivilegedEffect {
PrivilegedEffect {
subject: "qualify a BMC channel-access route: execute one IPMI Set User Access request in its privilege-limit-only form on one controller at one firmware build and read it back with Get User Access" as NonEmptyStr,
frequency: DeviceOnce,
reversibility: IrreversibleEffect { what_is_lost: "a privilege write to the wrong user or channel can remove the last administrator's LAN access; recovering it needs hands on the unit, not a reapply" as NonEmptyStr },
surface: ApiSurface,
workload_identity: WorkloadIdentityUnbindable { cause: "no dispatched run carries route qualification; in cut O1a-2 it is modeled with a dry realization only" as NonEmptyStr },
minted_reach: MintsNoCredential,
billing: NoBillingConsequence,
witness_discharge: NoWitnessDischarge,
}
}

// BMCSECURE ACCOUNT ROTATION (cut O1b). The Apply arm of the state-shaped BmcSecure: set the managed
// account to a stored and exact-fetched generation and retire the published account to a break-glass
// generation, each write over a route admitted by admit_rotation_apply. IRREVERSIBLE, AND SAID SO: the
Expand Down Expand Up @@ -642,11 +662,17 @@ data privileged_effect_census: List<PrivilegedEffectSite> = [
divergence_reason: none,
},
PrivilegedEffectSite {
site: site(module_path: "gunbc.machine_intake_bmc_rotation_route", decl_name: "qualify_rotation_route"),
site: site(module_path: "gunbc.machine_intake_bmc_rotation_route", decl_name: "admit_password_route_qualification"),
effect: route_qualification_effect(),
realized: RealizedApprovalCapability,
divergence_reason: none,
},
PrivilegedEffectSite {
site: site(module_path: "gunbc.machine_intake_bmc_rotation_route", decl_name: "admit_privilege_limit_route_qualification"),
effect: route_qualification_channel_access_effect(),
realized: RealizedApprovalCapability,
divergence_reason: none,
},
PrivilegedEffectSite {
site: site(module_path: "gunbc.machine_intake_bmc_secure", decl_name: "plan_bmc_account_action"),
effect: bmc_secure_account_rotation_effect(),
Expand Down
60 changes: 50 additions & 10 deletions dag/gunbc/bmc_model.dag
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import std.types { Bool, Int, List }
import std.measure { Second, second, second_count }
import v2.std.optional { Present, Absent }
import v2.std.algebra { any, filter }
import extdeps.bmc.ipmi_channel { IpmiUserId }
import extdeps.bmc.ipmi_channel { IpmiUserId, IpmiUserChannelAccess, IpmiChannelPrivilegeLimit }
import extdeps.bmc.ipmi_chassis_control {
IpmiChassisControlAction, IpmiChassisPowerDown, IpmiChassisPowerUp, IpmiChassisPowerCycle, IpmiChassisHardReset,
}
Expand Down Expand Up @@ -74,13 +74,14 @@ type BmcWorld {
sol_drop_after_boot: Second?
web: BmcWebWorld
ipmi_users: List<BmcIpmiUser>
ipmi_user_access: List<IpmiUserChannelAccess>
}

fn bmc_world(power: BmcPower) -> BmcWorld {
BmcWorld {
power: power, pending: [], fired: [], boot_override: BootOverrideNone, sel: [],
sol_session_open: false, cycle_off_interval: second(count: 5), host_booted_at: none, booted_via_override: false, sol_drop_after_boot: none,
web: bmc_web_world_untouched, ipmi_users: [],
web: bmc_web_world_untouched, ipmi_users: [], ipmi_user_access: [],
}
}

Expand Down Expand Up @@ -148,7 +149,7 @@ fn bmc_with_power(world: BmcWorld, power: BmcPower) -> BmcWorld {
power: power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand All @@ -157,7 +158,7 @@ fn bmc_with_web(world: BmcWorld, web: BmcWebWorld) -> BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: web, ipmi_users: world.ipmi_users,
web: web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand Down Expand Up @@ -266,7 +267,7 @@ fn bmc_with_override(world: BmcWorld, over: BmcBootOverride) -> BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: over, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand All @@ -275,7 +276,7 @@ fn bmc_with_sol_session(world: BmcWorld, open: Bool) -> BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand All @@ -284,7 +285,7 @@ fn bmc_with_pending(world: BmcWorld, pending: List<BmcScheduledEvent>, fired: Li
power: world.power, pending: pending, fired: fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand All @@ -300,7 +301,7 @@ fn bmc_host_boots(world: BmcWorld, now: Second) -> BmcWorld {
power: BmcPowerOn, pending: pending, fired: world.fired, boot_override: BootOverrideNone, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: Present { value: now }, booted_via_override: via, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand Down Expand Up @@ -401,7 +402,7 @@ fn bmc_with_sol_drop_after_boot(world: BmcWorld, after: Second) -> BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: Present { value: after },
web: world.web, ipmi_users: world.ipmi_users,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand Down Expand Up @@ -432,7 +433,7 @@ fn bmc_with_ipmi_users(world: BmcWorld, users: List<BmcIpmiUser>) -> BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: users,
web: world.web, ipmi_users: users, ipmi_user_access: world.ipmi_user_access,
}
}

Expand All @@ -455,3 +456,42 @@ fn bmc_ipmi_set_user_password(world: BmcWorld, user: IpmiUserId, password: Strin
fn bmc_ipmi_user_accepts(world: BmcWorld, user: IpmiUserId, password: String) -> Bool {
any(world.ipmi_users, u => (u.id as Int) == (user as Int) && u.password == password)
}

// ── IPMI USER ACCESS ─────────────────────────────────────────────────────────────────────────────
//
// THE CONTROLLER'S PER-CHANNEL USER ACCESS TABLE: one (channel, user, privilege limit) row per pair
// the controller holds, the shape Get User Access returns (extdeps.bmc.ipmi_channel). The transition
// is the Set User Access command of the public IPMI v2.0 specification (App NetFn, command 43h): it
// sets one user's privilege limit on one channel and changes nothing else -- not the password, not
// the row of any other channel or user. A write for a user the IPMI user table does not hold changes
// nothing and is not completed.
type BmcIpmiSetUserAccessStep {
world: BmcWorld
completed: Bool
}

fn bmc_with_ipmi_user_access(world: BmcWorld, rows: List<IpmiUserChannelAccess>) -> BmcWorld {
BmcWorld {
power: world.power, pending: world.pending, fired: world.fired, boot_override: world.boot_override, sel: world.sel,
sol_session_open: world.sol_session_open, cycle_off_interval: world.cycle_off_interval,
host_booted_at: world.host_booted_at, booted_via_override: world.booted_via_override, sol_drop_after_boot: world.sol_drop_after_boot,
web: world.web, ipmi_users: world.ipmi_users, ipmi_user_access: rows,
}
}

fn bmc_ipmi_set_user_access(world: BmcWorld, access: IpmiUserChannelAccess) -> BmcIpmiSetUserAccessStep {
if any(world.ipmi_users, u => (u.id as Int) == (access.user as Int)) {
let others = filter(world.ipmi_user_access, r => !((r.user as Int) == (access.user as Int) && (r.channel as Int) == (access.channel as Int)))
BmcIpmiSetUserAccessStep { world: bmc_with_ipmi_user_access(world: world, rows: list_append(others, access)), completed: true }
} else {
BmcIpmiSetUserAccessStep { world: world, completed: false }
}
}

// Get User Access for one (channel, user): the readback a channel-access write is judged by,
// independent of the write's completion. Absent when the controller holds no row for the pair.
fn bmc_ipmi_get_user_access(world: BmcWorld, user: IpmiUserId, channel: Int) -> IpmiChannelPrivilegeLimit? {
let wanted: IpmiChannelPrivilegeLimit? = none
filter(world.ipmi_user_access, r => (r.user as Int) == (user as Int) && (r.channel as Int) == channel)
|> fold(init: wanted, f: (acc, r) => match acc { Absent => Present { value: r.privilege } Present { value: _ } => acc })
}
Loading
Loading