[ Jun 15 22:52:52 Enabled. ] [ Jun 15 22:52:52 Rereading configuration. ] [ Jun 15 22:52:55 Rereading configuration. ] [ Jun 15 22:53:01 Executing start method ("ctrun -l child -o noorphan,regent /opt/oxide/omicron-nexus/bin/nexus /var/svc/manifest/site/nexus/config.toml &"). ] [ Jun 15 22:53:01 Method "start" exited with status 0. ] note: configured to log to "/dev/stdout" {"msg":"registered DTrace probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:02.438151061Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945} {"msg":"setting up nexus server","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.439165679Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/lib.rs:87"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450028419Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Action"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450123321Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuditLog"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450146631Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450209572Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450272784Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450283194Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Database"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450335905Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450346095Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450404616Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450456547Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450465287Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450505708Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450554699Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450563539Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"QuiesceState"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.45060281Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.45061102Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450657111Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450705592Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450713501Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450784773Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450838934Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450852574Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UpdateTrustRootList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450906575Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TargetReleaseConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450950696Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertClassList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.450962806Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451013217Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451023257Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TrustQuorumConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451689939Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Project"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451759601Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Disk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451768251Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451806592Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451844562Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451850842Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AntiAffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451887033Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Instance"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451893603Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451936624Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451980645Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.451988705Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452048786Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGateway"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452089847Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452096707Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452135488Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452213289Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452224359Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.45226738Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ExternalSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.45227712Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Image"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452326901Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452389812Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452404323Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452452524Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452489614Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452500965Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452540535Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452547265Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452584416Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452621997Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Rack"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452629007Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452665288Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Silo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452703408Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452710618Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452746849Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SupportBundle"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452753929Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.45280954Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452851591Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Sled"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452859451Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452899892Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452940102Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452947743Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufTrustRoot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452986133Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Alert"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.452993974Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertReceiver"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453033584Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"WebhookSecret"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453071955Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453078465Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Service"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453115276Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UserBuiltin"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453122596Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453161446Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroup"} {"msg":"full Oso configuration","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.453202897Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:89","config":"#\n# Oso configuration for Omicron\n# This file is augmented by generated snippets.\n#\n\n#\n# ACTOR TYPES AND BASIC RULES\n#\n\n# `AnyActor` includes both authenticated and unauthenticated users.\nactor AnyActor {}\n\n# An `AuthenticatedActor` has an identity in the system. All of our operations\n# today require that an actor be authenticated.\nactor AuthenticatedActor {}\n\n# For any resource, `actor` can perform action `action` on it if they're\n# authenticated and their role(s) give them the corresponding permission on that\n# resource.\nallow(actor: AnyActor, action: Action, resource) if\n actor.authenticated and\n has_permission(actor.authn_actor.unwrap(), action.to_perm(), resource);\n\n# Define role relationships\nhas_role(actor: AuthenticatedActor, role: String, resource: Resource)\n\tif resource.has_role(actor, role);\n\n#\n# ROLES AND PERMISSIONS IN THE FLEET/SILO/PROJECT HIERARCHY\n#\n# We define the following permissions for most resources in the system:\n#\n# - \"create_child\": required to create child resources (of any type)\n#\n# - \"list_children\": required to list child resources (of all types) of a\n# resource\n#\n# - \"modify\": required to modify or delete a resource\n#\n# - \"read\": required to read a resource\n#\n# We define the following predefined roles for only a few high-level resources:\n# the Fleet (see below), Silo, Organization, and Project. The specific roles\n# are oriented around intended use-cases:\n#\n# - \"admin\": has all permissions on the resource\n#\n# - \"collaborator\": has \"read\", \"list_children\", and \"create_child\", plus\n# the \"admin\" role for child resources. The idea is that if you're an\n# Organization Collaborator, you have full control over the Projects within\n# the Organization, but you cannot modify or delete the Organization itself.\n#\n# - \"viewer\": has \"read\" and \"list_children\" on a resource\n#\n# Below the Project level, permissions are granted via roles at the Project\n# level. For example, for someone to be able to create, modify, or delete any\n# Instances, they must be granted project.collaborator, which means they can\n# create, modify, or delete _all_ resources in the Project.\n#\n# The complete set of predefined roles:\n#\n# - fleet.admin (superuser for the whole system)\n# - fleet.collaborator (can manage Silos)\n# - fleet.viewer (can read most non-siloed resources in the system)\n# - silo.admin (superuser for the silo)\n# - silo.collaborator (can create and own Organizations; grants project.admin on all projects)\n# - silo.limited-collaborator (grants project.limited-collaborator on all projects)\n# - silo.viewer (can read most resources within the Silo; grants project.viewer)\n# - organization.admin (complete control over an organization)\n# - organization.collaborator (can manage Projects)\n# - organization.viewer (can read most resources within the Organization)\n# - project.admin (complete control over a Project)\n# - project.collaborator (can manage all resources within the Project, including networking)\n# - project.limited-collaborator (can manage compute resources, but not networking resources)\n# - project.viewer (can read most resources within the Project)\n#\n# Outside the Silo/Organization/Project hierarchy, we (currently) treat most\n# resources as nested under Fleet or else a synthetic resource (see below). We\n# do not yet support role assignments on anything other than Fleet, Silo,\n# Organization, or Project.\n#\n\n# \"Fleet\" is a global singleton representing the whole system. The name comes\n# from the idea described in RFD 24, but it's not quite right. This probably\n# should be more like \"Region\" or \"AvailabilityZone\". The precise boundaries\n# have not yet been figured out.\nresource Fleet {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\troles = [\n\t # Roles that can be attached by users\n\t \"admin\",\n\t \"collaborator\",\n\t \"viewer\",\n\n\t # Internal-only roles\n\t \"external-authenticator\"\n\t];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n}\n\n# For fleets specifically, roles can be conferred by roles on the user's Silo.\n# Note that certain Actors may not ever have any roles assigned to them, like\n# SCIM Actors.\nhas_role(actor: AuthenticatedActor, role: String, _: Fleet) if\n\tsilo_role in actor.confers_fleet_role(role) and\n\thas_role(actor, silo_role, actor.silo.unwrap());\n\nresource Silo {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Permissions implied by roles on this resource's parent (Fleet). Fleet\n\t# privileges allow a user to see and potentially administer the Silo,\n\t# but they do not give anyone permission to look at anything inside the\n\t# Silo. To achieve this, we use permission rules here. (If we granted\n\t# Fleet administrators _roles_ on the Silo, then those would cascade\n\t# into the Silo as well.)\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"collaborator\" on \"parent_fleet\";\n\n\t# external authenticator has to create silo users\n\t\"list_children\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", silo: Silo)\n\tif silo.fleet = fleet;\n\n# As a special case, all authenticated users can read their own Silo. That's\n# not quite the same as having the \"viewer\" role. For example, they cannot list\n# Organizations in the Silo.\n#\n# One reason this is necessary is because if an unprivileged user tries to\n# create an Organization using \"POST /organizations\", they should get back a 403\n# (which implies they're able to see /organizations, which is essentially seeing\n# the Silo itself) rather than a 404. This behavior isn't a hard constraint\n# (i.e., you could reasonably get a 404 for an API you're not allowed to call).\n# Nor is the implementation (i.e., we could special-case this endpoint somehow).\n# But granting this permission is the simplest way to keep this endpoint's\n# behavior consistent with the rest of the API.\n#\n# This rule is also used to determine if a user can list the identity providers\n# in the Silo (which they should be able to), since that's predicated on being\n# able to read the Silo.\n#\n# It's unclear what else would break if users couldn't see their own Silo.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif actor.is_user and silo in actor.silo;\n\nresource Project {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t# Role hierarchy: admin > collaborator > limited-collaborator > viewer\n\t#\n\t# The \"limited-collaborator\" role can create/modify non-networking\n\t# resources (instances, disks, etc.) but cannot create/modify networking\n\t# infrastructure (VPCs, subnets, routers, internet gateways).\n\t# See nexus/authz-macros for InProjectLimited vs InProjectFull.\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"limited-collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Roles implied by roles on this resource's parent (Silo)\n\trelations = { parent_silo: Silo };\n\t\"admin\" if \"collaborator\" on \"parent_silo\";\n\t\"limited-collaborator\" if \"limited-collaborator\" on \"parent_silo\";\n\t\"viewer\" if \"viewer\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", project: Project)\n\tif project.silo = silo;\n\n#\n# GENERAL RESOURCES OUTSIDE THE SILO/PROJECT HIERARCHY\n#\n# Many resources use snippets of Polar generated by the `authz_resource!` Rust\n# macro. Some resources require custom Polar code. Those appear here.\n#\n\nresource Certificate {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Fleet-level and silo-level roles both grant privileges on certificates.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", certificate: Certificate)\n\tif certificate.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", certificate: Certificate)\n\tif certificate.silo.fleet = fleet;\n\nresource SiloUser {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\t# Fleet and Silo administrators can manage a Silo's users. This is one\n\t# of the only areas of Silo configuration that Fleet Administrators have\n\t# permissions on.\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"read\" on \"parent_fleet\";\n\t\"read\" if \"read\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", user: SiloUser)\n\tif user.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", user: SiloUser)\n\tif user.silo.fleet = fleet;\n\n# authenticated actors have all permissions on themselves\nhas_permission(actor: AuthenticatedActor, _perm: String, silo_user: SiloUser)\n if actor.equals_silo_user(silo_user);\n\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_user and silo_user.silo in actor.silo;\n\nresource SiloGroup {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\trelations = { parent_silo: Silo };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", group: SiloGroup)\n\tif group.silo = silo;\n\nresource SshKey {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { silo_user: SiloUser };\n\n\t\"read\" if \"read\" on \"silo_user\";\n}\n# We want to allow the user to modify the ssh key but disallow a SCIM IdP token\n# from doing the same.\nhas_permission(actor: AuthenticatedActor, \"modify\", ssh_key: SshKey)\n\tif actor.is_user and has_permission(actor, \"modify\", ssh_key.silo_user);\nhas_relation(user: SiloUser, \"silo_user\", ssh_key: SshKey)\n\tif ssh_key.silo_user = user;\n\nresource IdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", identity_provider: IdentityProvider)\n\tif identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: IdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource SamlIdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", saml_identity_provider: SamlIdentityProvider)\n\tif saml_identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SamlIdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource ScimClientBearerToken {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n # necessary to authenticate SCIM actors\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token: ScimClientBearerToken)\n\tif scim_client_bearer_token.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerToken)\n\tif collection.silo.fleet = fleet;\n\n\n#\n# SYNTHETIC RESOURCES OUTSIDE THE SILO HIERARCHY\n#\n# The resources here do not correspond to anything that appears explicitly in\n# the API or is stored in the database. These are used either at the top level\n# of the API path (e.g., \"/v1/system/ip-pools\") or as an implementation detail of the system\n# (in the case of console sessions and \"Database\"). The policies are\n# either statically-defined in this file or driven by role assignments on the\n# Fleet. None of these resources defines their own roles.\n#\n\n# Describes the quiesce state of a particular Nexus instance.\n#\n# These authz checks must not require the database. We grant this directly to\n# callers of the internal API.\nresource QuiesceState {\n\tpermissions = [ \"read\", \"modify\" ];\n}\nhas_permission(USER_INTERNAL_API: AuthenticatedActor, \"read\", _q: QuiesceState);\nhas_permission(\n USER_INTERNAL_API: AuthenticatedActor,\n \"modify\",\n _q: QuiesceState\n);\n\n# Describes the policy for reading and modifying DNS configuration\n# (both internal and external)\nresource DnsConfig {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t# \"external-authenticator\" requires these permissions because that's the\n\t# context that Nexus uses when creating and deleting Silos. These\n\t# operations necessarily need to read and modify DNS configuration.\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"modify\" if \"external-authenticator\" on \"parent_fleet\";\n\t# \"admin\" on the parent fleet also gets these permissions, primarily for\n\t# the test suite.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", dns_config: DnsConfig)\n\tif dns_config.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource BlueprintConfig {\n\tpermissions = [\n\t \"list_children\", # list blueprints\n\t \"create_child\", # create blueprint\n\t \"read\", # read the current target\n\t \"modify\", # change the current target\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", list: BlueprintConfig)\n\tif list.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/update/trust-roots\" in the API\nresource UpdateTrustRootList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: UpdateTrustRootList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource TargetReleaseConfig {\n\tpermissions = [\n\t \"read\", # read the current target release\n\t \"modify\", # change the current target release\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", resource: TargetReleaseConfig)\n\tif resource.fleet = fleet;\n\n# Describes the policy for reading and modifying low-level inventory\nresource Inventory {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", inventory: Inventory)\n\tif inventory.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/ip-pools\" in the API\nresource IpPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the IP Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list IP Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", ip_pool_list: IpPoolList)\n\tif ip_pool_list.fleet = fleet;\n\n# Any authenticated user can create a child of a provided IP Pool.\n# This is necessary to use the pools when provisioning instances.\nhas_permission(actor: AuthenticatedActor, \"create_child\", ip_pool: IpPool)\n\tif actor.is_user and silo in actor.silo and silo.fleet = ip_pool.fleet;\n\n# Describes the policy for accessing \"/v1/multicast-groups\" in the API\n# Groups are created when the first instance joins and deleted when the last leaves.\nresource MulticastGroupList {\n\tpermissions = [ \"list_children\" ];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet Viewers can list multicast groups\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group_list: MulticastGroupList)\n\tif multicast_group_list.fleet = fleet;\n\n# Any authenticated user can list multicast groups in their fleet.\n# This enables silo users to discover groups for attaching instances,\n# without requiring the Fleet::Viewer role.\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group_list: MulticastGroupList)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group_list.fleet;\n\n# MulticastGroup is a fleet-level discovery resource.\n# Join/leave authorization is gated by Instance::Modify, not the group itself.\nresource MulticastGroup {\n\tpermissions = [ \"read\", \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group: MulticastGroup)\n\tif multicast_group.fleet = fleet;\n\n# Any authenticated user can read multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"read\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Any authenticated user can list members of multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Describes the policy for reading and writing the audit log\nresource AuditLog {\n\tpermissions = [\n\t \"list_children\", # retrieve audit log\n\t \"create_child\", # create audit log entry\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet viewers can read the audit log\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\n# Any actor should be able to write to the audit log because we need to be able\n# to write to the log from any request, authenticated or not. Audit log writes\n# are always a byproduct of other operations: there are no endpoints that allow\n# the user to write to the log deliberately. Note we use AuthenticatedActor\n# because we don't really mean unauthenticated -- in the case of login\n# operations, we use the external authenticator actor that creates the session\n# to authorize the audit log write.\nhas_permission(_actor: AuthenticatedActor, \"create_child\", _audit_log: AuditLog);\n\nhas_relation(fleet: Fleet, \"parent_fleet\", audit_log: AuditLog)\n\tif audit_log.fleet = fleet;\n\n# Describes the policy for creating and managing web console sessions.\nresource ConsoleSessionList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ConsoleSessionList)\n\tif collection.fleet = fleet;\n\n# Allow silo admins to delete and list user sessions\nresource SiloUserSessionList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's sessions.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's sessions.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserSessionList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own sessions\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Allow silo admins to delete and list user access tokens\nresource SiloUserTokenList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's tokens.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's tokens.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserTokenList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own tokens\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Describes the policy for creating and managing device authorization requests.\nresource DeviceAuthRequestList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: DeviceAuthRequestList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for creating and managing trust quorum configurations\n# This may change in a multirack future to a per rack parent\nresource TrustQuorumConfig {\n permissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", config: TrustQuorumConfig)\n\tif config.rack.fleet = fleet;\n\n# Describes the policy for creating and managing Silo certificates\nresource SiloCertificateList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Both Fleet and Silo administrators can see and modify the Silo's\n\t# certificates.\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloCertificateList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloCertificateList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo identity providers\nresource SiloIdentityProviderList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the identity providers in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's identity provider\n\t# configuration. This is one of the only areas of Silo configuration\n\t# that Fleet Administrators have permissions on. This is also one of\n\t# the only cases where we need to look two levels up the hierarchy to\n\t# see if somebody has the right permission. For most other things,\n\t# permissions cascade down the hierarchy so we only need to look at the\n\t# parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloIdentityProviderList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloIdentityProviderList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo users (mostly intended for\n# API-managed users)\nresource SiloUserList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the users in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's users. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloUserList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloUserList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on users.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_user_list: SiloUserList)\n\tif actor.is_scim_idp and silo_user_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_user: SiloUser)\n\tif actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_user_list: SiloUserList)\n if actor.is_scim_idp and silo_user_list.silo in actor.silo;\n\n# Describes the policy for creating and managing Silo groups (mostly intended\n# for API-managed groups)\nresource SiloGroupList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the groups in the\n\t# Silo) can see the groups in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's groups. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloGroupList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloGroupList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on groups.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_group: SiloGroup)\n if actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_group_list: SiloGroupList)\n\tif actor.is_scim_idp and silo_group_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_group: SiloGroup)\n\tif actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_group_list: SiloGroupList)\n if actor.is_scim_idp and silo_group_list.silo in actor.silo;\n\n# These rules grants the external authenticator role the permissions it needs to\n# read silo users and modify their sessions. This is necessary for login to\n# work.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif has_role(actor, \"external-authenticator\", silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\n\n# All authenticated users can read and delete device authn requests because\n# by necessity these operations happen before we've figured out what user (or\n# even Silo) the device auth is associated with. Any user can claim a device\n# auth request with the right user code (that's how it works) -- it's the user\n# code and associated logic that prevents unauthorized access here.\nhas_permission(actor: AuthenticatedActor, \"read\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\nhas_permission(actor: AuthenticatedActor, \"modify\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\n\nhas_permission(actor: AuthenticatedActor, \"read\", device_token: DeviceAccessToken)\n\tif has_role(actor, \"external-authenticator\", device_token.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", identity_provider: IdentityProvider)\n\tif has_role(actor, \"external-authenticator\", identity_provider.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", saml_identity_provider: SamlIdentityProvider)\n\tif has_role(actor, \"external-authenticator\", saml_identity_provider.silo.fleet);\n\n# Describes the policy for who can access the internal database.\nresource Database {\n\tpermissions = [\n\t # \"query\" is required to perform any query against the database,\n\t # whether a read or write query. This is checked when an operation\n\t # checks out a database connection from the connection pool.\n\t #\n\t # Any authenticated user gets this permission. There's generally\n\t # some other authz check involved in the database query. For\n\t # example, if you're querying the database to \"read\" a \"Project\", we\n\t # should also be checking that. So why do we do this at all? It's\n\t # a belt-and-suspenders measure so that if we somehow introduced an\n\t # unauthenticated code path that hits the database, it cannot be\n\t # used to DoS the database because we won't allow the operation to\n\t # make the query. (As long as the code path _is_ authenticated, we\n\t # can use throttling mechanisms to prevent DoS.)\n\t \"query\",\n\n\t # \"modify\" is required to populate database data that's delivered\n\t # with the system. It should also be required for schema changes,\n\t # when we support those. This is separate from \"query\" so that we\n\t # cannot accidentally invoke these code paths from API calls and\n\t # other general functions.\n\t \"modify\"\n\t];\n}\n\n# All authenticated users have the \"query\" permission on the database.\nhas_permission(_actor: AuthenticatedActor, \"query\", _resource: Database);\n\n# The \"db-init\" user is the only one with the \"modify\" permission.\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"modify\", _resource: Database);\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"create_child\", _resource: IpPoolList);\n# It also has \"admin\" on the internal silo to populate it with built-in resources.\n# TODO-completeness: actually limit to just internal silo and not all silos\nhas_role(USER_DB_INIT: AuthenticatedActor, \"admin\", _silo: Silo);\n\n# Allow the internal API admin permissions on all silos.\nhas_role(USER_INTERNAL_API: AuthenticatedActor, \"admin\", _silo: Silo);\n\nresource WebhookSecret {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_alert_receiver: AlertReceiver };\n\n\t\"read\" if \"read\" on \"parent_alert_receiver\";\n\t\"modify\" if \"modify\" on \"parent_alert_receiver\";\n}\n\nhas_relation(rx: AlertReceiver, \"parent_alert_receiver\", secret: WebhookSecret)\n\tif secret.alert_receiver = rx;\n\nresource AlertClassList {\n\tpermissions = [ \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: AlertClassList)\n\tif collection.fleet = fleet;\n\nresource ScimClientBearerTokenList {\n\tpermissions = [ \"create_child\", \"list_children\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n # These are all admin because being able to create these tokens would allow\n # a user to grant themselves admin by modifying group membership through SCIM calls\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\n # Fleet-level roles also grant privileges for SCIM client tokens, for\n # configuration before silo admins are present.\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token_list: ScimClientBearerTokenList)\n\tif scim_client_bearer_token_list.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerTokenList)\n\tif collection.silo.fleet = fleet;\n\n# VpcList is a synthetic resource for controlling VPC creation.\n# Unlike other project resources, VPC creation requires the full \"collaborator\"\n# role rather than \"limited-collaborator\", enforcing the networking restriction.\n# This allows organizations to restrict who can reconfigure the network topology\n# while still allowing users with limited-collaborator to work with compute\n# resources (instances, disks, etc.) within the existing network.\nresource VpcList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { containing_project: Project };\n\n\t\"list_children\" if \"read\" on \"containing_project\";\n\t\"create_child\" if \"collaborator\" on \"containing_project\";\n}\nhas_relation(project: Project, \"containing_project\", collection: VpcList)\n\tif collection.project = project;\n\n# Describes the policy for accessing \"/v1/system/subnet-pools\" in the API\nresource SubnetPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the Subnet Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list External Subnet Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", subnet_pool_list: SubnetPoolList)\n\tif subnet_pool_list.fleet = fleet;\n\n\n\n resource Disk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Disk)\n if child.project = parent;\n \n\n resource Snapshot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Snapshot)\n if child.project = parent;\n \n\n resource ProjectImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ProjectImage)\n if child.project = parent;\n \n\n resource AffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AffinityGroup)\n if child.project = parent;\n \n\n resource AntiAffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AntiAffinityGroup)\n if child.project = parent;\n \n\n resource Instance {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Instance)\n if child.project = parent;\n \n\n resource IpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: IpPool)\n if child.fleet = fleet;\n \n\n resource InstanceNetworkInterface {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Instance\n };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InstanceNetworkInterface)\n if has_relation(project, \"containing_project\", child.instance);\n\n has_relation(parent: Instance, \"parent\", child: InstanceNetworkInterface)\n if child.instance = parent;\n \n\n resource Vpc {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Vpc)\n if child.project = parent;\n \n\n resource VpcRouter {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcRouter)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcRouter)\n if child.vpc = parent;\n \n\n resource InternetGateway {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGateway)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: InternetGateway)\n if child.vpc = parent;\n \n\n resource InternetGatewayIpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpPool)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpPool)\n if child.internet_gateway = parent;\n \n\n resource InternetGatewayIpAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpAddress)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpAddress)\n if child.internet_gateway = parent;\n \n\n resource RouterRoute {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: VpcRouter\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: RouterRoute)\n if has_relation(project, \"containing_project\", child.vpc_router);\n\n has_relation(parent: VpcRouter, \"parent\", child: RouterRoute)\n if child.vpc_router = parent;\n \n\n resource VpcSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcSubnet)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcSubnet)\n if child.vpc = parent;\n \n\n resource FloatingIp {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: FloatingIp)\n if child.project = parent;\n \n\n resource ExternalSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ExternalSubnet)\n if child.project = parent;\n \n\n resource Image {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: Image)\n if child.silo = parent;\n \n\n resource SiloImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: SiloImage)\n if child.silo = parent;\n \n\n resource AddressLot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AddressLot)\n if child.fleet = fleet;\n \n\n resource Blueprint {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Blueprint)\n if child.fleet = fleet;\n \n\n resource LoopbackAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: LoopbackAddress)\n if child.fleet = fleet;\n \n\n\n resource ConsoleSession {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: ConsoleSession)\n if child.fleet = fleet;\n \n\n resource DeviceAuthRequest {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAuthRequest)\n if child.fleet = fleet;\n \n\n resource DeviceAccessToken {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAccessToken)\n if child.fleet = fleet;\n \n\n resource PhysicalDisk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: PhysicalDisk)\n if child.fleet = fleet;\n \n\n resource Rack {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Rack)\n if child.fleet = fleet;\n \n\n\n\n\n\n resource SupportBundle {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SupportBundle)\n if child.fleet = fleet;\n \n\n\n\n resource Sled {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Sled)\n if child.fleet = fleet;\n \n\n resource SubnetPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SubnetPool)\n if child.fleet = fleet;\n \n\n resource TufRepo {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufRepo)\n if child.fleet = fleet;\n \n\n resource TufArtifact {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufArtifact)\n if child.fleet = fleet;\n \n\n resource TufTrustRoot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufTrustRoot)\n if child.fleet = fleet;\n \n\n resource Alert {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Alert)\n if child.fleet = fleet;\n \n\n resource AlertReceiver {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AlertReceiver)\n if child.fleet = fleet;\n \n\n\n resource Zpool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Zpool)\n if child.fleet = fleet;\n \n\n resource Service {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Service)\n if child.fleet = fleet;\n \n\n resource UserBuiltin {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: UserBuiltin)\n if child.fleet = fleet;\n \n\n"} {"msg":"Setting up resolver using DNS servers for subnet: Ipv6Subnet { net: Ipv6Net { addr: fd00:1122:3344::, width: 48 } }","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.479650154Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:233"} {"msg":"new DNS resolver","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.482985275Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"DnsResolver","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"internal-dns/resolver/src/resolver.rs:144","addresses":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"Setting up qorb database pool from DNS","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.484183157Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:289","dns_addrs":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"registered USDT probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:02.499732103Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038"} {"msg":"Found schema version is older than desired","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:02.791001911Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:412"} {"msg":"No db_metadata_nexus records exist - skipping access check","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:02.79311933Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:348","explanation":"This is expected during initial deployment or before migration","nexus_id":"ad7cec44-a51d-422e-b617-a4a6bf3d7038 (omicron_zone)"} {"msg":"Datastore should be updated before usage","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.793182692Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:376"} {"msg":"Database schema is out of date. Attempting upgrade.","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.797012662Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:590"} {"msg":"Failed to update schema version (permanent error, will not retry)","v":0,"name":"nexus","level":50,"time":"2026-06-15T22:53:02.797643974Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23945,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:385","error":"Desired version 269.0.0 was not found in known versions"} nexus: Failed to update schema version: Desired version 269.0.0 was not found in known versions [ Jun 15 22:53:02 Stopping because all processes in service exited. ] [ Jun 15 22:53:02 Executing stop method (:kill). ] [ Jun 15 22:53:02 Executing start method ("ctrun -l child -o noorphan,regent /opt/oxide/omicron-nexus/bin/nexus /var/svc/manifest/site/nexus/config.toml &"). ] [ Jun 15 22:53:02 Method "start" exited with status 0. ] note: configured to log to "/dev/stdout" {"msg":"registered DTrace probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:02.869312772Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987} {"msg":"setting up nexus server","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869508365Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/lib.rs:87"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869607987Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Action"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869676999Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuditLog"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869686349Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.86973651Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869776501Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869784751Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Database"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869834251Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869841452Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869876262Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869919453Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869926533Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.869966644Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870009115Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870017225Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"QuiesceState"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870058186Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870109496Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870117007Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870157317Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870165038Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870205198Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870249489Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870257349Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UpdateTrustRootList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.8703048Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TargetReleaseConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870354151Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertClassList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870361151Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870434282Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870477553Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TrustQuorumConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870484614Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Project"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870535055Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Disk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870543284Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870583305Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870625886Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870632676Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AntiAffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870732028Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Instance"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870774419Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870781419Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87082756Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87083442Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870873121Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGateway"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870920122Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870927162Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.870973763Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871015553Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871022093Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871130975Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ExternalSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871139066Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Image"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871184996Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871225427Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871232407Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871274908Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871319409Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871326469Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87137364Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87138056Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871437101Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871500492Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Rack"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871508572Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871555693Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Silo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871603694Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871610804Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871657045Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SupportBundle"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871664355Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871703046Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871745167Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Sled"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871753877Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871802158Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871862899Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871870399Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufTrustRoot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87192412Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Alert"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.87193165Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertReceiver"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.871984111Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"WebhookSecret"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872032222Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872039262Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Service"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872082013Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UserBuiltin"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872133824Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872140684Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroup"} {"msg":"full Oso configuration","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.872207935Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:89","config":"#\n# Oso configuration for Omicron\n# This file is augmented by generated snippets.\n#\n\n#\n# ACTOR TYPES AND BASIC RULES\n#\n\n# `AnyActor` includes both authenticated and unauthenticated users.\nactor AnyActor {}\n\n# An `AuthenticatedActor` has an identity in the system. All of our operations\n# today require that an actor be authenticated.\nactor AuthenticatedActor {}\n\n# For any resource, `actor` can perform action `action` on it if they're\n# authenticated and their role(s) give them the corresponding permission on that\n# resource.\nallow(actor: AnyActor, action: Action, resource) if\n actor.authenticated and\n has_permission(actor.authn_actor.unwrap(), action.to_perm(), resource);\n\n# Define role relationships\nhas_role(actor: AuthenticatedActor, role: String, resource: Resource)\n\tif resource.has_role(actor, role);\n\n#\n# ROLES AND PERMISSIONS IN THE FLEET/SILO/PROJECT HIERARCHY\n#\n# We define the following permissions for most resources in the system:\n#\n# - \"create_child\": required to create child resources (of any type)\n#\n# - \"list_children\": required to list child resources (of all types) of a\n# resource\n#\n# - \"modify\": required to modify or delete a resource\n#\n# - \"read\": required to read a resource\n#\n# We define the following predefined roles for only a few high-level resources:\n# the Fleet (see below), Silo, Organization, and Project. The specific roles\n# are oriented around intended use-cases:\n#\n# - \"admin\": has all permissions on the resource\n#\n# - \"collaborator\": has \"read\", \"list_children\", and \"create_child\", plus\n# the \"admin\" role for child resources. The idea is that if you're an\n# Organization Collaborator, you have full control over the Projects within\n# the Organization, but you cannot modify or delete the Organization itself.\n#\n# - \"viewer\": has \"read\" and \"list_children\" on a resource\n#\n# Below the Project level, permissions are granted via roles at the Project\n# level. For example, for someone to be able to create, modify, or delete any\n# Instances, they must be granted project.collaborator, which means they can\n# create, modify, or delete _all_ resources in the Project.\n#\n# The complete set of predefined roles:\n#\n# - fleet.admin (superuser for the whole system)\n# - fleet.collaborator (can manage Silos)\n# - fleet.viewer (can read most non-siloed resources in the system)\n# - silo.admin (superuser for the silo)\n# - silo.collaborator (can create and own Organizations; grants project.admin on all projects)\n# - silo.limited-collaborator (grants project.limited-collaborator on all projects)\n# - silo.viewer (can read most resources within the Silo; grants project.viewer)\n# - organization.admin (complete control over an organization)\n# - organization.collaborator (can manage Projects)\n# - organization.viewer (can read most resources within the Organization)\n# - project.admin (complete control over a Project)\n# - project.collaborator (can manage all resources within the Project, including networking)\n# - project.limited-collaborator (can manage compute resources, but not networking resources)\n# - project.viewer (can read most resources within the Project)\n#\n# Outside the Silo/Organization/Project hierarchy, we (currently) treat most\n# resources as nested under Fleet or else a synthetic resource (see below). We\n# do not yet support role assignments on anything other than Fleet, Silo,\n# Organization, or Project.\n#\n\n# \"Fleet\" is a global singleton representing the whole system. The name comes\n# from the idea described in RFD 24, but it's not quite right. This probably\n# should be more like \"Region\" or \"AvailabilityZone\". The precise boundaries\n# have not yet been figured out.\nresource Fleet {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\troles = [\n\t # Roles that can be attached by users\n\t \"admin\",\n\t \"collaborator\",\n\t \"viewer\",\n\n\t # Internal-only roles\n\t \"external-authenticator\"\n\t];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n}\n\n# For fleets specifically, roles can be conferred by roles on the user's Silo.\n# Note that certain Actors may not ever have any roles assigned to them, like\n# SCIM Actors.\nhas_role(actor: AuthenticatedActor, role: String, _: Fleet) if\n\tsilo_role in actor.confers_fleet_role(role) and\n\thas_role(actor, silo_role, actor.silo.unwrap());\n\nresource Silo {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Permissions implied by roles on this resource's parent (Fleet). Fleet\n\t# privileges allow a user to see and potentially administer the Silo,\n\t# but they do not give anyone permission to look at anything inside the\n\t# Silo. To achieve this, we use permission rules here. (If we granted\n\t# Fleet administrators _roles_ on the Silo, then those would cascade\n\t# into the Silo as well.)\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"collaborator\" on \"parent_fleet\";\n\n\t# external authenticator has to create silo users\n\t\"list_children\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", silo: Silo)\n\tif silo.fleet = fleet;\n\n# As a special case, all authenticated users can read their own Silo. That's\n# not quite the same as having the \"viewer\" role. For example, they cannot list\n# Organizations in the Silo.\n#\n# One reason this is necessary is because if an unprivileged user tries to\n# create an Organization using \"POST /organizations\", they should get back a 403\n# (which implies they're able to see /organizations, which is essentially seeing\n# the Silo itself) rather than a 404. This behavior isn't a hard constraint\n# (i.e., you could reasonably get a 404 for an API you're not allowed to call).\n# Nor is the implementation (i.e., we could special-case this endpoint somehow).\n# But granting this permission is the simplest way to keep this endpoint's\n# behavior consistent with the rest of the API.\n#\n# This rule is also used to determine if a user can list the identity providers\n# in the Silo (which they should be able to), since that's predicated on being\n# able to read the Silo.\n#\n# It's unclear what else would break if users couldn't see their own Silo.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif actor.is_user and silo in actor.silo;\n\nresource Project {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t# Role hierarchy: admin > collaborator > limited-collaborator > viewer\n\t#\n\t# The \"limited-collaborator\" role can create/modify non-networking\n\t# resources (instances, disks, etc.) but cannot create/modify networking\n\t# infrastructure (VPCs, subnets, routers, internet gateways).\n\t# See nexus/authz-macros for InProjectLimited vs InProjectFull.\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"limited-collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Roles implied by roles on this resource's parent (Silo)\n\trelations = { parent_silo: Silo };\n\t\"admin\" if \"collaborator\" on \"parent_silo\";\n\t\"limited-collaborator\" if \"limited-collaborator\" on \"parent_silo\";\n\t\"viewer\" if \"viewer\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", project: Project)\n\tif project.silo = silo;\n\n#\n# GENERAL RESOURCES OUTSIDE THE SILO/PROJECT HIERARCHY\n#\n# Many resources use snippets of Polar generated by the `authz_resource!` Rust\n# macro. Some resources require custom Polar code. Those appear here.\n#\n\nresource Certificate {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Fleet-level and silo-level roles both grant privileges on certificates.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", certificate: Certificate)\n\tif certificate.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", certificate: Certificate)\n\tif certificate.silo.fleet = fleet;\n\nresource SiloUser {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\t# Fleet and Silo administrators can manage a Silo's users. This is one\n\t# of the only areas of Silo configuration that Fleet Administrators have\n\t# permissions on.\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"read\" on \"parent_fleet\";\n\t\"read\" if \"read\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", user: SiloUser)\n\tif user.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", user: SiloUser)\n\tif user.silo.fleet = fleet;\n\n# authenticated actors have all permissions on themselves\nhas_permission(actor: AuthenticatedActor, _perm: String, silo_user: SiloUser)\n if actor.equals_silo_user(silo_user);\n\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_user and silo_user.silo in actor.silo;\n\nresource SiloGroup {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\trelations = { parent_silo: Silo };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", group: SiloGroup)\n\tif group.silo = silo;\n\nresource SshKey {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { silo_user: SiloUser };\n\n\t\"read\" if \"read\" on \"silo_user\";\n}\n# We want to allow the user to modify the ssh key but disallow a SCIM IdP token\n# from doing the same.\nhas_permission(actor: AuthenticatedActor, \"modify\", ssh_key: SshKey)\n\tif actor.is_user and has_permission(actor, \"modify\", ssh_key.silo_user);\nhas_relation(user: SiloUser, \"silo_user\", ssh_key: SshKey)\n\tif ssh_key.silo_user = user;\n\nresource IdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", identity_provider: IdentityProvider)\n\tif identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: IdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource SamlIdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", saml_identity_provider: SamlIdentityProvider)\n\tif saml_identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SamlIdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource ScimClientBearerToken {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n # necessary to authenticate SCIM actors\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token: ScimClientBearerToken)\n\tif scim_client_bearer_token.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerToken)\n\tif collection.silo.fleet = fleet;\n\n\n#\n# SYNTHETIC RESOURCES OUTSIDE THE SILO HIERARCHY\n#\n# The resources here do not correspond to anything that appears explicitly in\n# the API or is stored in the database. These are used either at the top level\n# of the API path (e.g., \"/v1/system/ip-pools\") or as an implementation detail of the system\n# (in the case of console sessions and \"Database\"). The policies are\n# either statically-defined in this file or driven by role assignments on the\n# Fleet. None of these resources defines their own roles.\n#\n\n# Describes the quiesce state of a particular Nexus instance.\n#\n# These authz checks must not require the database. We grant this directly to\n# callers of the internal API.\nresource QuiesceState {\n\tpermissions = [ \"read\", \"modify\" ];\n}\nhas_permission(USER_INTERNAL_API: AuthenticatedActor, \"read\", _q: QuiesceState);\nhas_permission(\n USER_INTERNAL_API: AuthenticatedActor,\n \"modify\",\n _q: QuiesceState\n);\n\n# Describes the policy for reading and modifying DNS configuration\n# (both internal and external)\nresource DnsConfig {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t# \"external-authenticator\" requires these permissions because that's the\n\t# context that Nexus uses when creating and deleting Silos. These\n\t# operations necessarily need to read and modify DNS configuration.\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"modify\" if \"external-authenticator\" on \"parent_fleet\";\n\t# \"admin\" on the parent fleet also gets these permissions, primarily for\n\t# the test suite.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", dns_config: DnsConfig)\n\tif dns_config.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource BlueprintConfig {\n\tpermissions = [\n\t \"list_children\", # list blueprints\n\t \"create_child\", # create blueprint\n\t \"read\", # read the current target\n\t \"modify\", # change the current target\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", list: BlueprintConfig)\n\tif list.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/update/trust-roots\" in the API\nresource UpdateTrustRootList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: UpdateTrustRootList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource TargetReleaseConfig {\n\tpermissions = [\n\t \"read\", # read the current target release\n\t \"modify\", # change the current target release\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", resource: TargetReleaseConfig)\n\tif resource.fleet = fleet;\n\n# Describes the policy for reading and modifying low-level inventory\nresource Inventory {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", inventory: Inventory)\n\tif inventory.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/ip-pools\" in the API\nresource IpPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the IP Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list IP Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", ip_pool_list: IpPoolList)\n\tif ip_pool_list.fleet = fleet;\n\n# Any authenticated user can create a child of a provided IP Pool.\n# This is necessary to use the pools when provisioning instances.\nhas_permission(actor: AuthenticatedActor, \"create_child\", ip_pool: IpPool)\n\tif actor.is_user and silo in actor.silo and silo.fleet = ip_pool.fleet;\n\n# Describes the policy for accessing \"/v1/multicast-groups\" in the API\n# Groups are created when the first instance joins and deleted when the last leaves.\nresource MulticastGroupList {\n\tpermissions = [ \"list_children\" ];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet Viewers can list multicast groups\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group_list: MulticastGroupList)\n\tif multicast_group_list.fleet = fleet;\n\n# Any authenticated user can list multicast groups in their fleet.\n# This enables silo users to discover groups for attaching instances,\n# without requiring the Fleet::Viewer role.\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group_list: MulticastGroupList)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group_list.fleet;\n\n# MulticastGroup is a fleet-level discovery resource.\n# Join/leave authorization is gated by Instance::Modify, not the group itself.\nresource MulticastGroup {\n\tpermissions = [ \"read\", \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group: MulticastGroup)\n\tif multicast_group.fleet = fleet;\n\n# Any authenticated user can read multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"read\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Any authenticated user can list members of multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Describes the policy for reading and writing the audit log\nresource AuditLog {\n\tpermissions = [\n\t \"list_children\", # retrieve audit log\n\t \"create_child\", # create audit log entry\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet viewers can read the audit log\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\n# Any actor should be able to write to the audit log because we need to be able\n# to write to the log from any request, authenticated or not. Audit log writes\n# are always a byproduct of other operations: there are no endpoints that allow\n# the user to write to the log deliberately. Note we use AuthenticatedActor\n# because we don't really mean unauthenticated -- in the case of login\n# operations, we use the external authenticator actor that creates the session\n# to authorize the audit log write.\nhas_permission(_actor: AuthenticatedActor, \"create_child\", _audit_log: AuditLog);\n\nhas_relation(fleet: Fleet, \"parent_fleet\", audit_log: AuditLog)\n\tif audit_log.fleet = fleet;\n\n# Describes the policy for creating and managing web console sessions.\nresource ConsoleSessionList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ConsoleSessionList)\n\tif collection.fleet = fleet;\n\n# Allow silo admins to delete and list user sessions\nresource SiloUserSessionList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's sessions.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's sessions.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserSessionList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own sessions\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Allow silo admins to delete and list user access tokens\nresource SiloUserTokenList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's tokens.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's tokens.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserTokenList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own tokens\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Describes the policy for creating and managing device authorization requests.\nresource DeviceAuthRequestList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: DeviceAuthRequestList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for creating and managing trust quorum configurations\n# This may change in a multirack future to a per rack parent\nresource TrustQuorumConfig {\n permissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", config: TrustQuorumConfig)\n\tif config.rack.fleet = fleet;\n\n# Describes the policy for creating and managing Silo certificates\nresource SiloCertificateList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Both Fleet and Silo administrators can see and modify the Silo's\n\t# certificates.\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloCertificateList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloCertificateList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo identity providers\nresource SiloIdentityProviderList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the identity providers in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's identity provider\n\t# configuration. This is one of the only areas of Silo configuration\n\t# that Fleet Administrators have permissions on. This is also one of\n\t# the only cases where we need to look two levels up the hierarchy to\n\t# see if somebody has the right permission. For most other things,\n\t# permissions cascade down the hierarchy so we only need to look at the\n\t# parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloIdentityProviderList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloIdentityProviderList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo users (mostly intended for\n# API-managed users)\nresource SiloUserList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the users in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's users. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloUserList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloUserList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on users.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_user_list: SiloUserList)\n\tif actor.is_scim_idp and silo_user_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_user: SiloUser)\n\tif actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_user_list: SiloUserList)\n if actor.is_scim_idp and silo_user_list.silo in actor.silo;\n\n# Describes the policy for creating and managing Silo groups (mostly intended\n# for API-managed groups)\nresource SiloGroupList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the groups in the\n\t# Silo) can see the groups in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's groups. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloGroupList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloGroupList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on groups.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_group: SiloGroup)\n if actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_group_list: SiloGroupList)\n\tif actor.is_scim_idp and silo_group_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_group: SiloGroup)\n\tif actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_group_list: SiloGroupList)\n if actor.is_scim_idp and silo_group_list.silo in actor.silo;\n\n# These rules grants the external authenticator role the permissions it needs to\n# read silo users and modify their sessions. This is necessary for login to\n# work.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif has_role(actor, \"external-authenticator\", silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\n\n# All authenticated users can read and delete device authn requests because\n# by necessity these operations happen before we've figured out what user (or\n# even Silo) the device auth is associated with. Any user can claim a device\n# auth request with the right user code (that's how it works) -- it's the user\n# code and associated logic that prevents unauthorized access here.\nhas_permission(actor: AuthenticatedActor, \"read\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\nhas_permission(actor: AuthenticatedActor, \"modify\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\n\nhas_permission(actor: AuthenticatedActor, \"read\", device_token: DeviceAccessToken)\n\tif has_role(actor, \"external-authenticator\", device_token.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", identity_provider: IdentityProvider)\n\tif has_role(actor, \"external-authenticator\", identity_provider.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", saml_identity_provider: SamlIdentityProvider)\n\tif has_role(actor, \"external-authenticator\", saml_identity_provider.silo.fleet);\n\n# Describes the policy for who can access the internal database.\nresource Database {\n\tpermissions = [\n\t # \"query\" is required to perform any query against the database,\n\t # whether a read or write query. This is checked when an operation\n\t # checks out a database connection from the connection pool.\n\t #\n\t # Any authenticated user gets this permission. There's generally\n\t # some other authz check involved in the database query. For\n\t # example, if you're querying the database to \"read\" a \"Project\", we\n\t # should also be checking that. So why do we do this at all? It's\n\t # a belt-and-suspenders measure so that if we somehow introduced an\n\t # unauthenticated code path that hits the database, it cannot be\n\t # used to DoS the database because we won't allow the operation to\n\t # make the query. (As long as the code path _is_ authenticated, we\n\t # can use throttling mechanisms to prevent DoS.)\n\t \"query\",\n\n\t # \"modify\" is required to populate database data that's delivered\n\t # with the system. It should also be required for schema changes,\n\t # when we support those. This is separate from \"query\" so that we\n\t # cannot accidentally invoke these code paths from API calls and\n\t # other general functions.\n\t \"modify\"\n\t];\n}\n\n# All authenticated users have the \"query\" permission on the database.\nhas_permission(_actor: AuthenticatedActor, \"query\", _resource: Database);\n\n# The \"db-init\" user is the only one with the \"modify\" permission.\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"modify\", _resource: Database);\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"create_child\", _resource: IpPoolList);\n# It also has \"admin\" on the internal silo to populate it with built-in resources.\n# TODO-completeness: actually limit to just internal silo and not all silos\nhas_role(USER_DB_INIT: AuthenticatedActor, \"admin\", _silo: Silo);\n\n# Allow the internal API admin permissions on all silos.\nhas_role(USER_INTERNAL_API: AuthenticatedActor, \"admin\", _silo: Silo);\n\nresource WebhookSecret {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_alert_receiver: AlertReceiver };\n\n\t\"read\" if \"read\" on \"parent_alert_receiver\";\n\t\"modify\" if \"modify\" on \"parent_alert_receiver\";\n}\n\nhas_relation(rx: AlertReceiver, \"parent_alert_receiver\", secret: WebhookSecret)\n\tif secret.alert_receiver = rx;\n\nresource AlertClassList {\n\tpermissions = [ \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: AlertClassList)\n\tif collection.fleet = fleet;\n\nresource ScimClientBearerTokenList {\n\tpermissions = [ \"create_child\", \"list_children\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n # These are all admin because being able to create these tokens would allow\n # a user to grant themselves admin by modifying group membership through SCIM calls\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\n # Fleet-level roles also grant privileges for SCIM client tokens, for\n # configuration before silo admins are present.\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token_list: ScimClientBearerTokenList)\n\tif scim_client_bearer_token_list.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerTokenList)\n\tif collection.silo.fleet = fleet;\n\n# VpcList is a synthetic resource for controlling VPC creation.\n# Unlike other project resources, VPC creation requires the full \"collaborator\"\n# role rather than \"limited-collaborator\", enforcing the networking restriction.\n# This allows organizations to restrict who can reconfigure the network topology\n# while still allowing users with limited-collaborator to work with compute\n# resources (instances, disks, etc.) within the existing network.\nresource VpcList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { containing_project: Project };\n\n\t\"list_children\" if \"read\" on \"containing_project\";\n\t\"create_child\" if \"collaborator\" on \"containing_project\";\n}\nhas_relation(project: Project, \"containing_project\", collection: VpcList)\n\tif collection.project = project;\n\n# Describes the policy for accessing \"/v1/system/subnet-pools\" in the API\nresource SubnetPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the Subnet Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list External Subnet Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", subnet_pool_list: SubnetPoolList)\n\tif subnet_pool_list.fleet = fleet;\n\n\n\n resource Disk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Disk)\n if child.project = parent;\n \n\n resource Snapshot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Snapshot)\n if child.project = parent;\n \n\n resource ProjectImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ProjectImage)\n if child.project = parent;\n \n\n resource AffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AffinityGroup)\n if child.project = parent;\n \n\n resource AntiAffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AntiAffinityGroup)\n if child.project = parent;\n \n\n resource Instance {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Instance)\n if child.project = parent;\n \n\n resource IpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: IpPool)\n if child.fleet = fleet;\n \n\n resource InstanceNetworkInterface {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Instance\n };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InstanceNetworkInterface)\n if has_relation(project, \"containing_project\", child.instance);\n\n has_relation(parent: Instance, \"parent\", child: InstanceNetworkInterface)\n if child.instance = parent;\n \n\n resource Vpc {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Vpc)\n if child.project = parent;\n \n\n resource VpcRouter {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcRouter)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcRouter)\n if child.vpc = parent;\n \n\n resource InternetGateway {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGateway)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: InternetGateway)\n if child.vpc = parent;\n \n\n resource InternetGatewayIpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpPool)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpPool)\n if child.internet_gateway = parent;\n \n\n resource InternetGatewayIpAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpAddress)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpAddress)\n if child.internet_gateway = parent;\n \n\n resource RouterRoute {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: VpcRouter\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: RouterRoute)\n if has_relation(project, \"containing_project\", child.vpc_router);\n\n has_relation(parent: VpcRouter, \"parent\", child: RouterRoute)\n if child.vpc_router = parent;\n \n\n resource VpcSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcSubnet)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcSubnet)\n if child.vpc = parent;\n \n\n resource FloatingIp {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: FloatingIp)\n if child.project = parent;\n \n\n resource ExternalSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ExternalSubnet)\n if child.project = parent;\n \n\n resource Image {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: Image)\n if child.silo = parent;\n \n\n resource SiloImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: SiloImage)\n if child.silo = parent;\n \n\n resource AddressLot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AddressLot)\n if child.fleet = fleet;\n \n\n resource Blueprint {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Blueprint)\n if child.fleet = fleet;\n \n\n resource LoopbackAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: LoopbackAddress)\n if child.fleet = fleet;\n \n\n\n resource ConsoleSession {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: ConsoleSession)\n if child.fleet = fleet;\n \n\n resource DeviceAuthRequest {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAuthRequest)\n if child.fleet = fleet;\n \n\n resource DeviceAccessToken {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAccessToken)\n if child.fleet = fleet;\n \n\n resource PhysicalDisk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: PhysicalDisk)\n if child.fleet = fleet;\n \n\n resource Rack {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Rack)\n if child.fleet = fleet;\n \n\n\n\n\n\n resource SupportBundle {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SupportBundle)\n if child.fleet = fleet;\n \n\n\n\n resource Sled {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Sled)\n if child.fleet = fleet;\n \n\n resource SubnetPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SubnetPool)\n if child.fleet = fleet;\n \n\n resource TufRepo {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufRepo)\n if child.fleet = fleet;\n \n\n resource TufArtifact {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufArtifact)\n if child.fleet = fleet;\n \n\n resource TufTrustRoot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufTrustRoot)\n if child.fleet = fleet;\n \n\n resource Alert {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Alert)\n if child.fleet = fleet;\n \n\n resource AlertReceiver {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AlertReceiver)\n if child.fleet = fleet;\n \n\n\n resource Zpool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Zpool)\n if child.fleet = fleet;\n \n\n resource Service {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Service)\n if child.fleet = fleet;\n \n\n resource UserBuiltin {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: UserBuiltin)\n if child.fleet = fleet;\n \n\n"} {"msg":"Setting up resolver using DNS servers for subnet: Ipv6Subnet { net: Ipv6Net { addr: fd00:1122:3344::, width: 48 } }","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.887906984Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:233"} {"msg":"new DNS resolver","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.887933715Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"DnsResolver","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"internal-dns/resolver/src/resolver.rs:144","addresses":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"Setting up qorb database pool from DNS","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.888039446Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:289","dns_addrs":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"registered USDT probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:02.888261601Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038"} {"msg":"Found schema version is older than desired","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:02.93933102Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:412"} {"msg":"No db_metadata_nexus records exist - skipping access check","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:02.999376615Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:348","explanation":"This is expected during initial deployment or before migration","nexus_id":"ad7cec44-a51d-422e-b617-a4a6bf3d7038 (omicron_zone)"} {"msg":"Datastore should be updated before usage","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:02.999411465Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:376"} {"msg":"Database schema is out of date. Attempting upgrade.","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.000313722Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:590"} {"msg":"Failed to update schema version (permanent error, will not retry)","v":0,"name":"nexus","level":50,"time":"2026-06-15T22:53:03.000349443Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23987,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:385","error":"Desired version 269.0.0 was not found in known versions"} nexus: Failed to update schema version: Desired version 269.0.0 was not found in known versions [ Jun 15 22:53:03 Stopping because all processes in service exited. ] [ Jun 15 22:53:03 Executing stop method (:kill). ] [ Jun 15 22:53:03 Executing start method ("ctrun -l child -o noorphan,regent /opt/oxide/omicron-nexus/bin/nexus /var/svc/manifest/site/nexus/config.toml &"). ] [ Jun 15 22:53:03 Method "start" exited with status 0. ] note: configured to log to "/dev/stdout" {"msg":"registered DTrace probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:03.060763644Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999} {"msg":"setting up nexus server","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.060977158Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/lib.rs:87"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061169591Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Action"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061183912Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuditLog"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061193022Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061200562Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061206612Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061213292Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Database"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061220652Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061242133Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061248043Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061253823Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061259433Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061264963Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061270623Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061276693Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"QuiesceState"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061282233Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061288033Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061294364Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061300924Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061307324Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061313694Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061320604Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061329474Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UpdateTrustRootList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061337634Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TargetReleaseConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061343854Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertClassList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061351745Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061372535Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061381315Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TrustQuorumConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061441806Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Project"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061466147Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Disk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061474887Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061499088Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061505217Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061510588Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AntiAffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061516088Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Instance"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061521518Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061526838Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061532038Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061537148Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061542338Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGateway"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061547358Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061552649Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061558169Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061563789Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061569139Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061574469Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ExternalSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061579649Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Image"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061584769Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061589829Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061594869Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.06163666Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.06164956Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.06165787Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.06166414Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061669671Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061674791Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061679801Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Rack"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061684971Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061690091Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Silo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061695211Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061700261Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061707421Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SupportBundle"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061726762Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061732012Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061737222Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Sled"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061742242Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061751522Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061756722Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061762912Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufTrustRoot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061769862Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Alert"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061775062Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertReceiver"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061780403Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"WebhookSecret"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061785513Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061790603Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Service"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061795783Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UserBuiltin"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061800753Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061805723Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroup"} {"msg":"full Oso configuration","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.061945586Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:89","config":"#\n# Oso configuration for Omicron\n# This file is augmented by generated snippets.\n#\n\n#\n# ACTOR TYPES AND BASIC RULES\n#\n\n# `AnyActor` includes both authenticated and unauthenticated users.\nactor AnyActor {}\n\n# An `AuthenticatedActor` has an identity in the system. All of our operations\n# today require that an actor be authenticated.\nactor AuthenticatedActor {}\n\n# For any resource, `actor` can perform action `action` on it if they're\n# authenticated and their role(s) give them the corresponding permission on that\n# resource.\nallow(actor: AnyActor, action: Action, resource) if\n actor.authenticated and\n has_permission(actor.authn_actor.unwrap(), action.to_perm(), resource);\n\n# Define role relationships\nhas_role(actor: AuthenticatedActor, role: String, resource: Resource)\n\tif resource.has_role(actor, role);\n\n#\n# ROLES AND PERMISSIONS IN THE FLEET/SILO/PROJECT HIERARCHY\n#\n# We define the following permissions for most resources in the system:\n#\n# - \"create_child\": required to create child resources (of any type)\n#\n# - \"list_children\": required to list child resources (of all types) of a\n# resource\n#\n# - \"modify\": required to modify or delete a resource\n#\n# - \"read\": required to read a resource\n#\n# We define the following predefined roles for only a few high-level resources:\n# the Fleet (see below), Silo, Organization, and Project. The specific roles\n# are oriented around intended use-cases:\n#\n# - \"admin\": has all permissions on the resource\n#\n# - \"collaborator\": has \"read\", \"list_children\", and \"create_child\", plus\n# the \"admin\" role for child resources. The idea is that if you're an\n# Organization Collaborator, you have full control over the Projects within\n# the Organization, but you cannot modify or delete the Organization itself.\n#\n# - \"viewer\": has \"read\" and \"list_children\" on a resource\n#\n# Below the Project level, permissions are granted via roles at the Project\n# level. For example, for someone to be able to create, modify, or delete any\n# Instances, they must be granted project.collaborator, which means they can\n# create, modify, or delete _all_ resources in the Project.\n#\n# The complete set of predefined roles:\n#\n# - fleet.admin (superuser for the whole system)\n# - fleet.collaborator (can manage Silos)\n# - fleet.viewer (can read most non-siloed resources in the system)\n# - silo.admin (superuser for the silo)\n# - silo.collaborator (can create and own Organizations; grants project.admin on all projects)\n# - silo.limited-collaborator (grants project.limited-collaborator on all projects)\n# - silo.viewer (can read most resources within the Silo; grants project.viewer)\n# - organization.admin (complete control over an organization)\n# - organization.collaborator (can manage Projects)\n# - organization.viewer (can read most resources within the Organization)\n# - project.admin (complete control over a Project)\n# - project.collaborator (can manage all resources within the Project, including networking)\n# - project.limited-collaborator (can manage compute resources, but not networking resources)\n# - project.viewer (can read most resources within the Project)\n#\n# Outside the Silo/Organization/Project hierarchy, we (currently) treat most\n# resources as nested under Fleet or else a synthetic resource (see below). We\n# do not yet support role assignments on anything other than Fleet, Silo,\n# Organization, or Project.\n#\n\n# \"Fleet\" is a global singleton representing the whole system. The name comes\n# from the idea described in RFD 24, but it's not quite right. This probably\n# should be more like \"Region\" or \"AvailabilityZone\". The precise boundaries\n# have not yet been figured out.\nresource Fleet {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\troles = [\n\t # Roles that can be attached by users\n\t \"admin\",\n\t \"collaborator\",\n\t \"viewer\",\n\n\t # Internal-only roles\n\t \"external-authenticator\"\n\t];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n}\n\n# For fleets specifically, roles can be conferred by roles on the user's Silo.\n# Note that certain Actors may not ever have any roles assigned to them, like\n# SCIM Actors.\nhas_role(actor: AuthenticatedActor, role: String, _: Fleet) if\n\tsilo_role in actor.confers_fleet_role(role) and\n\thas_role(actor, silo_role, actor.silo.unwrap());\n\nresource Silo {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Permissions implied by roles on this resource's parent (Fleet). Fleet\n\t# privileges allow a user to see and potentially administer the Silo,\n\t# but they do not give anyone permission to look at anything inside the\n\t# Silo. To achieve this, we use permission rules here. (If we granted\n\t# Fleet administrators _roles_ on the Silo, then those would cascade\n\t# into the Silo as well.)\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"collaborator\" on \"parent_fleet\";\n\n\t# external authenticator has to create silo users\n\t\"list_children\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", silo: Silo)\n\tif silo.fleet = fleet;\n\n# As a special case, all authenticated users can read their own Silo. That's\n# not quite the same as having the \"viewer\" role. For example, they cannot list\n# Organizations in the Silo.\n#\n# One reason this is necessary is because if an unprivileged user tries to\n# create an Organization using \"POST /organizations\", they should get back a 403\n# (which implies they're able to see /organizations, which is essentially seeing\n# the Silo itself) rather than a 404. This behavior isn't a hard constraint\n# (i.e., you could reasonably get a 404 for an API you're not allowed to call).\n# Nor is the implementation (i.e., we could special-case this endpoint somehow).\n# But granting this permission is the simplest way to keep this endpoint's\n# behavior consistent with the rest of the API.\n#\n# This rule is also used to determine if a user can list the identity providers\n# in the Silo (which they should be able to), since that's predicated on being\n# able to read the Silo.\n#\n# It's unclear what else would break if users couldn't see their own Silo.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif actor.is_user and silo in actor.silo;\n\nresource Project {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t# Role hierarchy: admin > collaborator > limited-collaborator > viewer\n\t#\n\t# The \"limited-collaborator\" role can create/modify non-networking\n\t# resources (instances, disks, etc.) but cannot create/modify networking\n\t# infrastructure (VPCs, subnets, routers, internet gateways).\n\t# See nexus/authz-macros for InProjectLimited vs InProjectFull.\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"limited-collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Roles implied by roles on this resource's parent (Silo)\n\trelations = { parent_silo: Silo };\n\t\"admin\" if \"collaborator\" on \"parent_silo\";\n\t\"limited-collaborator\" if \"limited-collaborator\" on \"parent_silo\";\n\t\"viewer\" if \"viewer\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", project: Project)\n\tif project.silo = silo;\n\n#\n# GENERAL RESOURCES OUTSIDE THE SILO/PROJECT HIERARCHY\n#\n# Many resources use snippets of Polar generated by the `authz_resource!` Rust\n# macro. Some resources require custom Polar code. Those appear here.\n#\n\nresource Certificate {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Fleet-level and silo-level roles both grant privileges on certificates.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", certificate: Certificate)\n\tif certificate.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", certificate: Certificate)\n\tif certificate.silo.fleet = fleet;\n\nresource SiloUser {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\t# Fleet and Silo administrators can manage a Silo's users. This is one\n\t# of the only areas of Silo configuration that Fleet Administrators have\n\t# permissions on.\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"read\" on \"parent_fleet\";\n\t\"read\" if \"read\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", user: SiloUser)\n\tif user.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", user: SiloUser)\n\tif user.silo.fleet = fleet;\n\n# authenticated actors have all permissions on themselves\nhas_permission(actor: AuthenticatedActor, _perm: String, silo_user: SiloUser)\n if actor.equals_silo_user(silo_user);\n\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_user and silo_user.silo in actor.silo;\n\nresource SiloGroup {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\trelations = { parent_silo: Silo };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", group: SiloGroup)\n\tif group.silo = silo;\n\nresource SshKey {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { silo_user: SiloUser };\n\n\t\"read\" if \"read\" on \"silo_user\";\n}\n# We want to allow the user to modify the ssh key but disallow a SCIM IdP token\n# from doing the same.\nhas_permission(actor: AuthenticatedActor, \"modify\", ssh_key: SshKey)\n\tif actor.is_user and has_permission(actor, \"modify\", ssh_key.silo_user);\nhas_relation(user: SiloUser, \"silo_user\", ssh_key: SshKey)\n\tif ssh_key.silo_user = user;\n\nresource IdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", identity_provider: IdentityProvider)\n\tif identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: IdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource SamlIdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", saml_identity_provider: SamlIdentityProvider)\n\tif saml_identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SamlIdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource ScimClientBearerToken {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n # necessary to authenticate SCIM actors\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token: ScimClientBearerToken)\n\tif scim_client_bearer_token.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerToken)\n\tif collection.silo.fleet = fleet;\n\n\n#\n# SYNTHETIC RESOURCES OUTSIDE THE SILO HIERARCHY\n#\n# The resources here do not correspond to anything that appears explicitly in\n# the API or is stored in the database. These are used either at the top level\n# of the API path (e.g., \"/v1/system/ip-pools\") or as an implementation detail of the system\n# (in the case of console sessions and \"Database\"). The policies are\n# either statically-defined in this file or driven by role assignments on the\n# Fleet. None of these resources defines their own roles.\n#\n\n# Describes the quiesce state of a particular Nexus instance.\n#\n# These authz checks must not require the database. We grant this directly to\n# callers of the internal API.\nresource QuiesceState {\n\tpermissions = [ \"read\", \"modify\" ];\n}\nhas_permission(USER_INTERNAL_API: AuthenticatedActor, \"read\", _q: QuiesceState);\nhas_permission(\n USER_INTERNAL_API: AuthenticatedActor,\n \"modify\",\n _q: QuiesceState\n);\n\n# Describes the policy for reading and modifying DNS configuration\n# (both internal and external)\nresource DnsConfig {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t# \"external-authenticator\" requires these permissions because that's the\n\t# context that Nexus uses when creating and deleting Silos. These\n\t# operations necessarily need to read and modify DNS configuration.\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"modify\" if \"external-authenticator\" on \"parent_fleet\";\n\t# \"admin\" on the parent fleet also gets these permissions, primarily for\n\t# the test suite.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", dns_config: DnsConfig)\n\tif dns_config.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource BlueprintConfig {\n\tpermissions = [\n\t \"list_children\", # list blueprints\n\t \"create_child\", # create blueprint\n\t \"read\", # read the current target\n\t \"modify\", # change the current target\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", list: BlueprintConfig)\n\tif list.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/update/trust-roots\" in the API\nresource UpdateTrustRootList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: UpdateTrustRootList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource TargetReleaseConfig {\n\tpermissions = [\n\t \"read\", # read the current target release\n\t \"modify\", # change the current target release\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", resource: TargetReleaseConfig)\n\tif resource.fleet = fleet;\n\n# Describes the policy for reading and modifying low-level inventory\nresource Inventory {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", inventory: Inventory)\n\tif inventory.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/ip-pools\" in the API\nresource IpPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the IP Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list IP Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", ip_pool_list: IpPoolList)\n\tif ip_pool_list.fleet = fleet;\n\n# Any authenticated user can create a child of a provided IP Pool.\n# This is necessary to use the pools when provisioning instances.\nhas_permission(actor: AuthenticatedActor, \"create_child\", ip_pool: IpPool)\n\tif actor.is_user and silo in actor.silo and silo.fleet = ip_pool.fleet;\n\n# Describes the policy for accessing \"/v1/multicast-groups\" in the API\n# Groups are created when the first instance joins and deleted when the last leaves.\nresource MulticastGroupList {\n\tpermissions = [ \"list_children\" ];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet Viewers can list multicast groups\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group_list: MulticastGroupList)\n\tif multicast_group_list.fleet = fleet;\n\n# Any authenticated user can list multicast groups in their fleet.\n# This enables silo users to discover groups for attaching instances,\n# without requiring the Fleet::Viewer role.\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group_list: MulticastGroupList)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group_list.fleet;\n\n# MulticastGroup is a fleet-level discovery resource.\n# Join/leave authorization is gated by Instance::Modify, not the group itself.\nresource MulticastGroup {\n\tpermissions = [ \"read\", \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group: MulticastGroup)\n\tif multicast_group.fleet = fleet;\n\n# Any authenticated user can read multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"read\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Any authenticated user can list members of multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Describes the policy for reading and writing the audit log\nresource AuditLog {\n\tpermissions = [\n\t \"list_children\", # retrieve audit log\n\t \"create_child\", # create audit log entry\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet viewers can read the audit log\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\n# Any actor should be able to write to the audit log because we need to be able\n# to write to the log from any request, authenticated or not. Audit log writes\n# are always a byproduct of other operations: there are no endpoints that allow\n# the user to write to the log deliberately. Note we use AuthenticatedActor\n# because we don't really mean unauthenticated -- in the case of login\n# operations, we use the external authenticator actor that creates the session\n# to authorize the audit log write.\nhas_permission(_actor: AuthenticatedActor, \"create_child\", _audit_log: AuditLog);\n\nhas_relation(fleet: Fleet, \"parent_fleet\", audit_log: AuditLog)\n\tif audit_log.fleet = fleet;\n\n# Describes the policy for creating and managing web console sessions.\nresource ConsoleSessionList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ConsoleSessionList)\n\tif collection.fleet = fleet;\n\n# Allow silo admins to delete and list user sessions\nresource SiloUserSessionList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's sessions.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's sessions.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserSessionList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own sessions\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Allow silo admins to delete and list user access tokens\nresource SiloUserTokenList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's tokens.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's tokens.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserTokenList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own tokens\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Describes the policy for creating and managing device authorization requests.\nresource DeviceAuthRequestList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: DeviceAuthRequestList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for creating and managing trust quorum configurations\n# This may change in a multirack future to a per rack parent\nresource TrustQuorumConfig {\n permissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", config: TrustQuorumConfig)\n\tif config.rack.fleet = fleet;\n\n# Describes the policy for creating and managing Silo certificates\nresource SiloCertificateList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Both Fleet and Silo administrators can see and modify the Silo's\n\t# certificates.\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloCertificateList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloCertificateList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo identity providers\nresource SiloIdentityProviderList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the identity providers in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's identity provider\n\t# configuration. This is one of the only areas of Silo configuration\n\t# that Fleet Administrators have permissions on. This is also one of\n\t# the only cases where we need to look two levels up the hierarchy to\n\t# see if somebody has the right permission. For most other things,\n\t# permissions cascade down the hierarchy so we only need to look at the\n\t# parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloIdentityProviderList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloIdentityProviderList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo users (mostly intended for\n# API-managed users)\nresource SiloUserList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the users in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's users. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloUserList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloUserList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on users.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_user_list: SiloUserList)\n\tif actor.is_scim_idp and silo_user_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_user: SiloUser)\n\tif actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_user_list: SiloUserList)\n if actor.is_scim_idp and silo_user_list.silo in actor.silo;\n\n# Describes the policy for creating and managing Silo groups (mostly intended\n# for API-managed groups)\nresource SiloGroupList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the groups in the\n\t# Silo) can see the groups in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's groups. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloGroupList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloGroupList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on groups.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_group: SiloGroup)\n if actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_group_list: SiloGroupList)\n\tif actor.is_scim_idp and silo_group_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_group: SiloGroup)\n\tif actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_group_list: SiloGroupList)\n if actor.is_scim_idp and silo_group_list.silo in actor.silo;\n\n# These rules grants the external authenticator role the permissions it needs to\n# read silo users and modify their sessions. This is necessary for login to\n# work.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif has_role(actor, \"external-authenticator\", silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\n\n# All authenticated users can read and delete device authn requests because\n# by necessity these operations happen before we've figured out what user (or\n# even Silo) the device auth is associated with. Any user can claim a device\n# auth request with the right user code (that's how it works) -- it's the user\n# code and associated logic that prevents unauthorized access here.\nhas_permission(actor: AuthenticatedActor, \"read\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\nhas_permission(actor: AuthenticatedActor, \"modify\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\n\nhas_permission(actor: AuthenticatedActor, \"read\", device_token: DeviceAccessToken)\n\tif has_role(actor, \"external-authenticator\", device_token.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", identity_provider: IdentityProvider)\n\tif has_role(actor, \"external-authenticator\", identity_provider.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", saml_identity_provider: SamlIdentityProvider)\n\tif has_role(actor, \"external-authenticator\", saml_identity_provider.silo.fleet);\n\n# Describes the policy for who can access the internal database.\nresource Database {\n\tpermissions = [\n\t # \"query\" is required to perform any query against the database,\n\t # whether a read or write query. This is checked when an operation\n\t # checks out a database connection from the connection pool.\n\t #\n\t # Any authenticated user gets this permission. There's generally\n\t # some other authz check involved in the database query. For\n\t # example, if you're querying the database to \"read\" a \"Project\", we\n\t # should also be checking that. So why do we do this at all? It's\n\t # a belt-and-suspenders measure so that if we somehow introduced an\n\t # unauthenticated code path that hits the database, it cannot be\n\t # used to DoS the database because we won't allow the operation to\n\t # make the query. (As long as the code path _is_ authenticated, we\n\t # can use throttling mechanisms to prevent DoS.)\n\t \"query\",\n\n\t # \"modify\" is required to populate database data that's delivered\n\t # with the system. It should also be required for schema changes,\n\t # when we support those. This is separate from \"query\" so that we\n\t # cannot accidentally invoke these code paths from API calls and\n\t # other general functions.\n\t \"modify\"\n\t];\n}\n\n# All authenticated users have the \"query\" permission on the database.\nhas_permission(_actor: AuthenticatedActor, \"query\", _resource: Database);\n\n# The \"db-init\" user is the only one with the \"modify\" permission.\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"modify\", _resource: Database);\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"create_child\", _resource: IpPoolList);\n# It also has \"admin\" on the internal silo to populate it with built-in resources.\n# TODO-completeness: actually limit to just internal silo and not all silos\nhas_role(USER_DB_INIT: AuthenticatedActor, \"admin\", _silo: Silo);\n\n# Allow the internal API admin permissions on all silos.\nhas_role(USER_INTERNAL_API: AuthenticatedActor, \"admin\", _silo: Silo);\n\nresource WebhookSecret {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_alert_receiver: AlertReceiver };\n\n\t\"read\" if \"read\" on \"parent_alert_receiver\";\n\t\"modify\" if \"modify\" on \"parent_alert_receiver\";\n}\n\nhas_relation(rx: AlertReceiver, \"parent_alert_receiver\", secret: WebhookSecret)\n\tif secret.alert_receiver = rx;\n\nresource AlertClassList {\n\tpermissions = [ \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: AlertClassList)\n\tif collection.fleet = fleet;\n\nresource ScimClientBearerTokenList {\n\tpermissions = [ \"create_child\", \"list_children\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n # These are all admin because being able to create these tokens would allow\n # a user to grant themselves admin by modifying group membership through SCIM calls\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\n # Fleet-level roles also grant privileges for SCIM client tokens, for\n # configuration before silo admins are present.\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token_list: ScimClientBearerTokenList)\n\tif scim_client_bearer_token_list.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerTokenList)\n\tif collection.silo.fleet = fleet;\n\n# VpcList is a synthetic resource for controlling VPC creation.\n# Unlike other project resources, VPC creation requires the full \"collaborator\"\n# role rather than \"limited-collaborator\", enforcing the networking restriction.\n# This allows organizations to restrict who can reconfigure the network topology\n# while still allowing users with limited-collaborator to work with compute\n# resources (instances, disks, etc.) within the existing network.\nresource VpcList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { containing_project: Project };\n\n\t\"list_children\" if \"read\" on \"containing_project\";\n\t\"create_child\" if \"collaborator\" on \"containing_project\";\n}\nhas_relation(project: Project, \"containing_project\", collection: VpcList)\n\tif collection.project = project;\n\n# Describes the policy for accessing \"/v1/system/subnet-pools\" in the API\nresource SubnetPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the Subnet Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list External Subnet Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", subnet_pool_list: SubnetPoolList)\n\tif subnet_pool_list.fleet = fleet;\n\n\n\n resource Disk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Disk)\n if child.project = parent;\n \n\n resource Snapshot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Snapshot)\n if child.project = parent;\n \n\n resource ProjectImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ProjectImage)\n if child.project = parent;\n \n\n resource AffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AffinityGroup)\n if child.project = parent;\n \n\n resource AntiAffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AntiAffinityGroup)\n if child.project = parent;\n \n\n resource Instance {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Instance)\n if child.project = parent;\n \n\n resource IpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: IpPool)\n if child.fleet = fleet;\n \n\n resource InstanceNetworkInterface {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Instance\n };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InstanceNetworkInterface)\n if has_relation(project, \"containing_project\", child.instance);\n\n has_relation(parent: Instance, \"parent\", child: InstanceNetworkInterface)\n if child.instance = parent;\n \n\n resource Vpc {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Vpc)\n if child.project = parent;\n \n\n resource VpcRouter {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcRouter)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcRouter)\n if child.vpc = parent;\n \n\n resource InternetGateway {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGateway)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: InternetGateway)\n if child.vpc = parent;\n \n\n resource InternetGatewayIpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpPool)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpPool)\n if child.internet_gateway = parent;\n \n\n resource InternetGatewayIpAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpAddress)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpAddress)\n if child.internet_gateway = parent;\n \n\n resource RouterRoute {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: VpcRouter\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: RouterRoute)\n if has_relation(project, \"containing_project\", child.vpc_router);\n\n has_relation(parent: VpcRouter, \"parent\", child: RouterRoute)\n if child.vpc_router = parent;\n \n\n resource VpcSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcSubnet)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcSubnet)\n if child.vpc = parent;\n \n\n resource FloatingIp {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: FloatingIp)\n if child.project = parent;\n \n\n resource ExternalSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ExternalSubnet)\n if child.project = parent;\n \n\n resource Image {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: Image)\n if child.silo = parent;\n \n\n resource SiloImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: SiloImage)\n if child.silo = parent;\n \n\n resource AddressLot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AddressLot)\n if child.fleet = fleet;\n \n\n resource Blueprint {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Blueprint)\n if child.fleet = fleet;\n \n\n resource LoopbackAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: LoopbackAddress)\n if child.fleet = fleet;\n \n\n\n resource ConsoleSession {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: ConsoleSession)\n if child.fleet = fleet;\n \n\n resource DeviceAuthRequest {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAuthRequest)\n if child.fleet = fleet;\n \n\n resource DeviceAccessToken {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAccessToken)\n if child.fleet = fleet;\n \n\n resource PhysicalDisk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: PhysicalDisk)\n if child.fleet = fleet;\n \n\n resource Rack {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Rack)\n if child.fleet = fleet;\n \n\n\n\n\n\n resource SupportBundle {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SupportBundle)\n if child.fleet = fleet;\n \n\n\n\n resource Sled {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Sled)\n if child.fleet = fleet;\n \n\n resource SubnetPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SubnetPool)\n if child.fleet = fleet;\n \n\n resource TufRepo {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufRepo)\n if child.fleet = fleet;\n \n\n resource TufArtifact {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufArtifact)\n if child.fleet = fleet;\n \n\n resource TufTrustRoot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufTrustRoot)\n if child.fleet = fleet;\n \n\n resource Alert {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Alert)\n if child.fleet = fleet;\n \n\n resource AlertReceiver {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AlertReceiver)\n if child.fleet = fleet;\n \n\n\n resource Zpool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Zpool)\n if child.fleet = fleet;\n \n\n resource Service {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Service)\n if child.fleet = fleet;\n \n\n resource UserBuiltin {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: UserBuiltin)\n if child.fleet = fleet;\n \n\n"} {"msg":"Setting up resolver using DNS servers for subnet: Ipv6Subnet { net: Ipv6Net { addr: fd00:1122:3344::, width: 48 } }","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.079863505Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:233"} {"msg":"new DNS resolver","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.079905546Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"DnsResolver","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"internal-dns/resolver/src/resolver.rs:144","addresses":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"Setting up qorb database pool from DNS","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.079986008Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:289","dns_addrs":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"registered USDT probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:03.080224312Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038"} {"msg":"Found schema version is older than desired","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:03.125404443Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:412"} {"msg":"No db_metadata_nexus records exist - skipping access check","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:03.126584275Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:348","explanation":"This is expected during initial deployment or before migration","nexus_id":"ad7cec44-a51d-422e-b617-a4a6bf3d7038 (omicron_zone)"} {"msg":"Datastore should be updated before usage","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.126604315Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:376"} {"msg":"Database schema is out of date. Attempting upgrade.","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.128311697Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:590"} {"msg":"Failed to update schema version (permanent error, will not retry)","v":0,"name":"nexus","level":50,"time":"2026-06-15T22:53:03.128330847Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":23999,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:385","error":"Desired version 269.0.0 was not found in known versions"} nexus: Failed to update schema version: Desired version 269.0.0 was not found in known versions [ Jun 15 22:53:03 Stopping because all processes in service exited. ] [ Jun 15 22:53:03 Executing stop method (:kill). ] [ Jun 15 22:53:03 Executing start method ("ctrun -l child -o noorphan,regent /opt/oxide/omicron-nexus/bin/nexus /var/svc/manifest/site/nexus/config.toml &"). ] [ Jun 15 22:53:03 Method "start" exited with status 0. ] note: configured to log to "/dev/stdout" {"msg":"registered DTrace probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:03.195944731Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005} {"msg":"setting up nexus server","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196105704Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/lib.rs:87"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196260276Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Action"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196278947Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuditLog"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196286677Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196293717Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196301277Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196308997Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Database"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196317168Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196324238Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196331438Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196338468Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196346318Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196353278Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196361008Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196368298Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"QuiesceState"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196375929Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196382949Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196390409Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196397469Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196404469Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196411429Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19641855Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19642595Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UpdateTrustRootList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19643305Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TargetReleaseConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19644079Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertClassList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19644777Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerTokenList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19645437Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroupList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19646097Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TrustQuorumConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196495701Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Project"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196508271Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Disk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196515781Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196522951Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196529792Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196536932Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AntiAffinityGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196544122Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Instance"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196551352Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196558892Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196566402Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196573642Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196580833Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGateway"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196588362Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196595973Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InternetGatewayIpAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196603173Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196610803Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196617823Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196625063Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ExternalSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196632313Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Image"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196644083Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196654734Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196661984Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196708905Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196744585Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196752656Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196758906Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196764936Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196770836Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196776806Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Rack"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196782616Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196788626Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Silo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196794566Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196800617Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196806266Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SupportBundle"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196812297Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196817757Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196823397Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Sled"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196829027Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SubnetPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196835047Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196840567Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196846477Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufTrustRoot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196851667Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Alert"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196857047Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AlertReceiver"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196862608Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"WebhookSecret"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196867998Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196873068Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Service"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196878508Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UserBuiltin"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196884008Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ScimClientBearerToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.196889278Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"MulticastGroup"} {"msg":"full Oso configuration","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.19698726Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/auth/src/authz/oso_generic.rs:89","config":"#\n# Oso configuration for Omicron\n# This file is augmented by generated snippets.\n#\n\n#\n# ACTOR TYPES AND BASIC RULES\n#\n\n# `AnyActor` includes both authenticated and unauthenticated users.\nactor AnyActor {}\n\n# An `AuthenticatedActor` has an identity in the system. All of our operations\n# today require that an actor be authenticated.\nactor AuthenticatedActor {}\n\n# For any resource, `actor` can perform action `action` on it if they're\n# authenticated and their role(s) give them the corresponding permission on that\n# resource.\nallow(actor: AnyActor, action: Action, resource) if\n actor.authenticated and\n has_permission(actor.authn_actor.unwrap(), action.to_perm(), resource);\n\n# Define role relationships\nhas_role(actor: AuthenticatedActor, role: String, resource: Resource)\n\tif resource.has_role(actor, role);\n\n#\n# ROLES AND PERMISSIONS IN THE FLEET/SILO/PROJECT HIERARCHY\n#\n# We define the following permissions for most resources in the system:\n#\n# - \"create_child\": required to create child resources (of any type)\n#\n# - \"list_children\": required to list child resources (of all types) of a\n# resource\n#\n# - \"modify\": required to modify or delete a resource\n#\n# - \"read\": required to read a resource\n#\n# We define the following predefined roles for only a few high-level resources:\n# the Fleet (see below), Silo, Organization, and Project. The specific roles\n# are oriented around intended use-cases:\n#\n# - \"admin\": has all permissions on the resource\n#\n# - \"collaborator\": has \"read\", \"list_children\", and \"create_child\", plus\n# the \"admin\" role for child resources. The idea is that if you're an\n# Organization Collaborator, you have full control over the Projects within\n# the Organization, but you cannot modify or delete the Organization itself.\n#\n# - \"viewer\": has \"read\" and \"list_children\" on a resource\n#\n# Below the Project level, permissions are granted via roles at the Project\n# level. For example, for someone to be able to create, modify, or delete any\n# Instances, they must be granted project.collaborator, which means they can\n# create, modify, or delete _all_ resources in the Project.\n#\n# The complete set of predefined roles:\n#\n# - fleet.admin (superuser for the whole system)\n# - fleet.collaborator (can manage Silos)\n# - fleet.viewer (can read most non-siloed resources in the system)\n# - silo.admin (superuser for the silo)\n# - silo.collaborator (can create and own Organizations; grants project.admin on all projects)\n# - silo.limited-collaborator (grants project.limited-collaborator on all projects)\n# - silo.viewer (can read most resources within the Silo; grants project.viewer)\n# - organization.admin (complete control over an organization)\n# - organization.collaborator (can manage Projects)\n# - organization.viewer (can read most resources within the Organization)\n# - project.admin (complete control over a Project)\n# - project.collaborator (can manage all resources within the Project, including networking)\n# - project.limited-collaborator (can manage compute resources, but not networking resources)\n# - project.viewer (can read most resources within the Project)\n#\n# Outside the Silo/Organization/Project hierarchy, we (currently) treat most\n# resources as nested under Fleet or else a synthetic resource (see below). We\n# do not yet support role assignments on anything other than Fleet, Silo,\n# Organization, or Project.\n#\n\n# \"Fleet\" is a global singleton representing the whole system. The name comes\n# from the idea described in RFD 24, but it's not quite right. This probably\n# should be more like \"Region\" or \"AvailabilityZone\". The precise boundaries\n# have not yet been figured out.\nresource Fleet {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\troles = [\n\t # Roles that can be attached by users\n\t \"admin\",\n\t \"collaborator\",\n\t \"viewer\",\n\n\t # Internal-only roles\n\t \"external-authenticator\"\n\t];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n}\n\n# For fleets specifically, roles can be conferred by roles on the user's Silo.\n# Note that certain Actors may not ever have any roles assigned to them, like\n# SCIM Actors.\nhas_role(actor: AuthenticatedActor, role: String, _: Fleet) if\n\tsilo_role in actor.confers_fleet_role(role) and\n\thas_role(actor, silo_role, actor.silo.unwrap());\n\nresource Silo {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\n\t\"create_child\" if \"collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Permissions implied by roles on this resource's parent (Fleet). Fleet\n\t# privileges allow a user to see and potentially administer the Silo,\n\t# but they do not give anyone permission to look at anything inside the\n\t# Silo. To achieve this, we use permission rules here. (If we granted\n\t# Fleet administrators _roles_ on the Silo, then those would cascade\n\t# into the Silo as well.)\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"collaborator\" on \"parent_fleet\";\n\n\t# external authenticator has to create silo users\n\t\"list_children\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", silo: Silo)\n\tif silo.fleet = fleet;\n\n# As a special case, all authenticated users can read their own Silo. That's\n# not quite the same as having the \"viewer\" role. For example, they cannot list\n# Organizations in the Silo.\n#\n# One reason this is necessary is because if an unprivileged user tries to\n# create an Organization using \"POST /organizations\", they should get back a 403\n# (which implies they're able to see /organizations, which is essentially seeing\n# the Silo itself) rather than a 404. This behavior isn't a hard constraint\n# (i.e., you could reasonably get a 404 for an API you're not allowed to call).\n# Nor is the implementation (i.e., we could special-case this endpoint somehow).\n# But granting this permission is the simplest way to keep this endpoint's\n# behavior consistent with the rest of the API.\n#\n# This rule is also used to determine if a user can list the identity providers\n# in the Silo (which they should be able to), since that's predicated on being\n# able to read the Silo.\n#\n# It's unclear what else would break if users couldn't see their own Silo.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif actor.is_user and silo in actor.silo;\n\nresource Project {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\troles = [ \"admin\", \"collaborator\", \"limited-collaborator\", \"viewer\" ];\n\n\t# Roles implied by other roles on this resource\n\t# Role hierarchy: admin > collaborator > limited-collaborator > viewer\n\t#\n\t# The \"limited-collaborator\" role can create/modify non-networking\n\t# resources (instances, disks, etc.) but cannot create/modify networking\n\t# infrastructure (VPCs, subnets, routers, internet gateways).\n\t# See nexus/authz-macros for InProjectLimited vs InProjectFull.\n\t\"viewer\" if \"limited-collaborator\";\n\t\"limited-collaborator\" if \"collaborator\";\n\t\"collaborator\" if \"admin\";\n\n\t# Permissions granted directly by roles on this resource\n\t\"list_children\" if \"viewer\";\n\t\"read\" if \"viewer\";\n\t\"create_child\" if \"limited-collaborator\";\n\t\"modify\" if \"admin\";\n\n\t# Roles implied by roles on this resource's parent (Silo)\n\trelations = { parent_silo: Silo };\n\t\"admin\" if \"collaborator\" on \"parent_silo\";\n\t\"limited-collaborator\" if \"limited-collaborator\" on \"parent_silo\";\n\t\"viewer\" if \"viewer\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", project: Project)\n\tif project.silo = silo;\n\n#\n# GENERAL RESOURCES OUTSIDE THE SILO/PROJECT HIERARCHY\n#\n# Many resources use snippets of Polar generated by the `authz_resource!` Rust\n# macro. Some resources require custom Polar code. Those appear here.\n#\n\nresource Certificate {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Fleet-level and silo-level roles both grant privileges on certificates.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", certificate: Certificate)\n\tif certificate.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", certificate: Certificate)\n\tif certificate.silo.fleet = fleet;\n\nresource SiloUser {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\t# Fleet and Silo administrators can manage a Silo's users. This is one\n\t# of the only areas of Silo configuration that Fleet Administrators have\n\t# permissions on.\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"read\" on \"parent_fleet\";\n\t\"read\" if \"read\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", user: SiloUser)\n\tif user.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", user: SiloUser)\n\tif user.silo.fleet = fleet;\n\n# authenticated actors have all permissions on themselves\nhas_permission(actor: AuthenticatedActor, _perm: String, silo_user: SiloUser)\n if actor.equals_silo_user(silo_user);\n\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_user and silo_user.silo in actor.silo;\n\nresource SiloGroup {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"read\",\n\t \"create_child\",\n\t];\n\n\trelations = { parent_silo: Silo };\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\t\"read\" if \"read\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", group: SiloGroup)\n\tif group.silo = silo;\n\nresource SshKey {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { silo_user: SiloUser };\n\n\t\"read\" if \"read\" on \"silo_user\";\n}\n# We want to allow the user to modify the ssh key but disallow a SCIM IdP token\n# from doing the same.\nhas_permission(actor: AuthenticatedActor, \"modify\", ssh_key: SshKey)\n\tif actor.is_user and has_permission(actor, \"modify\", ssh_key.silo_user);\nhas_relation(user: SiloUser, \"silo_user\", ssh_key: SshKey)\n\tif ssh_key.silo_user = user;\n\nresource IdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", identity_provider: IdentityProvider)\n\tif identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: IdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource SamlIdentityProvider {\n\tpermissions = [\n\t \"read\",\n\t \"modify\",\n\t \"create_child\",\n\t \"list_children\",\n\t];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_silo\";\n\t\"list_children\" if \"viewer\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges on identity providers.\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", saml_identity_provider: SamlIdentityProvider)\n\tif saml_identity_provider.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SamlIdentityProvider)\n\tif collection.silo.fleet = fleet;\n\nresource ScimClientBearerToken {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n # necessary to authenticate SCIM actors\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_silo\";\n\t\"modify\" if \"admin\" on \"parent_silo\";\n\n\t# Fleet-level roles also grant privileges for SCIM client tokens.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token: ScimClientBearerToken)\n\tif scim_client_bearer_token.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerToken)\n\tif collection.silo.fleet = fleet;\n\n\n#\n# SYNTHETIC RESOURCES OUTSIDE THE SILO HIERARCHY\n#\n# The resources here do not correspond to anything that appears explicitly in\n# the API or is stored in the database. These are used either at the top level\n# of the API path (e.g., \"/v1/system/ip-pools\") or as an implementation detail of the system\n# (in the case of console sessions and \"Database\"). The policies are\n# either statically-defined in this file or driven by role assignments on the\n# Fleet. None of these resources defines their own roles.\n#\n\n# Describes the quiesce state of a particular Nexus instance.\n#\n# These authz checks must not require the database. We grant this directly to\n# callers of the internal API.\nresource QuiesceState {\n\tpermissions = [ \"read\", \"modify\" ];\n}\nhas_permission(USER_INTERNAL_API: AuthenticatedActor, \"read\", _q: QuiesceState);\nhas_permission(\n USER_INTERNAL_API: AuthenticatedActor,\n \"modify\",\n _q: QuiesceState\n);\n\n# Describes the policy for reading and modifying DNS configuration\n# (both internal and external)\nresource DnsConfig {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t# \"external-authenticator\" requires these permissions because that's the\n\t# context that Nexus uses when creating and deleting Silos. These\n\t# operations necessarily need to read and modify DNS configuration.\n\t\"read\" if \"external-authenticator\" on \"parent_fleet\";\n\t\"modify\" if \"external-authenticator\" on \"parent_fleet\";\n\t# \"admin\" on the parent fleet also gets these permissions, primarily for\n\t# the test suite.\n\t\"read\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", dns_config: DnsConfig)\n\tif dns_config.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource BlueprintConfig {\n\tpermissions = [\n\t \"list_children\", # list blueprints\n\t \"create_child\", # create blueprint\n\t \"read\", # read the current target\n\t \"modify\", # change the current target\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", list: BlueprintConfig)\n\tif list.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/update/trust-roots\" in the API\nresource UpdateTrustRootList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: UpdateTrustRootList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for accessing blueprints\nresource TargetReleaseConfig {\n\tpermissions = [\n\t \"read\", # read the current target release\n\t \"modify\", # change the current target release\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", resource: TargetReleaseConfig)\n\tif resource.fleet = fleet;\n\n# Describes the policy for reading and modifying low-level inventory\nresource Inventory {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", inventory: Inventory)\n\tif inventory.fleet = fleet;\n\n# Describes the policy for accessing \"/v1/system/ip-pools\" in the API\nresource IpPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the IP Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list IP Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", ip_pool_list: IpPoolList)\n\tif ip_pool_list.fleet = fleet;\n\n# Any authenticated user can create a child of a provided IP Pool.\n# This is necessary to use the pools when provisioning instances.\nhas_permission(actor: AuthenticatedActor, \"create_child\", ip_pool: IpPool)\n\tif actor.is_user and silo in actor.silo and silo.fleet = ip_pool.fleet;\n\n# Describes the policy for accessing \"/v1/multicast-groups\" in the API\n# Groups are created when the first instance joins and deleted when the last leaves.\nresource MulticastGroupList {\n\tpermissions = [ \"list_children\" ];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet Viewers can list multicast groups\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group_list: MulticastGroupList)\n\tif multicast_group_list.fleet = fleet;\n\n# Any authenticated user can list multicast groups in their fleet.\n# This enables silo users to discover groups for attaching instances,\n# without requiring the Fleet::Viewer role.\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group_list: MulticastGroupList)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group_list.fleet;\n\n# MulticastGroup is a fleet-level discovery resource.\n# Join/leave authorization is gated by Instance::Modify, not the group itself.\nresource MulticastGroup {\n\tpermissions = [ \"read\", \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", multicast_group: MulticastGroup)\n\tif multicast_group.fleet = fleet;\n\n# Any authenticated user can read multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"read\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Any authenticated user can list members of multicast groups in their fleet\nhas_permission(actor: AuthenticatedActor, \"list_children\", multicast_group: MulticastGroup)\n\tif actor.is_user and silo in actor.silo and silo.fleet = multicast_group.fleet;\n\n# Describes the policy for reading and writing the audit log\nresource AuditLog {\n\tpermissions = [\n\t \"list_children\", # retrieve audit log\n\t \"create_child\", # create audit log entry\n\t];\n\n\trelations = { parent_fleet: Fleet };\n\n\t# Fleet viewers can read the audit log\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\n# Any actor should be able to write to the audit log because we need to be able\n# to write to the log from any request, authenticated or not. Audit log writes\n# are always a byproduct of other operations: there are no endpoints that allow\n# the user to write to the log deliberately. Note we use AuthenticatedActor\n# because we don't really mean unauthenticated -- in the case of login\n# operations, we use the external authenticator actor that creates the session\n# to authorize the audit log write.\nhas_permission(_actor: AuthenticatedActor, \"create_child\", _audit_log: AuditLog);\n\nhas_relation(fleet: Fleet, \"parent_fleet\", audit_log: AuditLog)\n\tif audit_log.fleet = fleet;\n\n# Describes the policy for creating and managing web console sessions.\nresource ConsoleSessionList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ConsoleSessionList)\n\tif collection.fleet = fleet;\n\n# Allow silo admins to delete and list user sessions\nresource SiloUserSessionList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's sessions.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's sessions.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserSessionList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own sessions\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserSessionList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Allow silo admins to delete and list user access tokens\nresource SiloUserTokenList {\n permissions = [ \"modify\", \"list_children\" ];\n relations = { parent_silo: Silo };\n\n # A silo admin can modify (e.g., delete) a user's tokens.\n \"modify\" if \"admin\" on \"parent_silo\";\n\n # A silo admin can list a user's tokens.\n \"list_children\" if \"admin\" on \"parent_silo\";\n}\nhas_relation(silo: Silo, \"parent_silo\", authn_list: SiloUserTokenList)\n if authn_list.silo_user.silo = silo;\n\n# give users 'modify' and 'list_children' on their own tokens\nhas_permission(actor: AuthenticatedActor, \"modify\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\nhas_permission(actor: AuthenticatedActor, \"list_children\", authn_list: SiloUserTokenList)\n if actor.equals_silo_user(authn_list.silo_user);\n\n# Describes the policy for creating and managing device authorization requests.\nresource DeviceAuthRequestList {\n\tpermissions = [ \"create_child\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"create_child\" if \"external-authenticator\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: DeviceAuthRequestList)\n\tif collection.fleet = fleet;\n\n# Describes the policy for creating and managing trust quorum configurations\n# This may change in a multirack future to a per rack parent\nresource TrustQuorumConfig {\n permissions = [ \"read\", \"modify\" ];\n\trelations = { parent_fleet: Fleet };\n\t\"read\" if \"viewer\" on \"parent_fleet\";\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", config: TrustQuorumConfig)\n\tif config.rack.fleet = fleet;\n\n# Describes the policy for creating and managing Silo certificates\nresource SiloCertificateList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Both Fleet and Silo administrators can see and modify the Silo's\n\t# certificates.\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloCertificateList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloCertificateList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo identity providers\nresource SiloIdentityProviderList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the identity providers in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's identity provider\n\t# configuration. This is one of the only areas of Silo configuration\n\t# that Fleet Administrators have permissions on. This is also one of\n\t# the only cases where we need to look two levels up the hierarchy to\n\t# see if somebody has the right permission. For most other things,\n\t# permissions cascade down the hierarchy so we only need to look at the\n\t# parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloIdentityProviderList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloIdentityProviderList)\n\tif collection.silo.fleet = fleet;\n\n# Describes the policy for creating and managing Silo users (mostly intended for\n# API-managed users)\nresource SiloUserList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the users in the\n\t# Silo) can see the users in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's users. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloUserList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloUserList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on users.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_user: SiloUser)\n if actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_user_list: SiloUserList)\n\tif actor.is_scim_idp and silo_user_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_user: SiloUser)\n\tif actor.is_scim_idp and silo_user.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_user_list: SiloUserList)\n if actor.is_scim_idp and silo_user_list.silo in actor.silo;\n\n# Describes the policy for creating and managing Silo groups (mostly intended\n# for API-managed groups)\nresource SiloGroupList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Everyone who can read the Silo (which includes all the groups in the\n\t# Silo) can see the groups in it.\n\t\"list_children\" if \"read\" on \"parent_silo\";\n\n\t# Fleet and Silo administrators can manage the Silo's groups. This is\n\t# one of the only areas of Silo configuration that Fleet Administrators\n\t# have permissions on. This is also one of the few cases (so far) where\n\t# we need to look two levels up the hierarchy to see if somebody has the\n\t# right permission. For most other things, permissions cascade down the\n\t# hierarchy so we only need to look at the parent.\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", collection: SiloGroupList)\n\tif collection.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: SiloGroupList)\n\tif collection.silo.fleet = fleet;\n\n# Grant SCIM IdP actors the permissions they need on groups.\nhas_permission(actor: AuthenticatedActor, \"read\", silo_group: SiloGroup)\n if actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"create_child\", silo_group_list: SiloGroupList)\n\tif actor.is_scim_idp and silo_group_list.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"modify\", silo_group: SiloGroup)\n\tif actor.is_scim_idp and silo_group.silo in actor.silo;\nhas_permission(actor: AuthenticatedActor, \"list_children\", silo_group_list: SiloGroupList)\n if actor.is_scim_idp and silo_group_list.silo in actor.silo;\n\n# These rules grants the external authenticator role the permissions it needs to\n# read silo users and modify their sessions. This is necessary for login to\n# work.\nhas_permission(actor: AuthenticatedActor, \"read\", silo: Silo)\n\tif has_role(actor, \"external-authenticator\", silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", user: SiloUser)\n\tif has_role(actor, \"external-authenticator\", user.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"read\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", group: SiloGroup)\n\tif has_role(actor, \"external-authenticator\", group.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\nhas_permission(actor: AuthenticatedActor, \"modify\", session: ConsoleSession)\n\tif has_role(actor, \"external-authenticator\", session.fleet);\n\n# All authenticated users can read and delete device authn requests because\n# by necessity these operations happen before we've figured out what user (or\n# even Silo) the device auth is associated with. Any user can claim a device\n# auth request with the right user code (that's how it works) -- it's the user\n# code and associated logic that prevents unauthorized access here.\nhas_permission(actor: AuthenticatedActor, \"read\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\nhas_permission(actor: AuthenticatedActor, \"modify\", _device_auth: DeviceAuthRequest)\n if actor.is_user;\n\nhas_permission(actor: AuthenticatedActor, \"read\", device_token: DeviceAccessToken)\n\tif has_role(actor, \"external-authenticator\", device_token.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", identity_provider: IdentityProvider)\n\tif has_role(actor, \"external-authenticator\", identity_provider.silo.fleet);\n\nhas_permission(actor: AuthenticatedActor, \"read\", saml_identity_provider: SamlIdentityProvider)\n\tif has_role(actor, \"external-authenticator\", saml_identity_provider.silo.fleet);\n\n# Describes the policy for who can access the internal database.\nresource Database {\n\tpermissions = [\n\t # \"query\" is required to perform any query against the database,\n\t # whether a read or write query. This is checked when an operation\n\t # checks out a database connection from the connection pool.\n\t #\n\t # Any authenticated user gets this permission. There's generally\n\t # some other authz check involved in the database query. For\n\t # example, if you're querying the database to \"read\" a \"Project\", we\n\t # should also be checking that. So why do we do this at all? It's\n\t # a belt-and-suspenders measure so that if we somehow introduced an\n\t # unauthenticated code path that hits the database, it cannot be\n\t # used to DoS the database because we won't allow the operation to\n\t # make the query. (As long as the code path _is_ authenticated, we\n\t # can use throttling mechanisms to prevent DoS.)\n\t \"query\",\n\n\t # \"modify\" is required to populate database data that's delivered\n\t # with the system. It should also be required for schema changes,\n\t # when we support those. This is separate from \"query\" so that we\n\t # cannot accidentally invoke these code paths from API calls and\n\t # other general functions.\n\t \"modify\"\n\t];\n}\n\n# All authenticated users have the \"query\" permission on the database.\nhas_permission(_actor: AuthenticatedActor, \"query\", _resource: Database);\n\n# The \"db-init\" user is the only one with the \"modify\" permission.\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"modify\", _resource: Database);\nhas_permission(USER_DB_INIT: AuthenticatedActor, \"create_child\", _resource: IpPoolList);\n# It also has \"admin\" on the internal silo to populate it with built-in resources.\n# TODO-completeness: actually limit to just internal silo and not all silos\nhas_role(USER_DB_INIT: AuthenticatedActor, \"admin\", _silo: Silo);\n\n# Allow the internal API admin permissions on all silos.\nhas_role(USER_INTERNAL_API: AuthenticatedActor, \"admin\", _silo: Silo);\n\nresource WebhookSecret {\n\tpermissions = [ \"read\", \"modify\" ];\n\trelations = { parent_alert_receiver: AlertReceiver };\n\n\t\"read\" if \"read\" on \"parent_alert_receiver\";\n\t\"modify\" if \"modify\" on \"parent_alert_receiver\";\n}\n\nhas_relation(rx: AlertReceiver, \"parent_alert_receiver\", secret: WebhookSecret)\n\tif secret.alert_receiver = rx;\n\nresource AlertClassList {\n\tpermissions = [ \"list_children\" ];\n\trelations = { parent_fleet: Fleet };\n\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\n\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: AlertClassList)\n\tif collection.fleet = fleet;\n\nresource ScimClientBearerTokenList {\n\tpermissions = [ \"create_child\", \"list_children\" ];\n\trelations = { parent_silo: Silo, parent_fleet: Fleet };\n\n\t# Silo-level roles grant privileges for SCIM client tokens.\n # These are all admin because being able to create these tokens would allow\n # a user to grant themselves admin by modifying group membership through SCIM calls\n\t\"create_child\" if \"admin\" on \"parent_silo\";\n\t\"list_children\" if \"admin\" on \"parent_silo\";\n\n # Fleet-level roles also grant privileges for SCIM client tokens, for\n # configuration before silo admins are present.\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\t\"list_children\" if \"admin\" on \"parent_fleet\";\n}\nhas_relation(silo: Silo, \"parent_silo\", scim_client_bearer_token_list: ScimClientBearerTokenList)\n\tif scim_client_bearer_token_list.silo = silo;\nhas_relation(fleet: Fleet, \"parent_fleet\", collection: ScimClientBearerTokenList)\n\tif collection.silo.fleet = fleet;\n\n# VpcList is a synthetic resource for controlling VPC creation.\n# Unlike other project resources, VPC creation requires the full \"collaborator\"\n# role rather than \"limited-collaborator\", enforcing the networking restriction.\n# This allows organizations to restrict who can reconfigure the network topology\n# while still allowing users with limited-collaborator to work with compute\n# resources (instances, disks, etc.) within the existing network.\nresource VpcList {\n\tpermissions = [ \"list_children\", \"create_child\" ];\n\n\trelations = { containing_project: Project };\n\n\t\"list_children\" if \"read\" on \"containing_project\";\n\t\"create_child\" if \"collaborator\" on \"containing_project\";\n}\nhas_relation(project: Project, \"containing_project\", collection: VpcList)\n\tif collection.project = project;\n\n# Describes the policy for accessing \"/v1/system/subnet-pools\" in the API\nresource SubnetPoolList {\n\tpermissions = [\n\t \"list_children\",\n\t \"modify\",\n\t \"create_child\",\n\t];\n\n\t# Fleet Administrators can create or modify the Subnet Pools list.\n\trelations = { parent_fleet: Fleet };\n\t\"modify\" if \"admin\" on \"parent_fleet\";\n\t\"create_child\" if \"admin\" on \"parent_fleet\";\n\n\t# Fleet Viewers can list External Subnet Pools\n\t\"list_children\" if \"viewer\" on \"parent_fleet\";\n}\nhas_relation(fleet: Fleet, \"parent_fleet\", subnet_pool_list: SubnetPoolList)\n\tif subnet_pool_list.fleet = fleet;\n\n\n\n resource Disk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Disk)\n if child.project = parent;\n \n\n resource Snapshot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Snapshot)\n if child.project = parent;\n \n\n resource ProjectImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ProjectImage)\n if child.project = parent;\n \n\n resource AffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AffinityGroup)\n if child.project = parent;\n \n\n resource AntiAffinityGroup {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: AntiAffinityGroup)\n if child.project = parent;\n \n\n resource Instance {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Instance)\n if child.project = parent;\n \n\n resource IpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: IpPool)\n if child.fleet = fleet;\n \n\n resource InstanceNetworkInterface {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Instance\n };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InstanceNetworkInterface)\n if has_relation(project, \"containing_project\", child.instance);\n\n has_relation(parent: Instance, \"parent\", child: InstanceNetworkInterface)\n if child.instance = parent;\n \n\n resource Vpc {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: Vpc)\n if child.project = parent;\n \n\n resource VpcRouter {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcRouter)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcRouter)\n if child.vpc = parent;\n \n\n resource InternetGateway {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGateway)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: InternetGateway)\n if child.vpc = parent;\n \n\n resource InternetGatewayIpPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpPool)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpPool)\n if child.internet_gateway = parent;\n \n\n resource InternetGatewayIpAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: InternetGateway\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: InternetGatewayIpAddress)\n if has_relation(project, \"containing_project\", child.internet_gateway);\n\n has_relation(parent: InternetGateway, \"parent\", child: InternetGatewayIpAddress)\n if child.internet_gateway = parent;\n \n\n resource RouterRoute {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: VpcRouter\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: RouterRoute)\n if has_relation(project, \"containing_project\", child.vpc_router);\n\n has_relation(parent: VpcRouter, \"parent\", child: RouterRoute)\n if child.vpc_router = parent;\n \n\n resource VpcSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = {\n containing_project: Project,\n parent: Vpc\n };\n\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(project: Project, \"containing_project\", child: VpcSubnet)\n if has_relation(project, \"containing_project\", child.vpc);\n\n has_relation(parent: Vpc, \"parent\", child: VpcSubnet)\n if child.vpc = parent;\n \n\n resource FloatingIp {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: FloatingIp)\n if child.project = parent;\n \n\n resource ExternalSubnet {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_project: Project };\n \"list_children\" if \"viewer\" on \"containing_project\";\n \"read\" if \"viewer\" on \"containing_project\";\n \"modify\" if \"limited-collaborator\" on \"containing_project\";\n \"create_child\" if \"limited-collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ExternalSubnet)\n if child.project = parent;\n \n\n resource Image {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: Image)\n if child.silo = parent;\n \n\n resource SiloImage {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n\n relations = { containing_silo: Silo };\n \"list_children\" if \"viewer\" on \"containing_silo\";\n \"read\" if \"viewer\" on \"containing_silo\";\n \"modify\" if \"collaborator\" on \"containing_silo\";\n \"create_child\" if \"collaborator\" on \"containing_silo\";\n }\n\n has_relation(parent: Silo, \"containing_silo\", child: SiloImage)\n if child.silo = parent;\n \n\n resource AddressLot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AddressLot)\n if child.fleet = fleet;\n \n\n resource Blueprint {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Blueprint)\n if child.fleet = fleet;\n \n\n resource LoopbackAddress {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: LoopbackAddress)\n if child.fleet = fleet;\n \n\n\n resource ConsoleSession {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: ConsoleSession)\n if child.fleet = fleet;\n \n\n resource DeviceAuthRequest {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAuthRequest)\n if child.fleet = fleet;\n \n\n resource DeviceAccessToken {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: DeviceAccessToken)\n if child.fleet = fleet;\n \n\n resource PhysicalDisk {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: PhysicalDisk)\n if child.fleet = fleet;\n \n\n resource Rack {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Rack)\n if child.fleet = fleet;\n \n\n\n\n\n\n resource SupportBundle {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SupportBundle)\n if child.fleet = fleet;\n \n\n\n\n resource Sled {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Sled)\n if child.fleet = fleet;\n \n\n resource SubnetPool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: SubnetPool)\n if child.fleet = fleet;\n \n\n resource TufRepo {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufRepo)\n if child.fleet = fleet;\n \n\n resource TufArtifact {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufArtifact)\n if child.fleet = fleet;\n \n\n resource TufTrustRoot {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: TufTrustRoot)\n if child.fleet = fleet;\n \n\n resource Alert {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Alert)\n if child.fleet = fleet;\n \n\n resource AlertReceiver {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: AlertReceiver)\n if child.fleet = fleet;\n \n\n\n resource Zpool {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Zpool)\n if child.fleet = fleet;\n \n\n resource Service {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: Service)\n if child.fleet = fleet;\n \n\n resource UserBuiltin {\n permissions = [\n \"list_children\",\n \"modify\",\n \"read\",\n \"create_child\",\n ];\n \n relations = { parent_fleet: Fleet };\n \"list_children\" if \"viewer\" on \"parent_fleet\";\n \"read\" if \"viewer\" on \"parent_fleet\";\n \"modify\" if \"admin\" on \"parent_fleet\";\n \"create_child\" if \"admin\" on \"parent_fleet\";\n }\n has_relation(fleet: Fleet, \"parent_fleet\", child: UserBuiltin)\n if child.fleet = fleet;\n \n\n"} {"msg":"Setting up resolver using DNS servers for subnet: Ipv6Subnet { net: Ipv6Net { addr: fd00:1122:3344::, width: 48 } }","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.214061744Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:233"} {"msg":"new DNS resolver","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.214091555Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"DnsResolver","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"internal-dns/resolver/src/resolver.rs:144","addresses":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"Setting up qorb database pool from DNS","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.214172056Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/src/context.rs:289","dns_addrs":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53]"} {"msg":"registered USDT probes","v":0,"name":"nexus","level":20,"time":"2026-06-15T22:53:03.21437848Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038"} {"msg":"Found schema version is older than desired","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:03.258279748Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:412"} {"msg":"No db_metadata_nexus records exist - skipping access check","v":0,"name":"nexus","level":40,"time":"2026-06-15T22:53:03.280915654Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:348","explanation":"This is expected during initial deployment or before migration","nexus_id":"ad7cec44-a51d-422e-b617-a4a6bf3d7038 (omicron_zone)"} {"msg":"Datastore should be updated before usage","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.280955355Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:376"} {"msg":"Database schema is out of date. Attempting upgrade.","v":0,"name":"nexus","level":30,"time":"2026-06-15T22:53:03.282693226Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"desired_version":"269.0.0","found_version":"268.0.0","component":"datastore","component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/db_metadata.rs:590"} {"msg":"Failed to update schema version (permanent error, will not retry)","v":0,"name":"nexus","level":50,"time":"2026-06-15T22:53:03.282717077Z","hostname":"oxz_nexus_ad7cec44-a51d-422e-b617-a4a6bf3d7038","pid":24005,"component":"nexus","component":"ServerContext","name":"ad7cec44-a51d-422e-b617-a4a6bf3d7038","file":"nexus/db-queries/src/db/datastore/mod.rs:385","error":"Desired version 269.0.0 was not found in known versions"} nexus: Failed to update schema version: Desired version 269.0.0 was not found in known versions [ Jun 15 22:53:03 Stopping because all processes in service exited. ] [ Jun 15 22:53:03 Executing stop method (:kill). ] [ Jun 15 22:53:03 Restarting too quickly, changing state to maintenance. ]