{"msg":"cockroach temporary directory: /var/tmp/omicron_tmp/.tmpogsiZG","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:05.924334723Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"cockroach: copying from seed tarball (/var/tmp/omicron_tmp/crdb-base-build/0ba558b6703680b8ede35fabd6978a943490bd8054f72957a6e548a757ea0cf2.tar) to storage directory (/var/tmp/omicron_tmp/.tmpogsiZG/data)","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:05.924393676Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"cockroach command line: cockroach start-single-node --insecure --http-addr=:0 --store=path=/var/tmp/omicron_tmp/.tmpogsiZG/data,ballast-size=0 --listen-addr [::1]:0 --listening-url-file /var/tmp/omicron_tmp/.tmpogsiZG/listen-url","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:05.937918543Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"cockroach environment: BUILDOMAT_JOB_ID=01HPMN2STWTAWNNTNSRX3P7732 BUILDOMAT_TASK_ID=4 CARGO=/home/build/.rustup/toolchains/1.74.1-x86_64-unknown-linux-gnu/bin/cargo CARGO_HOME=/home/build/.cargo CARGO_INCREMENTAL=0 CARGO_MANIFEST_DIR=/work/oxidecomputer/omicron/nexus/db-queries CARGO_PKG_AUTHORS= CARGO_PKG_DESCRIPTION= CARGO_PKG_HOMEPAGE= CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE= CARGO_PKG_NAME=nexus-db-queries CARGO_PKG_REPOSITORY= CARGO_PKG_RUST_VERSION= CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE= CI=true CRDB_SEED_TAR=/var/tmp/omicron_tmp/crdb-base-build/0ba558b6703680b8ede35fabd6978a943490bd8054f72957a6e548a757ea0cf2.tar GITHUB_BRANCH=order-next-item-subquery GITHUB_REF=refs/heads/order-next-item-subquery GITHUB_REPOSITORY=oxidecomputer/omicron GITHUB_SHA=604b19b55a25857d0a501c266b1b25941fa11b3e GOTRACEBACK=crash HOME=/home/build LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LD_LIBRARY_PATH=/work/oxidecomputer/omicron/target/debug/build/blake3-feeaa7149c3596f1/out:/work/oxidecomputer/omicron/target/debug/build/bzip2-sys-a48f149f01e13be4/out/lib:/work/oxidecomputer/omicron/target/debug/build/ring-36a1c9477f8b2f8d/out:/work/oxidecomputer/omicron/target/debug/build/ring-ba6b6ec6a6f9aa54/out:/work/oxidecomputer/omicron/target/debug/build/tofino-d74860998be2bf98/out:/work/oxidecomputer/omicron/target/debug/deps:/work/oxidecomputer/omicron/target/debug:/home/build/.rustup/toolchains/1.74.1-x86_64-unknown-linux-gnu/lib LOGNAME=build NEXTEST=1 NEXTEST_EXECUTION_MODE=process-per-test NEXTEST_LD_LIBRARY_PATH=/work/oxidecomputer/omicron/target/debug/build/blake3-feeaa7149c3596f1/out:/work/oxidecomputer/omicron/target/debug/build/bzip2-sys-a48f149f01e13be4/out/lib:/work/oxidecomputer/omicron/target/debug/build/ring-36a1c9477f8b2f8d/out:/work/oxidecomputer/omicron/target/debug/build/ring-ba6b6ec6a6f9aa54/out:/work/oxidecomputer/omicron/target/debug/build/tofino-d74860998be2bf98/out:/work/oxidecomputer/omicron/target/debug/deps:/work/oxidecomputer/omicron/target/debug:/home/build/.rustup/toolchains/1.74.1-x86_64-unknown-linux-gnu/lib NEXTEST_RUN_ID=3d3fc513-6fdb-4fb5-9570-45efa6c0d5c6 OUT_DIR=/work/oxidecomputer/omicron/target/debug/build/nexus-db-queries-fe99d87e837cdda9/out PATH=/work/oxidecomputer/omicron/out/mgd/root/opt/oxide/mgd/bin:/work/oxidecomputer/omicron/out/dendrite-stub/bin:/work/oxidecomputer/omicron/out/clickhouse:/work/oxidecomputer/omicron/out/cockroachdb/bin:/home/build/.cargo/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ooce/bin:/opt/ooce/sbin PWD=/work/oxidecomputer/omicron RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS=-D warnings RUSTFLAGS=-D warnings RUSTUP_HOME=/home/build/.rustup RUSTUP_TOOLCHAIN=1.74.1-x86_64-unknown-linux-gnu RUST_BACKTRACE=1 RUST_RECURSION_COUNT=1 SHLVL=1 SSL_CERT_DIR=/usr/lib/ssl/certs SSL_CERT_FILE=/usr/lib/ssl/certs/ca-certificates.crt TMPDIR=/var/tmp/omicron_tmp TZ=UTC USER=build __NEXTEST_ATTEMPT=1 __NEXTEST_ORIGINAL_CARGO_MANIFEST_DIR=/work/oxidecomputer/omicron/nexus/db-queries","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:05.937996808Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"cockroach pid: 22423","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:06.984780723Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"cockroach listen URL: postgresql://root@[::1]:33409/omicron?sslmode=disable","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:06.984844946Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"database connection pool","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:06.984874778Z","hostname":"ip-10-150-1-168","pid":22405,"component":"db::Pool","database_url":"postgresql://root@[::1]:33409/omicron?sslmode=disable"} {"msg":"Compatible database schema: 33.0.1","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799301148Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799595864Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Action"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799649727Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.79969759Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799764604Z","hostname":"ip-10-150-1-168","pid":22405,"class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799829127Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Database"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799900081Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.799949353Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800005386Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800055879Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800101842Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800147394Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800190666Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800245599Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800289482Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800333524Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Project"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800390327Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Disk"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.80043846Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800499383Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800556066Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Instance"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800620009Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800671102Z","hostname":"ip-10-150-1-168","pid":22405,"class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.800731645Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801643284Z","hostname":"ip-10-150-1-168","pid":22405,"class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801690237Z","hostname":"ip-10-150-1-168","pid":22405,"class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.80174869Z","hostname":"ip-10-150-1-168","pid":22405,"class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801793133Z","hostname":"ip-10-150-1-168","pid":22405,"class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801830744Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Image"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801866916Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801909209Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801947711Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.801984213Z","hostname":"ip-10-150-1-168","pid":22405,"class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802031745Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802091009Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802143401Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802180513Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802219325Z","hostname":"ip-10-150-1-168","pid":22405,"class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802272958Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Rack"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802333222Z","hostname":"ip-10-150-1-168","pid":22405,"class":"RoleBuiltin"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.802405675Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803398759Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Silo"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803473523Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803508174Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803538596Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803567948Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803598899Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Sled"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803649222Z","hostname":"ip-10-150-1-168","pid":22405,"class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803698435Z","hostname":"ip-10-150-1-168","pid":22405,"class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803740747Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.80379132Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Service"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803831202Z","hostname":"ip-10-150-1-168","pid":22405,"class":"UserBuiltin"} {"msg":"full Oso configuration","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.803862393Z","hostname":"ip-10-150-1-168","pid":22405,"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":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.810692531Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.810745693Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.812106006Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in users","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.812349189Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.812403982Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.812452995Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.812653636Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 5 built-in users","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.853779215Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.85385463Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.853899902Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.855776223Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.85591688Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.855985684Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.856036967Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.856331153Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 10 built-in roles","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.883588307Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.884092775Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.884153688Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.885365143Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in role assignments","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.885831408Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.885880871Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.885929493Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.885972605Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 4 built-in role assignments","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.917462428Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.917538432Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.917583014Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.919092405Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in silos","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.920254707Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.920287729Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.920313221Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.920335892Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 2 built-in silos","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:07.9517482Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.951815314Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.951862286Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.952297569Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.968348511Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.96869337Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.970458365Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in projects","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.970502117Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.970529999Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.97055534Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.971013265Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.983097355Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.983181879Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.983215871Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.983242942Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.983919449Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.992090707Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.992155291Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.992189963Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.992535682Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.993490203Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.996175907Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.996241761Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.996274242Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.996299194Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.996321865Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.996661743Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.997988484Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:07.998026246Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.998050968Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.99808697Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:07.998856831Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.001287912Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.002168159Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.002203581Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.002227862Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created built-in services project","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.044533595Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.044608799Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.044650531Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.046251817Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in VPCs","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.046310071Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.046345102Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.046409476Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.046754975Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.0650856Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.065157854Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.065733204Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.066752349Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.067297809Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.067359492Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.067409285Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.067437806Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.068135404Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.068185946Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.069123407Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.069157468Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.069329068Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.06936472Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.069397741Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.069722149Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.070498391Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.07439891Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"successful lookup of siloed resource \"Project\" using built-in user","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.074441942Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.074465634Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.074531287Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.074556769Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.07458051Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.075090637Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.083199793Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.083249716Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.083322429Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.083941613Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.084858222Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.084939916Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.08500601Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.085285015Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.087310274Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.090952549Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.090996392Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.091024993Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.091416784Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.125232981Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.125323556Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.125936099Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.143517944Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ByName(\"oxide-services\") }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.143598879Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.143646791Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.143698754Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.144234973Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.145200445Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.145243607Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.145273729Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.145768765Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.146696465Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.146740567Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.146773589Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.147218363Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.148221947Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.153535972Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ByName(\"oxide-services\") }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.153597905Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.153661229Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.154075631Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.161414605Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"VpcRouter { parent: Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ByName(\"oxide-services\") }, key: 001de000-074c-4000-8000-000000000001, lookup_type: ById(001de000-074c-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.161518991Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.161562603Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.161601326Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.161976206Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.168631423Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.168691076Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.16876367Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.169353052Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.170420639Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.170482923Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.170538515Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.171008671Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.171958452Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.17899344Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"VpcRouter { parent: Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ByName(\"oxide-services\") }, key: 001de000-074c-4000-8000-000000000001, lookup_type: ById(001de000-074c-4000-8000-000000000001) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.179113546Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.179151178Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.179766031Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create built-in VPC firewall rules","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.217252436Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.217325399Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.217360101Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.217997336Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.225454817Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.22551482Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.227237822Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.227318237Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.22737383Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.227638424Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.228764095Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.229002547Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.22905685Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.229102373Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.229329405Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.230198721Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.230321058Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.230374061Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.230646445Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.231611327Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.231679911Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.231735384Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.232123045Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.233113058Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.237787269Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"successful lookup of siloed resource \"Vpc\" using built-in user","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.237838382Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.237888985Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"Read","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.238668067Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.238714199Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.238753841Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.238783343Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.248834773Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.248940148Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.248997331Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.249055654Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.250200086Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.251069853Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.251108535Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.251133006Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.251604711Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.257234154Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"Read","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.25735454Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.257494738Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.258115081Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.279946554Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.280002247Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.28004931Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.280082322Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.280711875Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.281846927Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.281900699Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.282515682Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.282556145Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.283155597Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.283203249Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.283276473Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.283797311Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.284721561Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.290021996Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.290122491Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.290174974Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.290510242Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created built-in VPC firewall rules","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.309374796Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"attempting to create built-in VPC Subnets","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.309431589Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.309471481Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.309508103Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.311268688Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.323550487Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.323641842Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.324083626Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.325230758Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.325289391Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.325737035Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.326839174Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.326880326Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.326915818Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.3269485Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.327436156Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.328411408Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.329026731Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.329086105Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.329132337Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.329683587Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.330407896Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.330444427Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.330467079Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.330905822Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.335758143Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"successful lookup of siloed resource \"Vpc\" using built-in user","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.335864879Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.335915952Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.335960444Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.336323793Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.347129284Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.347298044Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.347357127Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.347405459Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.347904576Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.349123111Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.349169644Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.349200886Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.349593637Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.350448413Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.350508016Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.350545838Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.350882936Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.352134923Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.357076519Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.363745097Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.363791399Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.364315918Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.365214866Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.365547874Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.365597607Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.365651689Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.36584516Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.376180995Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.376233298Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.3762767Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.376921945Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.379375717Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.379504704Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.379571458Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.380105236Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.38128254Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.385330947Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.391075846Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.391121988Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.39152366Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.392497002Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.392985588Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-4401-4000-8000-000000000000","resource_type":"Project","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.393044202Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.393090974Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.393224201Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.406261921Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000001","resource_type":"Silo","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.406394559Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.406440041Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.407085626Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.408008925Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.408407827Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.40846852Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.408589257Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.409431202Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.413970586Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Vpc { parent: Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000001, lookup_type: ById(001de000-5110-4000-8000-000000000001) }, key: 001de000-4401-4000-8000-000000000000, lookup_type: ById(001de000-4401-4000-8000-000000000000) }, key: 001de000-074c-4000-8000-000000000000, lookup_type: ById(001de000-074c-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created built-in services vpc subnets","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.42185532Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"created built-in services vpc","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.421920803Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.421961915Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.422006228Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.423895589Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Modify","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"attempting to create silo users","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.423967653Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.424015016Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.424061228Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.424495072Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 2 silo users","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.444918738Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"attempting to create silo user role assignments","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.445064596Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.445121829Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.445191913Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.445663318Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"created 2 silo user role assignments","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.47398264Z","hostname":"ip-10-150-1-168","pid":22405} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.474066625Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.474101247Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.474669997Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.482828535Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.482894039Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.483514772Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.505494764Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"IpPoolList","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.505599679Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.505645752Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.505674353Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.506248454Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.519901607Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.522090105Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"IpPoolList","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.522190721Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.522238063Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.522683887Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.545670092Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"IpPoolList","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.545780958Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.545833611Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.545864253Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.546489736Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.55325491Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.554968952Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"IpPoolList","action":"CreateChild","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.555036406Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.55511368Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.555467619Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::UserBuiltin { user_builtin_id: 001de000-05e4-4000-8000-000000000001, .. })"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.615843933Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Action"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.615914786Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AnyActor"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.615951608Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AuthenticatedActor"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.61598631Z","hostname":"ip-10-150-1-168","pid":22405,"class":"BlueprintConfig"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.616020672Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Database"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.616055754Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DnsConfig"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.616089706Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Fleet"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623336465Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Inventory"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623386178Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IpPoolList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.62342051Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ConsoleSessionList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623452222Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAuthRequestList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623482473Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloCertificateList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623512645Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloIdentityProviderList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623542547Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloUserList"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623571968Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Project"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.62361265Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Disk"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623647872Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Snapshot"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623679234Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ProjectImage"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623708705Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Instance"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623738507Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IpPool"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623778879Z","hostname":"ip-10-150-1-168","pid":22405,"class":"InstanceNetworkInterface"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623830142Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Vpc"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.623862804Z","hostname":"ip-10-150-1-168","pid":22405,"class":"VpcRouter"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.624856297Z","hostname":"ip-10-150-1-168","pid":22405,"class":"RouterRoute"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.624895849Z","hostname":"ip-10-150-1-168","pid":22405,"class":"VpcSubnet"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.624925881Z","hostname":"ip-10-150-1-168","pid":22405,"class":"FloatingIp"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.624955743Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Image"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.624984134Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloImage"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625013166Z","hostname":"ip-10-150-1-168","pid":22405,"class":"AddressLot"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625049177Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Blueprint"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625078749Z","hostname":"ip-10-150-1-168","pid":22405,"class":"LoopbackAddress"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625107001Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Certificate"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625135322Z","hostname":"ip-10-150-1-168","pid":22405,"class":"ConsoleSession"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625163274Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAuthRequest"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625191375Z","hostname":"ip-10-150-1-168","pid":22405,"class":"DeviceAccessToken"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625219597Z","hostname":"ip-10-150-1-168","pid":22405,"class":"PhysicalDisk"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625247838Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Rack"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625293001Z","hostname":"ip-10-150-1-168","pid":22405,"class":"RoleBuiltin"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625342763Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SshKey"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625381986Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Silo"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625412857Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloUser"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625443579Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SiloGroup"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.62547302Z","hostname":"ip-10-150-1-168","pid":22405,"class":"IdentityProvider"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625501512Z","hostname":"ip-10-150-1-168","pid":22405,"class":"SamlIdentityProvider"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625530423Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Sled"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625566975Z","hostname":"ip-10-150-1-168","pid":22405,"class":"TufRepo"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625606727Z","hostname":"ip-10-150-1-168","pid":22405,"class":"TufArtifact"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.62565439Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Zpool"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.625693792Z","hostname":"ip-10-150-1-168","pid":22405,"class":"Service"} {"msg":"registering Oso class","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.626563009Z","hostname":"ip-10-150-1-168","pid":22405,"class":"UserBuiltin"} {"msg":"full Oso configuration","v":0,"name":"test_detect_ip_exhaustion","level":30,"time":"2024-02-14T20:43:08.626747219Z","hostname":"ip-10-150-1-168","pid":22405,"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":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.628515764Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.628549196Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000000","resource_type":"Silo","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.628574217Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.628598648Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.628619529Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.644152504Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.644217947Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.644258369Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.644872332Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.65860019Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {(Fleet, 001de000-1334-4000-8000-000000000000, \"admin\"), (Silo, 001de000-5110-4000-8000-000000000000, \"admin\")} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.661163448Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.661212761Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.661240952Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.661687086Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.679214168Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.679296432Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.679839631Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.7118315Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.711901564Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.712488916Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.714010408Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.71406204Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.714088562Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.714883844Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }, key: 42585f98-6a16-4684-b902-c6419f36c0e5, lookup_type: ById(42585f98-6a16-4684-b902-c6419f36c0e5) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.715479746Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"42585f98-6a16-4684-b902-c6419f36c0e5","resource_type":"Project","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.715517518Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.715565921Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.715597013Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.719326463Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000000","resource_type":"Silo","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.719398147Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.7194586Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.720096604Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.721651438Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.722510964Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.722554096Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.722583138Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.723817834Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {(Fleet, 001de000-1334-4000-8000-000000000000, \"admin\"), (Silo, 001de000-5110-4000-8000-000000000000, \"admin\")} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.727326513Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }, key: 42585f98-6a16-4684-b902-c6419f36c0e5, lookup_type: ById(42585f98-6a16-4684-b902-c6419f36c0e5) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.727476921Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }, key: 42585f98-6a16-4684-b902-c6419f36c0e5, lookup_type: ById(42585f98-6a16-4684-b902-c6419f36c0e5) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.727531634Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"42585f98-6a16-4684-b902-c6419f36c0e5","resource_type":"Project","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.727586757Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.727630039Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.727873172Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.729289778Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-5110-4000-8000-000000000000","resource_type":"Silo","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.729959164Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.729991856Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.730014467Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"loading roles","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.731321907Z","hostname":"ip-10-150-1-168","pid":22405,"resource_id":"001de000-1334-4000-8000-000000000000","resource_type":"Fleet","actor":"Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. }"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.7317365Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.731787852Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.731834525Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.732933204Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {(Fleet, 001de000-1334-4000-8000-000000000000, \"admin\"), (Silo, 001de000-5110-4000-8000-000000000000, \"admin\")} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.736003069Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Project { parent: Silo { parent: Fleet, key: 001de000-5110-4000-8000-000000000000, lookup_type: ById(001de000-5110-4000-8000-000000000000) }, key: 42585f98-6a16-4684-b902-c6419f36c0e5, lookup_type: ById(42585f98-6a16-4684-b902-c6419f36c0e5) }","action":"CreateChild","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.736054642Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.736088854Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.736447213Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"authorize begin","v":0,"name":"test_detect_ip_exhaustion","level":10,"time":"2024-02-14T20:43:08.803379969Z","hostname":"ip-10-150-1-168","pid":22405,"resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"} {"msg":"roles","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.803440233Z","hostname":"ip-10-150-1-168","pid":22405,"roles":"RoleSet { roles: {} }"} {"msg":"authorize result","v":0,"name":"test_detect_ip_exhaustion","level":20,"time":"2024-02-14T20:43:08.804181652Z","hostname":"ip-10-150-1-168","pid":22405,"result":"Ok(())","resource":"Database","action":"Query","actor":"Some(Actor::SiloUser { silo_user_id: 001de000-05e4-4000-8000-000000004007, silo_id: 001de000-5110-4000-8000-000000000000, .. })"}