[ Aug 27 23:44:38 Enabled. ] [ Aug 27 23:44:38 Rereading configuration. ] [ Aug 27 23:44:40 Rereading configuration. ] [ Aug 27 23:44:54 Executing start method ("ctrun -l child -o noorphan,regent /opt/oxide/omicron-nexus/bin/nexus /var/svc/manifest/site/nexus/config.toml &"). ] [ Aug 27 23:44:54 Method "start" exited with status 0. ] note: configured to log to "/dev/stdout" {"msg":"registered DTrace probes","v":0,"name":"nexus","level":20,"time":"2024-08-27T23:44:54.957804317Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138} {"msg":"setting up nexus server","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.960960098Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/src/lib.rs:86"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969143439Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Action"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969198159Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969206439Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.96924892Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.96928185Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Database"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.96928871Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.96931936Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.96932587Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969356371Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969387591Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969394391Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969430882Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969483262Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969496152Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969529672Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Project"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969536603Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Disk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969571833Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969604433Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969611813Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Instance"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969642093Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969673894Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969680214Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969711844Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969718664Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969752505Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969794705Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969804405Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Image"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969865476Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969927866Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969942336Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969976607Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.969983537Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970016577Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970049108Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970055948Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970087358Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970128798Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Rack"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970135629Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"RoleBuiltin"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970172359Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970179039Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Silo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970210139Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.97028749Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.97029405Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.97032611Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970358021Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Sled"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970364401Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970397381Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970403871Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970436061Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"Service"} {"msg":"registering Oso class","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970473812Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/auth/src/authz/oso_generic.rs:68","class":"UserBuiltin"} {"msg":"full Oso configuration","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.970480982Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","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)\n# - silo.viewer (can read most resources within the Silo)\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)\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.\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\", \"viewer\" ];\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\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 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\", \"viewer\" ];\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\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\"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 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\t\"modify\" if \"modify\" on \"silo_user\";\n}\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\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 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 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 silo in actor.silo and silo.fleet = ip_pool.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# 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 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# 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);\nhas_permission(_actor: AuthenticatedActor, \"modify\", _device_auth: DeviceAuthRequest);\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\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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: ProjectImage)\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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"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 \"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 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 \"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 \"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 \"collaborator\" on \"containing_project\";\n \"create_child\" if \"collaborator\" on \"containing_project\";\n }\n\n has_relation(parent: Project, \"containing_project\", child: FloatingIp)\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 resource RoleBuiltin {\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: RoleBuiltin)\n if child.fleet = fleet;\n \n\n\n\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 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 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 "} {"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":"2024-08-27T23:44:54.987041495Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/src/context.rs:214"} {"msg":"new DNS resolver","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.990532409Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"DnsResolver","component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"internal-dns/src/resolver.rs:73","addresses":"[[fd00:1122:3344:1::1]:53, [fd00:1122:3344:2::1]:53, [fd00:1122:3344:3::1]:53, [fd00:1122:3344:4::1]:53, [fd00:1122:3344:5::1]:53]"} {"msg":"Setting up qorb pool from DNS","v":0,"name":"nexus","level":30,"time":"2024-08-27T23:44:54.997480167Z","hostname":"oxz_nexus_8585144e-b855-4b7b-ae74-8c995cbc658b","pid":23138,"component":"ServerContext","name":"8585144e-b855-4b7b-ae74-8c995cbc658b","file":"nexus/src/context.rs:263","dns_addrs":"[\n [fd00:1122:3344:1::1]:53,\n [fd00:1122:3344:2::1]:53,\n [fd00:1122:3344:3::1]:53,\n [fd00:1122:3344:4::1]:53,\n [fd00:1122:3344:5::1]:53,\n]"}