Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Seclib.IAM.Bridge

BridgeRecord — ⚪ definition

structure · source

A bridge test record.

structure BridgeRecord where

— ⚪ definition

instance · source

instance : FromJson BridgeRecord where

parseScenario — ⚪ definition

def · source

Parse an escalation scenario name to the enum.

def parseScenario : String → Option EscalationScenario
  | "addUserToGroup" => some .addUserToGroup
  | "attachRolePolicy" => some .attachRolePolicy
  | "attachGroupPolicy" => some .attachGroupPolicy
  | "attachUserPolicy" => some .attachUserPolicy
  | "putGroupPolicy" => some .putGroupPolicy
  | "putRolePolicy" => some .putRolePolicy
  | "putUserPolicy" => some .putUserPolicy
  | "createLoginProfile" => some .createLoginProfile
  | "updateLoginProfile" => some .updateLoginProfile
  | "createPolicyVersion" => some .createPolicyVersion
  | _ => none

BridgeRecord.toGraph — ⚪ definition

def · source

Build an IAMGraph from a bridge record’s edges, actions, and conditions.

def BridgeRecord.toGraph (r : BridgeRecord) : IAMGraph where

checkRecord — ⚪ definition

def · source

Check one bridge record: compare actual vs expected distance.

def checkRecord (r : BridgeRecord) : Bool × String

parseJsonl — ⚪ definition

def · source

Parse JSONL into bridge records.

def parseJsonl (content : String) : List BridgeRecord

bridgeCheck — ⚪ definition

def · source

Check all records via IO, printing results.

def bridgeCheck (path : System.FilePath) : IO UInt32