{
  "version": "1.0.0",
  "project": {
    "name": "treetracker-infrastructure",
    "languages": [
      "config",
      "css",
      "dockerfile",
      "enc",
      "env-tfvars",
      "html",
      "javascript",
      "markdown",
      "properties",
      "python",
      "shell",
      "terraform",
      "txt",
      "unknown",
      "yaml"
    ],
    "frameworks": [
      "Docker",
      "Terraform",
      "GitHub Actions"
    ],
    "description": "Cloud infrastructure for the treetracker project.",
    "analyzedAt": "2026-09-03T00:00:00Z",
    "gitCommitHash": "a740d11ffe60cb8d7f05b5006cf80583bd267aa5"
  },
  "nodes": [
    {
      "id": "service:keycloak/lib/docker/Dockerfile",
      "type": "service",
      "name": "Dockerfile",
      "filePath": "keycloak/lib/docker/Dockerfile",
      "summary": "Multi-stage Docker build for the Keycloak identity server, packaging the custom treetracker theme onto the official Keycloak 23.0 image and running it in start-dev mode with health and metrics enabled against a Postgres database.",
      "tags": [
        "containerization",
        "infrastructure",
        "deployment",
        "keycloak",
        "authentication"
      ],
      "complexity": "simple",
      "languageNotes": "Multi-stage build: a builder stage copies the treetracker theme, then the final stage copies /opt/keycloak from the builder to keep the runtime image lean."
    },
    {
      "id": "service:keycloak/lib/docker/Dockerfile:builder",
      "type": "service",
      "name": "builder",
      "filePath": "keycloak/lib/docker/Dockerfile",
      "summary": "Builder stage based on Keycloak 23.0 that sets Postgres DB, health, and metrics env vars and copies the custom treetracker theme into /opt/keycloak/themes.",
      "tags": [
        "containerization",
        "build-stage",
        "keycloak",
        "theme"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/docker/Dockerfile:keycloak",
      "type": "service",
      "name": "keycloak",
      "filePath": "keycloak/lib/docker/Dockerfile",
      "summary": "Final runtime stage that copies the configured Keycloak tree from the builder stage and starts the server via kc.sh in start-dev mode.",
      "tags": [
        "containerization",
        "runtime-stage",
        "keycloak",
        "entrypoint"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/pre-commit.yaml",
      "type": "pipeline",
      "name": "pre-commit.yaml",
      "filePath": ".github/workflows/pre-commit.yaml",
      "summary": "GitHub Actions workflow that runs pre-commit hooks on pull requests and pushes to master, using Terraform setup and the pre-commit action to lint infrastructure code.",
      "tags": [
        "ci-cd",
        "infrastructure",
        "pre-commit",
        "terraform",
        "linting"
      ],
      "complexity": "simple",
      "languageNotes": "Uses continue-on-error so a hook failure does not block the workflow; checks out code and sets up Terraform before running the pre-commit action."
    },
    {
      "id": "step:.github/workflows/pre-commit.yaml:pre-commit",
      "type": "pipeline",
      "name": "pre-commit",
      "filePath": ".github/workflows/pre-commit.yaml",
      "summary": "Job on ubuntu-latest that checks out the repo, sets up Terraform, and runs pre-commit hooks; marked continue-on-error to report issues without failing the build.",
      "tags": [
        "ci-cd",
        "job",
        "pre-commit",
        "linting"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:airflow/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "airflow/README.md",
      "summary": "Guide for installing and configuring Airflow on the Greenstand DigitalOcean Kubernetes clusters using a Helm chart driven by Ansible, including tool setup, cluster access, and playbook execution steps.",
      "tags": [
        "documentation",
        "entry-point",
        "kubernetes",
        "airflow",
        "deployment"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:airflow/airflow-playbook.yml",
      "type": "config",
      "name": "airflow-playbook.yml",
      "filePath": "airflow/airflow-playbook.yml",
      "summary": "Ansible playbook that installs Airflow by applying the local `airflow` role against localhost using a local connection.",
      "tags": [
        "configuration",
        "ansible",
        "airflow",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Runs with connection: local and gather_facts disabled, targeting the localhost-py3 inventory host."
    },
    {
      "id": "config:airflow/ansible.cfg",
      "type": "config",
      "name": "ansible.cfg",
      "filePath": "airflow/ansible.cfg",
      "summary": "Ansible defaults configuration setting the inventory path to ./hosts and pinning the Python 3 interpreter for the Airflow provisioning runs.",
      "tags": [
        "configuration",
        "ansible",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:airflow/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "airflow/namespace.yaml",
      "summary": "Kubernetes manifest that declares the `airflow` namespace used to isolate the Airflow deployment on the cluster.",
      "tags": [
        "configuration",
        "kubernetes",
        "airflow",
        "namespace"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:api_gateway/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "api_gateway/README.md",
      "summary": "Operator guide for the Ambassador API gateway: authenticating to the k8s cluster, installing the Ambassador helm chart via Ansible playbooks, wiring DNS/SSL, and adding basic-auth.",
      "tags": [
        "documentation",
        "api-gateway",
        "kubernetes",
        "ansible",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:api_gateway/ambassador-playbook.yml",
      "type": "config",
      "name": "ambassador-playbook.yml",
      "filePath": "api_gateway/ambassador-playbook.yml",
      "summary": "Ansible playbook that installs the Ambassador operator locally by applying the `ambassador` role against localhost.",
      "tags": [
        "configuration",
        "ansible",
        "playbook",
        "api-gateway",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Local-connection playbook (connection: local) applying a single role to localhost-py3."
    },
    {
      "id": "config:api_gateway/ambassador-auth-playbook.yml",
      "type": "config",
      "name": "ambassador-auth-playbook.yml",
      "filePath": "api_gateway/ambassador-auth-playbook.yml",
      "summary": "Ansible playbook that installs Ambassador basic-auth by applying the `ambassador-auth` role against localhost.",
      "tags": [
        "configuration",
        "ansible",
        "playbook",
        "authentication",
        "security"
      ],
      "complexity": "simple",
      "languageNotes": "Local-connection playbook applying the ambassador-auth role."
    },
    {
      "id": "config:api_gateway/ansible.cfg",
      "type": "config",
      "name": "ansible.cfg",
      "filePath": "api_gateway/ansible.cfg",
      "summary": "Ansible runtime configuration for the api_gateway playbooks: inventory path, disabled host key checking, SSH key, and Python 3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "build-system",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:api_gateway/terraform/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "api_gateway/terraform/README.md",
      "summary": "Step-by-step guide for running the API gateway Terraform: installing Terraform, configuring DigitalOcean Spaces/S3 access keys, sourcing setup_keys.sh, and applying the plan.",
      "tags": [
        "documentation",
        "infrastructure",
        "terraform",
        "runbook"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/dns.tf",
      "type": "resource",
      "name": "dns.tf",
      "filePath": "api_gateway/terraform/dns.tf",
      "summary": "Terraform configuration provisioning DigitalOcean DNS for the ambassador host: a domain record plus a www CNAME record pointing at the load balancer.",
      "tags": [
        "infrastructure",
        "terraform",
        "dns",
        "digitalocean",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Uses DigitalOcean provider resources; the CNAME record references the domain resource attribute, creating an implicit resource dependency."
    },
    {
      "id": "resource:api_gateway/terraform/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "api_gateway/terraform/provider.tf",
      "summary": "Terraform provider configuration declaring and pinning the DigitalOcean provider (v1.22.2) and wiring the do_token variable for authentication.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "digitalocean",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/terraform/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "api_gateway/terraform/setup_keys.sh",
      "summary": "Shell helper that reads DigitalOcean Spaces and AWS credentials from ~/.netrc and exports them as environment variables (including TF_VAR_*) before running Terraform.",
      "tags": [
        "script",
        "shell",
        "infrastructure",
        "credentials",
        "environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/dns.tf:digitalocean_domain.ambassador-host",
      "type": "resource",
      "name": "digitalocean_domain.ambassador-host",
      "filePath": "api_gateway/terraform/dns.tf",
      "lineRange": [
        5,
        8
      ],
      "summary": "DigitalOcean domain resource for the ambassador host, named and pointed at the load balancer IP address via variables.",
      "tags": [
        "infrastructure",
        "dns",
        "digitalocean",
        "domain"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/dns.tf:digitalocean_record.CNAME-www",
      "type": "resource",
      "name": "digitalocean_record.CNAME-www",
      "filePath": "api_gateway/terraform/dns.tf",
      "lineRange": [
        10,
        15
      ],
      "summary": "DigitalOcean www CNAME record aliasing to the root domain, attached to the ambassador-host domain.",
      "tags": [
        "infrastructure",
        "dns",
        "digitalocean",
        "cname"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "api_gateway/terraform/environments/development/backend.tf",
      "summary": "Terraform remote state backend configuration storing the API gateway state in a DigitalOcean Spaces bucket via the S3-compatible protocol.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "DigitalOcean Spaces uses the S3 spec, so credential/metadata validation checks are skipped to pass Terraform validation against a non-AWS endpoint."
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/dns.tf",
      "type": "resource",
      "name": "dns.tf",
      "filePath": "api_gateway/terraform/environments/development/dns.tf",
      "summary": "Declares DigitalOcean DNS domains and records for the treetracker Ambassador ingress hosts across dev, test, and prod environments.",
      "tags": [
        "infrastructure",
        "terraform",
        "dns",
        "digitalocean",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "The dev account centrally controls all DNS records, so test and prod domains are also managed from this environment."
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host",
      "type": "resource",
      "name": "digitalocean_domain.ambassador-host",
      "summary": "DigitalOcean domain dev-k8s.treetracker.org pointing at the development Ambassador load balancer IP.",
      "tags": [
        "dns",
        "digitalocean",
        "domain",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_record.CNAME-www",
      "type": "resource",
      "name": "digitalocean_record.CNAME-www",
      "summary": "CNAME record aliasing www to the apex of the dev Ambassador domain.",
      "tags": [
        "dns",
        "digitalocean",
        "cname-record"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-test",
      "type": "resource",
      "name": "digitalocean_domain.ambassador-host-test",
      "summary": "DigitalOcean domain test-k8s.treetracker.org for the test environment Ambassador host.",
      "tags": [
        "dns",
        "digitalocean",
        "domain",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-prod",
      "type": "resource",
      "name": "digitalocean_domain.ambassador-host-prod",
      "summary": "DigitalOcean domain prod-k8s.treetracker.org for the production environment Ambassador host.",
      "tags": [
        "dns",
        "digitalocean",
        "domain",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/development/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "api_gateway/terraform/environments/development/provider.tf",
      "summary": "Configures the DigitalOcean Terraform provider (pinned to v1.22.2) and its API token input variable for the development environment.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/terraform/environments/development/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "api_gateway/terraform/environments/development/setup_keys.sh",
      "summary": "Sources DigitalOcean Spaces credentials from ~/.netrc and exports them as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY so Terraform can reach the S3-compatible state backend.",
      "tags": [
        "script",
        "shell",
        "credentials",
        "terraform",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:api_gateway/terraform/environments/production/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "api_gateway/terraform/environments/production/backend.tf",
      "summary": "Terraform backend configuration for the production API gateway, storing remote state in a DigitalOcean Spaces (S3-compatible) bucket in the sfo2 region.",
      "tags": [
        "infrastructure",
        "terraform",
        "remote-state",
        "deployment",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the AWS S3 backend against DigitalOcean Spaces; region eu-west-1 is a placeholder to pass validation while actual storage is sfo2, with AWS-specific credential and metadata checks skipped."
    },
    {
      "id": "resource:api_gateway/terraform/environments/production/production.tfvars",
      "type": "resource",
      "name": "production.tfvars",
      "filePath": "api_gateway/terraform/environments/production/production.tfvars",
      "summary": "Production environment variable values for the API gateway Terraform module, setting the public host name and load balancer IP address.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "deployment",
        "environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/terraform/environments/production/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "api_gateway/terraform/environments/production/setup_keys.sh",
      "summary": "Shell helper sourced before Terraform runs to export DigitalOcean Spaces access keys from the user's ~/.netrc as AWS credential environment variables.",
      "tags": [
        "script",
        "shell",
        "credentials",
        "terraform",
        "security"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced, not executed, so the exported AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY persist in the calling shell for the S3-compatible backend."
    },
    {
      "id": "resource:aws_access/terraform/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "aws_access/terraform/backend.tf",
      "summary": "Terraform backend configuration storing the aws_access state in the treetracker-infrastructure S3 bucket (us-east-1).",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Uses an S3 remote backend with a fixed state key 'cdn-info'."
    },
    {
      "id": "resource:aws_access/terraform/providers.tf",
      "type": "resource",
      "name": "providers.tf",
      "filePath": "aws_access/terraform/providers.tf",
      "summary": "Declares the AWS provider (hashicorp/aws ~> 2.0) and pins the region to us-east-1 for the aws_access Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:aws_access/terraform/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "aws_access/terraform/setup_keys.sh",
      "summary": "Shell helper that reads AWS credentials from ~/.netrc and exports them as AWS_* and TF_VAR_* environment variables before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "terraform",
        "bootstrap"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced, not executed, so the exported variables persist in the caller shell."
    },
    {
      "id": "resource:aws_access/terraform/users.tf",
      "type": "resource",
      "name": "users.tf",
      "filePath": "aws_access/terraform/users.tf",
      "summary": "Provisions the CloudFront IAM user (cf_user), its access key, and a broad CloudFront/S3 policy; exports the generated key id and secret as outputs.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "cloudfront",
        "security"
      ],
      "complexity": "moderate",
      "languageNotes": "Access key id and secret are exposed via Terraform outputs, so state must be treated as sensitive."
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-dev.tf",
      "type": "resource",
      "name": "bulk-data-consumer-dev.tf",
      "filePath": "aws_access/terraform/bulk-data-consumer-dev.tf",
      "summary": "Provisions the dev bulk-data-consumer IAM user with an access key and S3 access policy, exporting the key id and secret.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-prod.tf",
      "type": "resource",
      "name": "bulk-data-consumer-prod.tf",
      "filePath": "aws_access/terraform/bulk-data-consumer-prod.tf",
      "summary": "Provisions the prod bulk-data-consumer IAM user with an access key and S3 access policy, exporting the key id and secret.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-test.tf",
      "type": "resource",
      "name": "bulk-data-consumer-test.tf",
      "filePath": "aws_access/terraform/bulk-data-consumer-test.tf",
      "summary": "Provisions the test bulk-data-consumer IAM user with an access key and S3 access policy, exporting the key id and secret.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-tester-test.tf",
      "type": "resource",
      "name": "bulk-data-tester-test.tf",
      "filePath": "aws_access/terraform/bulk-data-tester-test.tf",
      "summary": "Provisions the test bulk-data-tester IAM user with an access key and a broader S3 policy for testing, exporting the key id and secret.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "bulk-data",
        "security"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:aws_access/terraform/cam.tf",
      "type": "resource",
      "name": "cam.tf",
      "filePath": "aws_access/terraform/cam.tf",
      "summary": "Provisions a personal IAM user for 'cam' with an access key and scoped policy, exporting the generated credentials as outputs.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "person-user",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/database-backups.tf",
      "type": "resource",
      "name": "database-backups.tf",
      "filePath": "aws_access/terraform/database-backups.tf",
      "summary": "Provisions the prod database-backups IAM user with an access key and an S3 policy for creating and managing backup buckets/objects, exporting the credentials.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "backup",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/warren.tf",
      "type": "resource",
      "name": "warren.tf",
      "filePath": "aws_access/terraform/warren.tf",
      "summary": "Provisions a personal IAM user for 'warren' with an access key and scoped policy, exporting the generated credentials as outputs.",
      "tags": [
        "infrastructure",
        "terraform",
        "iam",
        "person-user",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/users.tf:aws_iam_user_policy.cloudfront_user_policy",
      "type": "resource",
      "name": "cloudfront_user_policy",
      "filePath": "aws_access/terraform/users.tf",
      "lineRange": [
        21,
        137
      ],
      "summary": "Large inline IAM policy granting the CloudFront user permissions across CloudFront and S3 for CDN operations.",
      "tags": [
        "iam-policy",
        "cloudfront",
        "s3",
        "security"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-dev.tf:aws_iam_user_policy.bulk_data_consumer_dev_policy",
      "type": "resource",
      "name": "bulk_data_consumer_dev_policy",
      "filePath": "aws_access/terraform/bulk-data-consumer-dev.tf",
      "lineRange": [
        17,
        43
      ],
      "summary": "Inline IAM policy granting the dev bulk-data-consumer user scoped S3 access.",
      "tags": [
        "iam-policy",
        "s3",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-prod.tf:aws_iam_user_policy.bulk_data_consumer_prod_policy",
      "type": "resource",
      "name": "bulk_data_consumer_prod_policy",
      "filePath": "aws_access/terraform/bulk-data-consumer-prod.tf",
      "lineRange": [
        17,
        43
      ],
      "summary": "Inline IAM policy granting the prod bulk-data-consumer user scoped S3 access.",
      "tags": [
        "iam-policy",
        "s3",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-consumer-test.tf:aws_iam_user_policy.bulk_data_consumer_test_policy",
      "type": "resource",
      "name": "bulk_data_consumer_test_policy",
      "filePath": "aws_access/terraform/bulk-data-consumer-test.tf",
      "lineRange": [
        17,
        43
      ],
      "summary": "Inline IAM policy granting the test bulk-data-consumer user scoped S3 access.",
      "tags": [
        "iam-policy",
        "s3",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/bulk-data-tester-test.tf:aws_iam_user_policy.bulk_data_tester_test_policy",
      "type": "resource",
      "name": "bulk_data_tester_test_policy",
      "filePath": "aws_access/terraform/bulk-data-tester-test.tf",
      "lineRange": [
        17,
        56
      ],
      "summary": "Inline IAM policy granting the test bulk-data-tester user broader S3 permissions for testing scenarios.",
      "tags": [
        "iam-policy",
        "s3",
        "bulk-data",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/cam.tf:aws_iam_user_policy.cam_person_user_policy",
      "type": "resource",
      "name": "cam_person_user_policy",
      "filePath": "aws_access/terraform/cam.tf",
      "lineRange": [
        17,
        38
      ],
      "summary": "Inline IAM policy defining the scoped permissions for the cam personal user.",
      "tags": [
        "iam-policy",
        "person-user",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/database-backups.tf:aws_iam_user_policy.database_packups_prod_policy",
      "type": "resource",
      "name": "database_packups_prod_policy",
      "filePath": "aws_access/terraform/database-backups.tf",
      "lineRange": [
        17,
        48
      ],
      "summary": "Inline IAM policy granting the database-backups user S3 permissions to create buckets and manage backup objects.",
      "tags": [
        "iam-policy",
        "s3",
        "backup",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:aws_access/terraform/warren.tf:aws_iam_user_policy.warren_person_user_policy",
      "type": "resource",
      "name": "warren_person_user_policy",
      "filePath": "aws_access/terraform/warren.tf",
      "lineRange": [
        17,
        38
      ],
      "summary": "Inline IAM policy defining the scoped permissions for the warren personal user.",
      "tags": [
        "iam-policy",
        "person-user",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:bastion/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "bastion/backend.tf",
      "summary": "Terraform backend configuration storing bastion state in a DigitalOcean Spaces bucket using the S3-compatible protocol.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "digitalocean",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the S3 backend against DigitalOcean Spaces, skipping AWS-specific validation checks with a placeholder eu-west-1 region."
    },
    {
      "id": "resource:bastion/bastion.tf",
      "type": "resource",
      "name": "bastion.tf",
      "filePath": "bastion/bastion.tf",
      "summary": "Instantiates the external Greenstand terraform-digitalocean-bastion module to provision a production bastion host in the nyc1 region.",
      "tags": [
        "infrastructure",
        "terraform",
        "bastion",
        "digitalocean",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:bastion/bastion.tf:module.bastion",
      "type": "resource",
      "name": "module.bastion",
      "filePath": "bastion/bastion.tf",
      "lineRange": [
        1,
        7
      ],
      "summary": "Bastion module block sourced from github.com/Greenstand/terraform-digitalocean-bastion, configured with region, prefix, SSH keys, and tags.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "bastion"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:bastion/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "bastion/provider.tf",
      "summary": "Declares the DigitalOcean provider (pinned to v1.22.2) and the do_token variable used to authenticate the bastion deployment.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "digitalocean",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:ckan/roles/ckan/files/ckan-database-endpoint.yaml",
      "type": "config",
      "name": "ckan-database-endpoint.yaml",
      "filePath": "ckan/roles/ckan/files/ckan-database-endpoint.yaml",
      "summary": "Kubernetes Endpoints manifest that maps the ckan-postgres service to an external managed PostgreSQL instance at IP 159.65.107.222 on port 25060.",
      "tags": [
        "configuration",
        "infrastructure",
        "database",
        "kubernetes"
      ],
      "complexity": "simple",
      "languageNotes": "Manual Endpoints object bridges a selector-less Service to an external database endpoint."
    },
    {
      "id": "config:ckan/roles/ckan/files/ckan-database-service.yaml",
      "type": "config",
      "name": "ckan-database-service.yaml",
      "filePath": "ckan/roles/ckan/files/ckan-database-service.yaml",
      "summary": "Kubernetes Service ckan-postgres that exposes port 5432 in-cluster and forwards to the external database target port 25060.",
      "tags": [
        "configuration",
        "infrastructure",
        "database",
        "kubernetes"
      ],
      "complexity": "simple",
      "languageNotes": "Selector-less Service paired with a manual Endpoints object to reach an external PostgreSQL host."
    },
    {
      "id": "config:ckan/roles/ckan/files/values.yaml",
      "type": "config",
      "name": "values.yaml",
      "filePath": "ckan/roles/ckan/files/values.yaml",
      "summary": "Helm values for the Greenstand CKAN deployment, configuring PostgreSQL connection, datastore, SMTP, Redis/Solr node affinity, image pull secrets, and a LoadBalancer service.",
      "tags": [
        "configuration",
        "infrastructure",
        "helm",
        "deployment",
        "database"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses a YAML anchor (&nodeAffinity) reused across redis, solr, datapusher; values contain Ansible/Jinja template placeholders for secrets."
    },
    {
      "id": "resource:database-backup-storage/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "database-backup-storage/backend.tf",
      "summary": "Configures the Terraform S3 remote backend, storing this module's state in the treetracker-infrastructure bucket under the database-backup-storage key in us-east-1.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state-management"
      ],
      "complexity": "simple",
      "languageNotes": "Terraform S3 remote backend block; keeps state centralized and shareable across operators."
    },
    {
      "id": "resource:database-backup-storage/production-backups.tf",
      "type": "resource",
      "name": "production-backups.tf",
      "filePath": "database-backup-storage/production-backups.tf",
      "summary": "Provisions a private AWS S3 bucket named treetracker-production-backups used to store production database backups, tagged for the Production environment.",
      "tags": [
        "infrastructure",
        "terraform",
        "aws-s3",
        "database",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Single aws_s3_bucket resource with private ACL and environment tags."
    },
    {
      "id": "resource:database-backup-storage/providers.tf",
      "type": "resource",
      "name": "providers.tf",
      "filePath": "database-backup-storage/providers.tf",
      "summary": "Declares the required AWS provider (hashicorp/aws ~> 2.0) and configures it for the us-east-1 region for the database backup storage module.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "required_providers pins the AWS provider to the 2.x major version."
    },
    {
      "id": "resource:database-grants/terraform/dev/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "database-grants/terraform/dev/backend-config.tfvars",
      "summary": "Terraform backend configuration pointing state storage to the treetracker-dev-terraform bucket (DigitalOcean Spaces).",
      "tags": [
        "terraform",
        "infrastructure",
        "configuration",
        "state-backend"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/dev.env.tfvars",
      "type": "resource",
      "name": "dev.env.tfvars",
      "filePath": "database-grants/terraform/dev/dev.env.tfvars",
      "summary": "Development environment variable file supplying the DigitalOcean managed PostgreSQL host to the Terraform postgresql providers.",
      "tags": [
        "terraform",
        "infrastructure",
        "configuration",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database-grants/terraform/dev/get-db-password.sh",
      "type": "file",
      "name": "get-db-password.sh",
      "filePath": "database-grants/terraform/dev/get-db-password.sh",
      "summary": "Helper shell script that switches doctl to the development context and prints the managed database connection details used to obtain the DB password.",
      "tags": [
        "shell",
        "script",
        "database",
        "credentials",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/dev/main.tf",
      "summary": "Root Terraform module for the dev database-grants stack that instantiates 15 per-schema submodules, all bound to the treetracker PostgreSQL provider alias.",
      "tags": [
        "terraform",
        "infrastructure",
        "database",
        "schema-definition",
        "orchestration"
      ],
      "complexity": "moderate",
      "languageNotes": "Each module block passes an explicit provider mapping (postgresql = postgresql.treetracker) to route grants to the correct database."
    },
    {
      "id": "resource:database-grants/terraform/dev/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/dev/provider.tf",
      "summary": "Declares Terraform version constraints and three aliased cyrilgdn/postgresql provider configurations (integration_test, treetracker, data_pipeline) against the DigitalOcean managed database.",
      "tags": [
        "terraform",
        "infrastructure",
        "database",
        "provider",
        "configuration"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses provider aliases so a single host/password pair connects to multiple logical databases on port 25060 with sslmode=require."
    },
    {
      "id": "file:database-grants/terraform/dev/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "database-grants/terraform/dev/setup_keys.sh",
      "summary": "Sourced shell script that reads DigitalOcean Spaces keys from ~/.netrc and exports them as AWS credentials so Terraform can access the S3-compatible state backend.",
      "tags": [
        "shell",
        "script",
        "credentials",
        "state-backend",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.airflow_schema",
      "type": "resource",
      "name": "module.airflow_schema",
      "summary": "Submodule applying database grants for the airflow schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.treetracker_schema",
      "type": "resource",
      "name": "module.treetracker_schema",
      "summary": "Submodule applying database grants for the treetracker schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.webmap_schema",
      "type": "resource",
      "name": "module.webmap_schema",
      "summary": "Submodule applying database grants for the webmap schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.stakeholder_schema",
      "type": "resource",
      "name": "module.stakeholder_schema",
      "summary": "Submodule applying database grants for the stakeholder schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.earnings_schema",
      "type": "resource",
      "name": "module.earnings_schema",
      "summary": "Submodule applying database grants for the earnings schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.regions_schema",
      "type": "resource",
      "name": "module.regions_schema",
      "summary": "Submodule applying database grants for the regions schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.messaging_schema",
      "type": "resource",
      "name": "module.messaging_schema",
      "summary": "Submodule applying database grants for the messaging schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.query_schema",
      "type": "resource",
      "name": "module.query_schema",
      "summary": "Submodule applying database grants for the query schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.field_data_schema",
      "type": "resource",
      "name": "module.field_data_schema",
      "summary": "Submodule applying database grants for the field_data schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.reporting_schema",
      "type": "resource",
      "name": "module.reporting_schema",
      "summary": "Submodule applying database grants for the reporting schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.contracts_schema",
      "type": "resource",
      "name": "module.contracts_schema",
      "summary": "Submodule applying database grants for the contracts schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.keycloak_schema",
      "type": "resource",
      "name": "module.keycloak_schema",
      "summary": "Submodule applying database grants for the keycloak schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.wallet_schema",
      "type": "resource",
      "name": "module.wallet_schema",
      "summary": "Submodule applying database grants for the wallet schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.denormalized_schema",
      "type": "resource",
      "name": "module.denormalized_schema",
      "summary": "Submodule applying database grants for the denormalized schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/main.tf:module.queue_schema",
      "type": "resource",
      "name": "module.queue_schema",
      "summary": "Submodule applying database grants for the queue schema via the treetracker PostgreSQL provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "database-grants/terraform/prod/backend-config.tfvars",
      "summary": "Backend configuration values passed to terraform init for the prod database-grants state.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "backend"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "database-grants/terraform/prod/backend.tf",
      "summary": "Declares the Terraform remote state backend for the prod database-grants configuration.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf",
      "type": "resource",
      "name": "human-users.tf",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "summary": "Provisions PostgreSQL login roles and generated passwords for human operators (accountant, admin, analyst, manager, wallet operator, token roles) on the prod database.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "iam"
      ],
      "complexity": "moderate",
      "languageNotes": "Pairs each postgresql_role with a random_password resource for credential generation."
    },
    {
      "id": "resource:database-grants/terraform/prod/legacy-db-users.tf",
      "type": "resource",
      "name": "legacy-db-users.tf",
      "filePath": "database-grants/terraform/prod/legacy-db-users.tf",
      "summary": "Defines legacy application roles (treetracker, data_pipeline) with generated passwords plus table and sequence grants on the public schema.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "legacy"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/main.tf",
      "summary": "Root module wiring that invokes 15 per-schema submodules (field_data, wallet, treetracker, earnings, webmap, etc.) each bound to the treetracker postgresql provider.",
      "tags": [
        "infrastructure",
        "terraform",
        "orchestration",
        "database",
        "schema-definition"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses module composition with explicit provider aliasing and a depends_on ordering constraint for the extra module."
    },
    {
      "id": "resource:database-grants/terraform/prod/prod.env.tfvars",
      "type": "resource",
      "name": "prod.env.tfvars",
      "filePath": "database-grants/terraform/prod/prod.env.tfvars",
      "summary": "Environment-specific variable values (host, port, password) for the prod PostgreSQL connection.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/provider.tf",
      "summary": "Declares the cyrilgdn/postgresql provider with treetracker and data_pipeline aliases plus the host, port, and password input variables consumed across the module.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Defines two aliased provider instances targeting separate databases on the same host."
    },
    {
      "id": "resource:database-grants/terraform/prod/read-only-user.tf",
      "type": "resource",
      "name": "read-only-user.tf",
      "filePath": "database-grants/terraform/prod/read-only-user.tf",
      "summary": "Creates the read-only reporting role and grants SELECT/USAGE across every application schema (import, operations, token_management, treetracker, wallet, webmap, airflow, reporting, earnings, messaging, keycloak, denormalized) including default privileges for future objects.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "security"
      ],
      "complexity": "complex",
      "languageNotes": "Heavily repetitive grant/default-privilege blocks, one triple (usage/select/sequence) per schema."
    },
    {
      "id": "resource:database-grants/terraform/prod/remote-machine-users.tf",
      "type": "resource",
      "name": "remote-machine-users.tf",
      "filePath": "database-grants/terraform/prod/remote-machine-users.tf",
      "summary": "Provisions the cvat_annotator machine role and its generated password for remote annotation workloads.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.accountant_human",
      "type": "resource",
      "name": "postgresql_role.accountant_human",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        8,
        13
      ],
      "summary": "PostgreSQL login role for the accountant operator.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_issuer_human",
      "type": "resource",
      "name": "postgresql_role.token_issuer_human",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        21,
        26
      ],
      "summary": "PostgreSQL login role for the token issuer operator.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_admin",
      "type": "resource",
      "name": "postgresql_role.treetracker_admin",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        36,
        41
      ],
      "summary": "PostgreSQL login role for the treetracker administrator.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_analyst",
      "type": "resource",
      "name": "postgresql_role.treetracker_analyst",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        49,
        54
      ],
      "summary": "PostgreSQL login role for the treetracker analyst.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_manager",
      "type": "resource",
      "name": "postgresql_role.treetracker_manager",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        62,
        67
      ],
      "summary": "PostgreSQL login role for the treetracker manager.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_trading_admin",
      "type": "resource",
      "name": "postgresql_role.token_trading_admin",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        75,
        80
      ],
      "summary": "PostgreSQL login role for the token trading administrator.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.wallet_operator_human",
      "type": "resource",
      "name": "postgresql_role.wallet_operator_human",
      "filePath": "database-grants/terraform/prod/human-users.tf",
      "lineRange": [
        90,
        95
      ],
      "summary": "PostgreSQL login role for the wallet operator.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.treetracker",
      "type": "resource",
      "name": "postgresql_role.treetracker",
      "filePath": "database-grants/terraform/prod/legacy-db-users.tf",
      "lineRange": [
        7,
        12
      ],
      "summary": "Legacy treetracker application login role.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "legacy"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.data_pipeline",
      "type": "resource",
      "name": "postgresql_role.data_pipeline",
      "filePath": "database-grants/terraform/prod/legacy-db-users.tf",
      "lineRange": [
        20,
        25
      ],
      "summary": "Data pipeline login role granted table and sequence access on the public schema.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "data-pipeline"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/read-only-user.tf:postgresql_role.readonlyuser_human",
      "type": "resource",
      "name": "postgresql_role.readonlyuser_human",
      "filePath": "database-grants/terraform/prod/read-only-user.tf",
      "lineRange": [
        7,
        12
      ],
      "summary": "Read-only reporting login role granted SELECT/USAGE across all application schemas.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/remote-machine-users.tf:postgresql_role.cvat_annotator",
      "type": "resource",
      "name": "postgresql_role.cvat_annotator",
      "filePath": "database-grants/terraform/prod/remote-machine-users.tf",
      "lineRange": [
        7,
        12
      ],
      "summary": "Machine login role for the CVAT annotator remote workload.",
      "tags": [
        "postgresql",
        "role",
        "database",
        "iam"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.field_data_schema",
      "type": "resource",
      "name": "module.field_data_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        2,
        7
      ],
      "summary": "Invokes the field_data schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.wallet_schema",
      "type": "resource",
      "name": "module.wallet_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        10,
        15
      ],
      "summary": "Invokes the wallet schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.treetracker_schema",
      "type": "resource",
      "name": "module.treetracker_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        17,
        22
      ],
      "summary": "Invokes the treetracker schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.earnings_schema",
      "type": "resource",
      "name": "module.earnings_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        24,
        29
      ],
      "summary": "Invokes the earnings schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.webmap_schema",
      "type": "resource",
      "name": "module.webmap_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        31,
        36
      ],
      "summary": "Invokes the webmap schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.reporting_schema",
      "type": "resource",
      "name": "module.reporting_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        38,
        43
      ],
      "summary": "Invokes the reporting schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.airflow_schema",
      "type": "resource",
      "name": "module.airflow_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        45,
        50
      ],
      "summary": "Invokes the airflow schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.messaging_schema",
      "type": "resource",
      "name": "module.messaging_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        52,
        57
      ],
      "summary": "Invokes the messaging schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.query_schema",
      "type": "resource",
      "name": "module.query_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        59,
        64
      ],
      "summary": "Invokes the query schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.stakeholder_schema",
      "type": "resource",
      "name": "module.stakeholder_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        66,
        71
      ],
      "summary": "Invokes the stakeholder schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.regions_schema",
      "type": "resource",
      "name": "module.regions_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        73,
        78
      ],
      "summary": "Invokes the regions schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.contracts_schema",
      "type": "resource",
      "name": "module.contracts_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        80,
        85
      ],
      "summary": "Invokes the contracts schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.keycloak_schema",
      "type": "resource",
      "name": "module.keycloak_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        87,
        92
      ],
      "summary": "Invokes the keycloak schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.extra",
      "type": "resource",
      "name": "module.extra",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        94,
        102
      ],
      "summary": "Invokes the extra submodule after the wallet schema via an explicit depends_on ordering.",
      "tags": [
        "terraform",
        "module",
        "database",
        "dependency"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/main.tf:module.denormalized_schema",
      "type": "resource",
      "name": "module.denormalized_schema",
      "filePath": "database-grants/terraform/prod/main.tf",
      "lineRange": [
        104,
        109
      ],
      "summary": "Invokes the denormalized schema submodule against the treetracker provider.",
      "tags": [
        "terraform",
        "module",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "summary": "Terraform module that provisions a per-microservice PostgreSQL schema with a service role, a migration role, and read-only access, wiring up randomly generated passwords and least-privilege grants on tables and sequences.",
      "tags": [
        "infrastructure",
        "database",
        "terraform",
        "security",
        "postgresql"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses the cyrilgdn/postgresql provider to model roles and grants declaratively; service and migration users are named s_<schema>/m_<schema> with tiered privileges (migration owns and mutates, service reads/writes per var, readonlyuser selects only)."
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_schema.microservice_schema",
      "type": "resource",
      "name": "postgresql_schema.microservice_schema",
      "summary": "Creates the microservice PostgreSQL schema named from var.schema, owned by doadmin, with prevent_destroy to protect against accidental deletion.",
      "tags": [
        "database",
        "postgresql",
        "schema",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.s_password",
      "type": "resource",
      "name": "random_password.s_password",
      "summary": "Generates a 16-character password with special characters for the service role login credential.",
      "tags": [
        "security",
        "credentials",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.service_user",
      "type": "resource",
      "name": "postgresql_role.service_user",
      "summary": "Defines the runtime service login role s_<schema> with the generated password and a search_path scoped to the schema and public.",
      "tags": [
        "database",
        "postgresql",
        "role",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-usage",
      "type": "resource",
      "name": "postgresql_grant.microservice-user-usage",
      "summary": "Grants USAGE on the schema to the service role so it can access schema objects.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default",
      "type": "resource",
      "name": "postgresql_default_privileges.microservice-user-default",
      "summary": "Sets default table privileges (from var.service_user_table_grants) for the service role on future tables created by the migration owner.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default-sequence",
      "type": "resource",
      "name": "postgresql_default_privileges.microservice-user-default-sequence",
      "summary": "Sets default USAGE and SELECT sequence privileges for the service role on future sequences owned by the migration user.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user",
      "type": "resource",
      "name": "postgresql_grant.microservice-user",
      "summary": "Grants the configured table privileges to the service role on existing tables in the schema.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-sequence",
      "type": "resource",
      "name": "postgresql_grant.microservice-user-sequence",
      "summary": "Grants USAGE and SELECT on existing sequences to the service role.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.m_password",
      "type": "resource",
      "name": "random_password.m_password",
      "summary": "Generates a 16-character password with special characters for the migration role login credential.",
      "tags": [
        "security",
        "credentials",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.migration_user",
      "type": "resource",
      "name": "postgresql_role.migration_user",
      "summary": "Defines the migration login role m_<schema> that owns schema objects and runs schema migrations, with a search_path scoped to the schema and public.",
      "tags": [
        "database",
        "postgresql",
        "role",
        "migration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer",
      "type": "resource",
      "name": "postgresql_grant.microservice-migration-executer",
      "summary": "Grants USAGE and CREATE on the schema to the migration role so it can create and alter objects.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "migration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer-tables",
      "type": "resource",
      "name": "postgresql_grant.microservice-migration-executer-tables",
      "summary": "Grants full DML (INSERT, SELECT, REFERENCES, UPDATE, DELETE) on tables to the migration role.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "migration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executor-sequence",
      "type": "resource",
      "name": "postgresql_grant.microservice-migration-executor-sequence",
      "summary": "Grants USAGE and SELECT on sequences to the migration role.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "migration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-schema",
      "type": "resource",
      "name": "postgresql_grant.readonlyuser-schema",
      "summary": "Grants USAGE on the schema to the shared readonlyuser role for read-only access.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-tables",
      "type": "resource",
      "name": "postgresql_grant.readonlyuser-tables",
      "summary": "Grants SELECT on existing tables to the readonlyuser role.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.readonlyuser-default-tables",
      "type": "resource",
      "name": "postgresql_default_privileges.readonlyuser-default-tables",
      "summary": "Sets default SELECT privilege for the readonlyuser role on future tables owned by the migration user.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-sequence",
      "type": "resource",
      "name": "postgresql_grant.readonlyuser-sequence",
      "summary": "Grants USAGE and SELECT on sequences to the readonlyuser role.",
      "tags": [
        "database",
        "postgresql",
        "grant",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/outputs.tf",
      "type": "resource",
      "name": "outputs.tf",
      "filePath": "database-grants/terraform/prod/modules/microservice_schema/outputs.tf",
      "summary": "Exposes the generated service and migration user passwords as module outputs for consumers to store or inject.",
      "tags": [
        "infrastructure",
        "terraform",
        "outputs",
        "credentials"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/modules/microservice_schema/provider.tf",
      "summary": "Declares the required cyrilgdn/postgresql provider at version 1.22.0 used by this module to manage roles and grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/modules/microservice_schema/variables.tf",
      "type": "resource",
      "name": "variables.tf",
      "filePath": "database-grants/terraform/prod/modules/microservice_schema/variables.tf",
      "summary": "Declares the module input variables: the target schema name, the database name, and the list of table grants for the service user.",
      "tags": [
        "infrastructure",
        "terraform",
        "variables",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/test/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "database-grants/terraform/test/backend-config.tfvars",
      "summary": "Terraform backend configuration for the test environment, setting the remote state bucket to treetracker-test-terraform on DigitalOcean Spaces.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "backend",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/test/read-only-user.tf",
      "type": "resource",
      "name": "read-only-user.tf",
      "filePath": "database-grants/terraform/test/read-only-user.tf",
      "summary": "Provisions a read-only PostgreSQL login role for the test database, generating its password via random_password and binding it through the postgresql.treetracker provider.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "security",
        "provisioning"
      ],
      "complexity": "simple",
      "languageNotes": "Uses random_password resource to generate credentials referenced by the postgresql_role, keeping secrets out of source control."
    },
    {
      "id": "file:database-grants/terraform/test/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "database-grants/terraform/test/setup_keys.sh",
      "summary": "Shell helper that reads DigitalOcean Spaces credentials from ~/.netrc and exports them as AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, meant to be sourced before running Terraform.",
      "tags": [
        "script",
        "shell",
        "credentials",
        "terraform",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/test/test.env.tfvars",
      "type": "resource",
      "name": "test.env.tfvars",
      "filePath": "database-grants/terraform/test/test.env.tfvars",
      "summary": "Terraform variable values for the test environment, specifying the PostgreSQL host and port of the managed DigitalOcean database.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "database",
        "environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:database/terraform/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "database/terraform/README.md",
      "summary": "Operator guide for updating the production PostgreSQL cluster via Terraform, covering backend key setup and the init/plan/apply workflow.",
      "tags": [
        "documentation",
        "database",
        "terraform",
        "runbook"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "database/terraform/backend.tf",
      "summary": "Terraform S3-compatible backend configuration storing database state in a DigitalOcean Spaces bucket (sfo2 region, spoofed as eu-west-1 to satisfy AWS validation).",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the AWS S3 backend against DigitalOcean Spaces, disabling AWS-specific credential and metadata checks."
    },
    {
      "id": "resource:database/terraform/database.tf",
      "type": "resource",
      "name": "database.tf",
      "filePath": "database/terraform/database.tf",
      "summary": "Provisions the production DigitalOcean managed PostgreSQL cluster, its firewall rules, a read replica, and multiple application databases (treetracker, data_pipeline, ckan, world_bank_backup).",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "digitalocean",
        "provisioning"
      ],
      "complexity": "moderate",
      "languageNotes": "All child resources reference the cluster id, creating an implicit dependency graph rooted at the postgres cluster."
    },
    {
      "id": "resource:database/terraform/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database/terraform/provider.tf",
      "summary": "Declares the DigitalOcean provider (v1.22.2) and the do_token input variable used to authenticate Terraform against the DigitalOcean API.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "digitalocean",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/terraform/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "database/terraform/setup_keys.sh",
      "summary": "Shell helper that reads DigitalOcean Spaces credentials from ~/.netrc and exports them as AWS access keys so Terraform can reach the S3-compatible state backend.",
      "tags": [
        "script",
        "credentials",
        "terraform",
        "digitalocean",
        "shell"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "resource",
      "name": "treetracker-postgres-cluster",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        2,
        9
      ],
      "summary": "DigitalOcean managed PostgreSQL 11 cluster (2 nodes, db-s-4vcpu-8gb, nyc1) serving as the production database.",
      "tags": [
        "database",
        "postgresql",
        "digitalocean",
        "cluster"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_firewall.treetracker-database-fw",
      "type": "resource",
      "name": "treetracker-database-fw",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        19,
        46
      ],
      "summary": "Database firewall restricting cluster access to tagged resources (treetracker-database-access, bastion) and three whitelisted IP addresses.",
      "tags": [
        "database",
        "firewall",
        "security",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_replica.treetracker-postgres-read-replica",
      "type": "resource",
      "name": "treetracker-postgres-read-replica",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        48,
        53
      ],
      "summary": "Read replica of the production PostgreSQL cluster (db-s-2vcpu-4gb, nyc1) for offloading read traffic.",
      "tags": [
        "database",
        "replica",
        "postgresql",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_db.treetracker-database",
      "type": "resource",
      "name": "treetracker-database",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        64,
        67
      ],
      "summary": "The primary 'treetracker' application database within the managed PostgreSQL cluster.",
      "tags": [
        "database",
        "postgresql",
        "digitalocean",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_db.data-pipeline-database",
      "type": "resource",
      "name": "data-pipeline-database",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        69,
        72
      ],
      "summary": "The 'data_pipeline' database within the managed PostgreSQL cluster, used by data processing workloads.",
      "tags": [
        "database",
        "postgresql",
        "data-pipeline",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-database",
      "type": "resource",
      "name": "ckan-database",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        74,
        77
      ],
      "summary": "The 'ckan' database within the managed PostgreSQL cluster, backing the CKAN open-data platform.",
      "tags": [
        "database",
        "postgresql",
        "ckan",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-datastore-database",
      "type": "resource",
      "name": "ckan-datastore-database",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        79,
        82
      ],
      "summary": "The 'ckan_datastore' database within the managed PostgreSQL cluster, used as the CKAN DataStore backend.",
      "tags": [
        "database",
        "postgresql",
        "ckan",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database/terraform/database.tf:digitalocean_database_db.world-bank-backup-database",
      "type": "resource",
      "name": "world-bank-backup-database",
      "filePath": "database/terraform/database.tf",
      "lineRange": [
        84,
        87
      ],
      "summary": "The 'world_bank_backup' database within the managed PostgreSQL cluster, holding World Bank backup data.",
      "tags": [
        "database",
        "postgresql",
        "backup",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/deployment-raw-client.yaml",
      "type": "service",
      "name": "deployment-raw-client.yaml",
      "filePath": "keycloak/lib/kubernetes/base/deployment-raw-client.yaml",
      "summary": "Kubernetes Deployment for the Keycloak raw-client helper (Node.js image) in the keycloak namespace, embedding an HTML client page and RAW_CLIENT_URL config.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "deployment",
        "keycloak",
        "orchestration"
      ],
      "complexity": "complex",
      "languageNotes": "Large Deployment manifest that inlines an HTML client template into the container spec."
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/deployment.yaml",
      "type": "service",
      "name": "deployment.yaml",
      "filePath": "keycloak/lib/kubernetes/base/deployment.yaml",
      "summary": "Kubernetes Deployment for the treetracker Keycloak server, wiring Postgres connection and admin credentials from the keycloak-secret and running behind an edge proxy at /keycloak.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "deployment",
        "keycloak",
        "security"
      ],
      "complexity": "moderate",
      "languageNotes": "Pulls DB and admin credentials via secretKeyRef from keycloak-secret."
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "type": "service",
      "name": "kustomization.yaml",
      "filePath": "keycloak/lib/kubernetes/base/kustomization.yaml",
      "summary": "Kustomize base that aggregates the Keycloak Deployment, Service, and Ambassador Mapping manifests for both the server and raw-client.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "kustomize",
        "orchestration",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/mapping-raw-client.yaml",
      "type": "service",
      "name": "mapping-raw-client.yaml",
      "filePath": "keycloak/lib/kubernetes/base/mapping-raw-client.yaml",
      "summary": "Ambassador Mapping that routes the /raw-client/ prefix to the keycloak-raw-client-service on port 8080.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "routing",
        "ambassador",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/mapping.yaml",
      "type": "service",
      "name": "mapping.yaml",
      "filePath": "keycloak/lib/kubernetes/base/mapping.yaml",
      "summary": "Ambassador Mapping that routes the /keycloak/ prefix to the keycloak-service on port 8080 with rewrite preserved.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "routing",
        "ambassador",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/service-raw-client.yaml",
      "type": "service",
      "name": "service-raw-client.yaml",
      "filePath": "keycloak/lib/kubernetes/base/service-raw-client.yaml",
      "summary": "Kubernetes Service exposing the Keycloak raw-client pods (app: treetracker-keycloak-raw-client) on TCP port 8080.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "service",
        "networking",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/base/service.yaml",
      "type": "service",
      "name": "service.yaml",
      "filePath": "keycloak/lib/kubernetes/base/service.yaml",
      "summary": "Kubernetes Service exposing the Keycloak server pods (app: treetracker-keycloak) on TCP port 8080.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "service",
        "networking",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/production/deployment-raw-client.yaml",
      "type": "service",
      "name": "deployment-raw-client.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/production/deployment-raw-client.yaml",
      "summary": "Kustomize strategic-merge patch for the production Keycloak overlay that injects the RAW_CLIENT_URL environment variable (prod-k8s.treetracker.org) into the treetracker-keycloak container of the raw-client test Deployment.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "keycloak",
        "deployment",
        "orchestration"
      ],
      "complexity": "simple",
      "languageNotes": "Partial Deployment manifest used as a patchesStrategicMerge overlay; only the fields to override are present."
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/production/kustomization.yaml",
      "type": "service",
      "name": "kustomization.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/production/kustomization.yaml",
      "summary": "Production Kustomize overlay for Keycloak that layers on the shared base, adds the sealed-secret resource, and applies the raw-client deployment strategic-merge patch.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "kustomize",
        "orchestration",
        "keycloak"
      ],
      "complexity": "simple",
      "languageNotes": "Kustomize v1beta1 overlay combining a base directory, extra resources, and strategic-merge patches."
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/production/sealed-secret.yaml",
      "type": "service",
      "name": "sealed-secret.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/production/sealed-secret.yaml",
      "summary": "Bitnami SealedSecret holding encrypted production Keycloak credentials (password, host, admin_username, admin_password) for the keycloak namespace, safely committable to version control.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "security",
        "secrets",
        "keycloak"
      ],
      "complexity": "simple",
      "languageNotes": "SealedSecret (bitnami.com/v1alpha1) encrypts secret values so the manifest can be stored in git and decrypted only in-cluster by the sealed-secrets controller."
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/test/deployment-raw-client.yaml",
      "type": "service",
      "name": "deployment-raw-client.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/test/deployment-raw-client.yaml",
      "summary": "Kustomize strategic-merge patch for the test overlay that injects the RAW_CLIENT_URL env var (test-k8s.treetracker.org) into the treetracker-keycloak container of the raw-client Deployment.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "kustomize",
        "deployment",
        "keycloak"
      ],
      "complexity": "simple",
      "languageNotes": "Partial Deployment manifest used only as a patchesStrategicMerge overlay; not a standalone resource."
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/test/kustomization.yaml",
      "type": "service",
      "name": "kustomization.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/test/kustomization.yaml",
      "summary": "Kustomize overlay for the Keycloak test environment that layers on the shared base, adds the sealed-secret resource, and applies the raw-client deployment patch.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "kustomize",
        "orchestration",
        "keycloak"
      ],
      "complexity": "simple",
      "languageNotes": "Uses bases + patchesStrategicMerge to compose the test overlay from the shared base manifests."
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/test/sealed-secret.yaml",
      "type": "service",
      "name": "sealed-secret.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/test/sealed-secret.yaml",
      "summary": "Bitnami SealedSecret holding the encrypted Keycloak credentials (password, host, admin username/password) for the test namespace, decrypted in-cluster into the keycloak-secret Secret.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "security",
        "sealed-secret",
        "keycloak"
      ],
      "complexity": "simple",
      "languageNotes": "SealedSecret (bitnami.com/v1alpha1) stores AES/RSA-encrypted values safe to commit; the controller decrypts them into a native Secret at runtime."
    },
    {
      "id": "resource:kubernetes/terraform/dev/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "kubernetes/terraform/dev/backend-config.tfvars",
      "summary": "Terraform backend variables supplying the DigitalOcean Spaces bucket name (treetracker-dev-terraform) for remote state storage in the dev environment.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "kubernetes/terraform/dev/backend.tf",
      "summary": "Configures the Terraform S3-compatible backend on DigitalOcean Spaces (sfo2) for storing the Kubernetes cluster tfstate remotely.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-management",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the AWS S3 backend spec against DigitalOcean Spaces, skipping AWS-specific credential and metadata checks."
    },
    {
      "id": "resource:kubernetes/terraform/dev/cluster.tf",
      "type": "resource",
      "name": "cluster.tf",
      "filePath": "kubernetes/terraform/dev/cluster.tf",
      "summary": "Provisions the dev DigitalOcean Kubernetes cluster plus microservices, cloud-services, and monitoring node pools with autoscaling.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "deployment",
        "digitalocean"
      ],
      "complexity": "moderate",
      "languageNotes": "Cluster resource uses a lifecycle prevent_destroy guard; node pools autoscale between min and max node counts."
    },
    {
      "id": "resource:kubernetes/terraform/dev/dev.env.tfvars",
      "type": "resource",
      "name": "dev.env.tfvars",
      "filePath": "kubernetes/terraform/dev/dev.env.tfvars",
      "summary": "Environment variable file setting the dev cluster_name (dev-k8s-treetracker) consumed by the cluster Terraform configuration.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "kubernetes/terraform/dev/provider.tf",
      "summary": "Declares the DigitalOcean and Kubernetes providers and a data source reading the existing dev-k8s-treetracker cluster for kube-config wiring.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "kubernetes",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "Kubernetes provider authenticates using kube_config token and base64-decoded CA certificate from the DigitalOcean cluster data source."
    },
    {
      "id": "file:kubernetes/terraform/dev/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "kubernetes/terraform/dev/setup_keys.sh",
      "summary": "Sourced shell helper that reads DigitalOcean Spaces and API credentials from ~/.netrc and exports AWS and TF_VAR environment variables before running Terraform.",
      "tags": [
        "infrastructure",
        "shell",
        "credentials",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "resource",
      "name": "digitalocean_kubernetes_cluster.kubernetes-cluster",
      "filePath": "kubernetes/terraform/dev/cluster.tf",
      "lineRange": [
        3,
        23
      ],
      "summary": "Dev DigitalOcean Kubernetes cluster in sfo2 with auto-upgrade, a default autoscaling node pool, and a prevent_destroy lifecycle guard.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "digitalocean",
        "cluster"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.microservices-node-pool",
      "filePath": "kubernetes/terraform/dev/cluster.tf",
      "lineRange": [
        25,
        35
      ],
      "summary": "Autoscaling node pool (1-3 nodes) attached to the dev cluster for running microservices workloads.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "filePath": "kubernetes/terraform/dev/cluster.tf",
      "lineRange": [
        38,
        48
      ],
      "summary": "Autoscaling node pool (1-4 nodes) attached to the dev cluster for cloud-services workloads.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "filePath": "kubernetes/terraform/dev/cluster.tf",
      "lineRange": [
        50,
        60
      ],
      "summary": "Autoscaling node pool (0-3 nodes) attached to the dev cluster dedicated to monitoring workloads.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/dev/provider.tf:data.digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "resource",
      "name": "data.digitalocean_kubernetes_cluster.kubernetes-cluster",
      "filePath": "kubernetes/terraform/dev/provider.tf",
      "lineRange": [
        14,
        16
      ],
      "summary": "Data source that looks up the existing dev-k8s-treetracker cluster to feed endpoint and kube_config credentials into the Kubernetes provider.",
      "tags": [
        "infrastructure",
        "terraform",
        "data-source",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "kubernetes/terraform/prod/backend-config.tfvars",
      "summary": "Terraform backend variable file supplying the DigitalOcean Spaces bucket name (treetracker-production-terraform) for the production remote state.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "kubernetes/terraform/prod/backend.tf",
      "summary": "Configures the Terraform S3-compatible remote state backend targeting DigitalOcean Spaces (sfo2) with AWS validation checks disabled.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-management",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the AWS S3 backend against DigitalOcean Spaces, skipping credential and metadata checks that would otherwise hit AWS."
    },
    {
      "id": "resource:kubernetes/terraform/prod/cluster.tf",
      "type": "resource",
      "name": "cluster.tf",
      "filePath": "kubernetes/terraform/prod/cluster.tf",
      "summary": "Defines the production DigitalOcean Kubernetes cluster and three dedicated node pools (microservices, cloud-services, monitoring) in the nyc1 region.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "deployment",
        "digitalocean"
      ],
      "complexity": "moderate",
      "languageNotes": "Pins the cluster version via a digitalocean_kubernetes_versions data source and uses a prevent_destroy lifecycle guard."
    },
    {
      "id": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "resource",
      "name": "digitalocean_kubernetes_cluster.kubernetes-cluster",
      "filePath": "kubernetes/terraform/prod/cluster.tf",
      "lineRange": [
        7,
        25
      ],
      "summary": "Production DOKS cluster with a default node pool, auto-upgrade enabled, and a prevent_destroy lifecycle safeguard.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "cluster",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.microservices-node-pool",
      "filePath": "kubernetes/terraform/prod/cluster.tf",
      "lineRange": [
        27,
        35
      ],
      "summary": "Node pool of five s-2vcpu-4gb nodes tagged for microservices and database access.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "filePath": "kubernetes/terraform/prod/cluster.tf",
      "lineRange": [
        37,
        45
      ],
      "summary": "Node pool of eight s-2vcpu-4gb nodes tagged for cloud services and database access.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "filePath": "kubernetes/terraform/prod/cluster.tf",
      "lineRange": [
        47,
        55
      ],
      "summary": "Node pool of three s-4vcpu-8gb nodes dedicated to monitoring workloads.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "node-pool",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/prod.env.tfvars",
      "type": "resource",
      "name": "prod.env.tfvars",
      "filePath": "kubernetes/terraform/prod/prod.env.tfvars",
      "summary": "Production Terraform variable file setting the cluster name to prod-k8s-treetracker.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/prod/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "kubernetes/terraform/prod/provider.tf",
      "summary": "Declares the DigitalOcean and Kubernetes providers, pinning digitalocean/digitalocean to 1.25.2 and wiring the Kubernetes provider to the cluster endpoint and credentials.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "kubernetes",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:kubernetes/terraform/prod/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "kubernetes/terraform/prod/setup_keys.sh",
      "summary": "Shell helper sourced before Terraform runs to export DigitalOcean Spaces access keys from the user's ~/.netrc into AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.",
      "tags": [
        "infrastructure",
        "shell",
        "credentials",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/backend-config.tfvars",
      "type": "resource",
      "name": "backend-config.tfvars",
      "filePath": "kubernetes/terraform/test/backend-config.tfvars",
      "summary": "Terraform backend configuration for the test environment, setting the DigitalOcean Spaces bucket 'treetracker-test-terraform' used to store remote state.",
      "tags": [
        "terraform",
        "infrastructure",
        "backend-config",
        "state",
        "test-environment"
      ],
      "complexity": "simple",
      "languageNotes": "Backend config tfvars passed via 'terraform init -backend-config'."
    },
    {
      "id": "resource:kubernetes/terraform/test/test.env.tfvars",
      "type": "resource",
      "name": "test.env.tfvars",
      "filePath": "kubernetes/terraform/test/test.env.tfvars",
      "summary": "Terraform variable file for the test environment, setting the Kubernetes cluster name to 'test-k8s-treetracker'.",
      "tags": [
        "terraform",
        "infrastructure",
        "configuration",
        "kubernetes",
        "test-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:kubernetes/terraform/test/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "kubernetes/terraform/test/setup_keys.sh",
      "summary": "Helper shell script sourced before Terraform runs; it reads DigitalOcean Spaces credentials from ~/.netrc and exports them as AWS access key environment variables for the S3-compatible backend.",
      "tags": [
        "shell",
        "infrastructure",
        "credentials",
        "terraform",
        "test-environment"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced (exports AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY) rather than executed."
    },
    {
      "id": "document:monitoring/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "monitoring/README.md",
      "summary": "Operator guide for the monitoring stack, explaining how to run the Ansible playbooks and how to access Grafana and Kibana dashboards and clean up the legacy ELK install.",
      "tags": [
        "documentation",
        "monitoring",
        "ansible",
        "entry-point"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:monitoring/ansible.cfg",
      "type": "config",
      "name": "ansible.cfg",
      "filePath": "monitoring/ansible.cfg",
      "summary": "Ansible defaults for the monitoring playbooks, setting the local hosts inventory, disabling host key checking, and pinning the Python 3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/cleanup_prom.sh",
      "type": "file",
      "name": "cleanup_prom.sh",
      "filePath": "monitoring/cleanup_prom.sh",
      "summary": "Teardown script that uninstalls the prom Helm release and deletes the Loki statefulset and promtail daemonset from the monitoring namespace.",
      "tags": [
        "script",
        "cleanup",
        "monitoring",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/elasticsearch-kibana-filebeat.yml",
      "type": "config",
      "name": "elasticsearch-kibana-filebeat.yml",
      "filePath": "monitoring/elasticsearch-kibana-filebeat.yml",
      "summary": "Ansible playbook that installs the legacy ELK logging stack via the elasticsearch, kibana, filebeat, and curator roles on the local Python 3 host.",
      "tags": [
        "configuration",
        "ansible",
        "logging",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/exporter-playbook.yml",
      "type": "config",
      "name": "exporter-playbook.yml",
      "filePath": "monitoring/exporter-playbook.yml",
      "summary": "Ansible playbook that installs Prometheus node_exporter on all server hosts with privilege escalation.",
      "tags": [
        "configuration",
        "ansible",
        "prometheus",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/loki-playbook.yml",
      "type": "config",
      "name": "loki-playbook.yml",
      "filePath": "monitoring/loki-playbook.yml",
      "summary": "Ansible playbook that installs the Loki log aggregation role on the local host.",
      "tags": [
        "configuration",
        "ansible",
        "logging",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/metrics-server-playbook.yml",
      "type": "config",
      "name": "metrics-server-playbook.yml",
      "filePath": "monitoring/metrics-server-playbook.yml",
      "summary": "Ansible playbook that installs the Kubernetes metrics-server via the metrics_server role on the local Python 3 host.",
      "tags": [
        "configuration",
        "ansible",
        "kubernetes",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/prom-operator-playbook.yml",
      "type": "config",
      "name": "prom-operator-playbook.yml",
      "filePath": "monitoring/prom-operator-playbook.yml",
      "summary": "Ansible playbook that installs the Prometheus Operator (kube-prometheus-stack) via the prometheus_operator role on the local Python 3 host.",
      "tags": [
        "configuration",
        "ansible",
        "prometheus",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:monitoring/terraform/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "monitoring/terraform/README.md",
      "summary": "Setup guide for running Terraform on the monitoring project, covering DigitalOcean access token, Spaces state credentials in ~/.netrc, and sourcing setup_keys.sh before terraform init and plan.",
      "tags": [
        "documentation",
        "terraform",
        "infrastructure",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:monitoring/terraform/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "monitoring/terraform/backend.tf",
      "summary": "Configures the Terraform S3-compatible remote state backend on DigitalOcean Spaces (bucket greenstandtf, key terraform-monitoring.tfstate) with AWS-specific validation checks disabled.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state-management",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "DigitalOcean Spaces implements the S3 API, so the S3 backend is used with credential and metadata checks skipped to bypass AWS-only validation."
    },
    {
      "id": "resource:monitoring/terraform/monitoring-nodes.tf",
      "type": "resource",
      "name": "monitoring-nodes.tf",
      "filePath": "monitoring/terraform/monitoring-nodes.tf",
      "summary": "Provisions the monitoring host on DigitalOcean: an Ubuntu 18.04 droplet named prom-graf, the monitoring.treetracker.org domain pointing at it, and a www CNAME record.",
      "tags": [
        "infrastructure",
        "terraform",
        "digitalocean",
        "deployment",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_droplet.monitor",
      "type": "resource",
      "name": "digitalocean_droplet.monitor",
      "summary": "DigitalOcean droplet (Ubuntu 18.04, s-2vcpu-2gb, sfo2) named prom-graf that hosts the Prometheus and Grafana monitoring stack, tagged monitoring.",
      "tags": [
        "infrastructure",
        "digitalocean",
        "droplet",
        "compute"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_domain.monitor-host",
      "type": "resource",
      "name": "digitalocean_domain.monitor-host",
      "summary": "DigitalOcean DNS domain monitoring.treetracker.org whose A record points to the monitor droplet's IPv4 address.",
      "tags": [
        "infrastructure",
        "digitalocean",
        "dns",
        "domain"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_record.CNAME-www",
      "type": "resource",
      "name": "digitalocean_record.CNAME-www",
      "summary": "DigitalOcean DNS CNAME record aliasing www to the apex of the monitoring domain.",
      "tags": [
        "infrastructure",
        "digitalocean",
        "dns",
        "record"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:monitoring/terraform/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "monitoring/terraform/provider.tf",
      "summary": "Declares the do_token variable, configures the DigitalOcean provider with that token, and pins the digitalocean provider to version 1.22.2.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "configuration",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/terraform/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "monitoring/terraform/setup_keys.sh",
      "summary": "Shell helper that reads the DigitalOcean Spaces key and secret from ~/.netrc and exports them as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY so Terraform can access the S3-compatible state backend.",
      "tags": [
        "script",
        "shell",
        "credentials",
        "configuration",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:other-sites/terraform/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "other-sites/terraform/backend.tf",
      "summary": "Terraform S3 backend configuration storing the herbarium site state in a DigitalOcean Spaces bucket using the AWS S3 protocol with validation checks disabled.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "DigitalOcean Spaces is S3-compatible, so the AWS S3 backend is reused with skip_credentials_validation and skip_metadata_api_check to bypass AWS-specific checks."
    },
    {
      "id": "resource:other-sites/terraform/herbarium.tf",
      "type": "resource",
      "name": "herbarium.tf",
      "filePath": "other-sites/terraform/herbarium.tf",
      "summary": "Provisions the herbarium.greenstand.org static website via the shared Greenstand terraform-aws-staticwebsite module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:other-sites/terraform/herbarium.tf:module.staticwebsite",
      "type": "resource",
      "name": "module.staticwebsite",
      "filePath": "other-sites/terraform/herbarium.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Instantiates the external terraform-aws-staticwebsite module to host the herbarium site with a TLS certificate and index.html error document.",
      "tags": [
        "terraform-module",
        "static-website",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:other-sites/terraform/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "other-sites/terraform/provider.tf",
      "summary": "Declares the AWS provider (region us-east-1) and required credential variables for provisioning the herbarium static site.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/base/cronjob.yaml",
      "type": "config",
      "name": "cronjob.yaml",
      "filePath": "pgpool/deployment/base/cronjob.yaml",
      "summary": "Kubernetes CronJob 'tile-pre-request' running every 5 minutes to pre-warm the tile server cache by curling map tile URLs for selected wallets and maps.",
      "tags": [
        "configuration",
        "kubernetes",
        "cronjob",
        "cache-warming",
        "infrastructure"
      ],
      "complexity": "moderate",
      "languageNotes": "Inline bash heredoc loops over tile coordinates; most wallet/map/user requests are commented out, leaving only a few active pre-request calls."
    },
    {
      "id": "config:pgpool/deployment/base/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "pgpool/deployment/base/kustomization.yaml",
      "summary": "Kustomize base that aggregates the pgpool ConfigMap, Deployment, Service, Namespace, and CronJob manifests into a single deployable unit.",
      "tags": [
        "configuration",
        "kubernetes",
        "kustomize",
        "orchestration",
        "base"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/base/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "pgpool/deployment/base/namespace.yaml",
      "summary": "Defines the 'pgpool' Kubernetes namespace that isolates all pgpool connection-pool resources.",
      "tags": [
        "configuration",
        "kubernetes",
        "namespace",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/base/pgpool_configmap.yaml",
      "type": "config",
      "name": "pgpool_configmap.yaml",
      "filePath": "pgpool/deployment/base/pgpool_configmap.yaml",
      "summary": "ConfigMap 'pgpool-config' supplying pgpool.conf and pool_hba.conf, configuring backend connection to the DigitalOcean managed Postgres, load balancing, and in-memory query cache.",
      "tags": [
        "configuration",
        "kubernetes",
        "configmap",
        "database",
        "connection-pooling"
      ],
      "complexity": "moderate",
      "languageNotes": "pgpool.conf enables memqcache with a safe-cache table allowlist; pool_hba.conf sets host-based auth rules."
    },
    {
      "id": "config:pgpool/deployment/base/treetracker-pgpool-deployment.yml",
      "type": "config",
      "name": "treetracker-pgpool-deployment.yml",
      "filePath": "pgpool/deployment/base/treetracker-pgpool-deployment.yml",
      "summary": "Kubernetes Deployment running a single pgpool 4.2.2 pod that mounts the pgpool-config ConfigMap to provide PostgreSQL connection pooling.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "database",
        "connection-pooling"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/base/treetracker-pgpool-service.yml",
      "type": "config",
      "name": "treetracker-pgpool-service.yml",
      "filePath": "pgpool/deployment/base/treetracker-pgpool-service.yml",
      "summary": "Kubernetes Service exposing the pgpool Deployment on TCP port 9999 for in-cluster PostgreSQL connection pooling.",
      "tags": [
        "configuration",
        "kubernetes",
        "service",
        "networking",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/overlays/production/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "pgpool/deployment/overlays/production/kustomization.yaml",
      "summary": "Kustomize production overlay that layers the pgpool base and applies a strategic-merge patch from the local ConfigMap.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "orchestration",
        "overlay"
      ],
      "complexity": "simple",
      "languageNotes": "Kustomize overlay: base composition plus patchesStrategicMerge for environment-specific overrides."
    },
    {
      "id": "config:pgpool/deployment/overlays/production/pgpool_configmap.yaml",
      "type": "config",
      "name": "pgpool_configmap.yaml",
      "filePath": "pgpool/deployment/overlays/production/pgpool_configmap.yaml",
      "summary": "Kubernetes ConfigMap holding the production pgpool.conf and pool_hba.conf, wiring Pgpool-II to the DigitalOcean managed Postgres backend with connection pooling, load balancing, and query memory cache.",
      "tags": [
        "configuration",
        "kubernetes",
        "database",
        "connection-pooling",
        "pgpool"
      ],
      "complexity": "moderate",
      "languageNotes": "Embeds pgpool.conf (raw clustering mode, memqcache) and pool_hba.conf auth rules as inline ConfigMap data."
    },
    {
      "id": "config:pgpool/deployment/overlays/production/treetracker-pgpool-deployment.yml",
      "type": "config",
      "name": "treetracker-pgpool-deployment.yml",
      "filePath": "pgpool/deployment/overlays/production/treetracker-pgpool-deployment.yml",
      "summary": "Kubernetes Deployment running a single pgpool/pgpool:4.2.2 replica in the pgpool namespace, pinned to the microservices node pool and mounting the pgpool-config ConfigMap.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "database",
        "pgpool"
      ],
      "complexity": "simple",
      "languageNotes": "Uses nodeAffinity to pin the pod to a DigitalOcean node pool; mounts the pgpool-config ConfigMap at /config."
    },
    {
      "id": "config:rabbitmq/deployment/base/definition.yaml",
      "type": "config",
      "name": "definition.yaml",
      "filePath": "rabbitmq/deployment/base/definition.yaml",
      "summary": "RabbitmqCluster custom resource defining a 3-replica RabbitMQ cluster with fixed CPU/memory requests and limits, pinned to the DigitalOcean cloud-services node pool via node affinity.",
      "tags": [
        "configuration",
        "infrastructure",
        "kubernetes",
        "rabbitmq",
        "orchestration"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the RabbitMQ Cluster Operator CRD (rabbitmq.com/v1beta1) with nodeAffinity to constrain scheduling to a specific DOKS node pool."
    },
    {
      "id": "config:rabbitmq/deployment/base/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "rabbitmq/deployment/base/kustomization.yaml",
      "summary": "Kustomize base that aggregates the RabbitMQ cluster definition and pod monitor manifests into a single deployable unit.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "orchestration",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/base/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "rabbitmq/deployment/base/namespace.yaml",
      "summary": "Defines the rabbitmq-cluster Kubernetes namespace that isolates the RabbitMQ deployment resources.",
      "tags": [
        "configuration",
        "kubernetes",
        "namespace",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml",
      "type": "config",
      "name": "rabbitmq-pod-monitor.yaml",
      "filePath": "rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml",
      "summary": "Prometheus PodMonitor that scrapes RabbitMQ pod metrics every 15s on the prometheus port, matching pods by the rabbitmq component label across all namespaces.",
      "tags": [
        "configuration",
        "monitoring",
        "kubernetes",
        "prometheus",
        "observability"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the Prometheus Operator PodMonitor CRD (monitoring.coreos.com/v1) with a namespaceSelector of any:true for cluster-wide scraping."
    },
    {
      "id": "file:rabbitmq/deployment/deploy-dev.sh",
      "type": "file",
      "name": "deploy-dev.sh",
      "filePath": "rabbitmq/deployment/deploy-dev.sh",
      "summary": "Deploy script that switches kubectl to the DigitalOcean SFO2 dev cluster and applies the RabbitMQ dev kustomize overlay to the rabbitmq-cluster namespace.",
      "tags": [
        "deployment",
        "kubernetes",
        "kustomize",
        "rabbitmq",
        "ci-cd"
      ],
      "complexity": "simple",
      "languageNotes": "Uses kustomize build piped into kubectl apply --wait for the dev overlay."
    },
    {
      "id": "file:rabbitmq/deployment/deploy-prod.sh",
      "type": "file",
      "name": "deploy-prod.sh",
      "filePath": "rabbitmq/deployment/deploy-prod.sh",
      "summary": "Deploy script that switches kubectl to the DigitalOcean NYC1 production cluster and applies the RabbitMQ prod kustomize overlay to the rabbitmq-cluster namespace.",
      "tags": [
        "deployment",
        "kubernetes",
        "kustomize",
        "rabbitmq",
        "ci-cd"
      ],
      "complexity": "simple",
      "languageNotes": "Uses kustomize build piped into kubectl apply --wait for the prod overlay."
    },
    {
      "id": "file:rabbitmq/deployment/deploy-test.sh",
      "type": "file",
      "name": "deploy-test.sh",
      "filePath": "rabbitmq/deployment/deploy-test.sh",
      "summary": "Deploy script that switches kubectl to the DigitalOcean SFO2 test cluster and applies the RabbitMQ test kustomize overlay to the rabbitmq-cluster namespace.",
      "tags": [
        "deployment",
        "kubernetes",
        "kustomize",
        "rabbitmq",
        "ci-cd"
      ],
      "complexity": "simple",
      "languageNotes": "Uses kustomize build piped into kubectl apply --wait for the test overlay."
    },
    {
      "id": "document:scripts/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "scripts/README.md",
      "summary": "Guide for authenticating to the DigitalOcean-hosted Kubernetes clusters using doctl and helm, and lists the dev and test treetracker cluster names.",
      "tags": [
        "documentation",
        "kubernetes",
        "deployment",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/doctl_setup.sh",
      "type": "file",
      "name": "doctl_setup.sh",
      "filePath": "scripts/doctl_setup.sh",
      "summary": "Authenticates to DigitalOcean and saves the kubeconfig for a named Kubernetes cluster, listing available clusters when no name is passed.",
      "tags": [
        "script",
        "kubernetes",
        "authentication",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/export_do_tf_tokens.sh",
      "type": "file",
      "name": "export_do_tf_tokens.sh",
      "filePath": "scripts/export_do_tf_tokens.sh",
      "summary": "Exports DigitalOcean and AWS-compatible Spaces credentials for a given environment by reading them from the user's ~/.netrc, for use before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "terraform",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/install-latest-ansible.sh",
      "type": "file",
      "name": "install-latest-ansible.sh",
      "filePath": "scripts/install-latest-ansible.sh",
      "summary": "Provisions an Ubuntu host with the latest Ansible, Docker, Helm 3, and the community.kubernetes collection along with required system packages.",
      "tags": [
        "script",
        "provisioning",
        "ansible",
        "setup"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/k8s-connect-example.sh",
      "type": "file",
      "name": "k8s-connect-example.sh",
      "filePath": "scripts/k8s-connect-example.sh",
      "summary": "Example script that authenticates to DigitalOcean and saves the kubeconfig for the test-k8s-treetracker cluster.",
      "tags": [
        "script",
        "kubernetes",
        "authentication",
        "example"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/setup-aws-keys.sh",
      "type": "file",
      "name": "setup-aws-keys.sh",
      "filePath": "scripts/setup-aws-keys.sh",
      "summary": "Exports AWS access key and secret from the aws.treetracker.org entry in ~/.netrc; intended to be sourced before running Terraform commands.",
      "tags": [
        "script",
        "credentials",
        "aws",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/setup-production-tf-do-keys.sh",
      "type": "file",
      "name": "setup-production-tf-do-keys.sh",
      "filePath": "scripts/setup-production-tf-do-keys.sh",
      "summary": "Exports production DigitalOcean credentials from ~/.netrc into AWS-style environment variables for use before running production Terraform commands.",
      "tags": [
        "script",
        "credentials",
        "digitalocean",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "scripts/setup_keys.sh",
      "summary": "Exports AWS credentials from ~/.netrc into both standard AWS and TF_VAR-prefixed environment variables for Terraform, meant to be sourced before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "aws",
        "terraform"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/vagrant-setup.sh",
      "type": "file",
      "name": "vagrant-setup.sh",
      "filePath": "scripts/vagrant-setup.sh",
      "summary": "Installs VirtualBox and Vagrant 2.2.6 with the vagrant-disksize plugin on an Ubuntu host for local development environments.",
      "tags": [
        "script",
        "provisioning",
        "vagrant",
        "setup"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:sealed-secrets/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "sealed-secrets/README.md",
      "summary": "Guide for installing and using Bitnami Sealed Secrets with kubeseal on the treetracker Kubernetes clusters, covering doctl/kubectl setup, controller installation, and encrypting secrets both via a helper script and manually.",
      "tags": [
        "documentation",
        "security",
        "kubernetes",
        "secrets-management",
        "deployment"
      ],
      "complexity": "moderate",
      "languageNotes": "17 sections covering install prerequisites (doctl, kubectl), controller CRD setup, kubeseal on Mac/Linux, and SealedSecret creation workflow."
    },
    {
      "id": "config:sealed-secrets/ansible.cfg",
      "type": "config",
      "name": "ansible.cfg",
      "filePath": "sealed-secrets/ansible.cfg",
      "summary": "Ansible configuration for the sealed-secrets directory, pointing to the local hosts inventory, disabling host key checking, and pinning the Python 3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "infrastructure",
        "automation"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:sealed-secrets/sealed-secrets-web-playbook.yml",
      "type": "config",
      "name": "sealed-secrets-web-playbook.yml",
      "filePath": "sealed-secrets/sealed-secrets-web-playbook.yml",
      "summary": "Ansible playbook that deploys the Sealed Secrets web UI to the localhost-py3 host by applying the sealed-secrets-web role over a local connection.",
      "tags": [
        "configuration",
        "ansible",
        "deployment",
        "kubernetes",
        "automation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "file",
      "name": "create-secret.sh",
      "filePath": "sealed-secrets/scripts/create-secret.sh",
      "summary": "Core interactive helper that reads a secret value, creates a Kubernetes generic secret via kubectl dry-run, then seals it with kubeseal into a sealed-secret YAML. Accepts -r resource, -k key, -s secret flags and is sourced by the other create-*-secret scripts.",
      "tags": [
        "shell",
        "security",
        "kubernetes",
        "sealed-secrets",
        "utility"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses getopts flag parsing and kubeseal to produce sealed secrets committed to the repo."
    },
    {
      "id": "file:sealed-secrets/scripts/get-database-uri.sh",
      "type": "file",
      "name": "get-database-uri.sh",
      "filePath": "sealed-secrets/scripts/get-database-uri.sh",
      "summary": "Interactive script that queries DigitalOcean via doctl for a managed database user password and host, then assembles a PostgreSQL connection URI exported as $URI for consumption by the database secret scripts.",
      "tags": [
        "shell",
        "database",
        "postgresql",
        "digitalocean",
        "utility"
      ],
      "complexity": "simple",
      "languageNotes": "Builds a connection URI using a prefix argument to select migration vs service DB user."
    },
    {
      "id": "file:sealed-secrets/scripts/create-airflow-database-password-secret.sh",
      "type": "file",
      "name": "create-airflow-database-password-secret.sh",
      "filePath": "sealed-secrets/scripts/create-airflow-database-password-secret.sh",
      "summary": "Thin wrapper that sources create-secret.sh to seal the Airflow database password under the airflow-database-connection resource.",
      "tags": [
        "shell",
        "sealed-secrets",
        "security",
        "airflow",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-aws-key-id-secret.sh",
      "type": "file",
      "name": "create-aws-key-id-secret.sh",
      "filePath": "sealed-secrets/scripts/create-aws-key-id-secret.sh",
      "summary": "Thin wrapper that sources create-secret.sh to seal the AWS access key id under the aws-key-id resource.",
      "tags": [
        "shell",
        "sealed-secrets",
        "security",
        "aws",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-aws-key-secret.sh",
      "type": "file",
      "name": "create-aws-key-secret.sh",
      "filePath": "sealed-secrets/scripts/create-aws-key-secret.sh",
      "summary": "Thin wrapper that sources create-secret.sh to seal the AWS secret access key under the aws-key resource.",
      "tags": [
        "shell",
        "sealed-secrets",
        "security",
        "aws",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-database-migration-secret.sh",
      "type": "file",
      "name": "create-database-migration-secret.sh",
      "filePath": "sealed-secrets/scripts/create-database-migration-secret.sh",
      "summary": "Builds the migration database connection URI via get-database-uri.sh, then seals it as the database-migration-connection secret through create-secret.sh.",
      "tags": [
        "shell",
        "sealed-secrets",
        "database",
        "migration",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-database-secret.sh",
      "type": "file",
      "name": "create-database-secret.sh",
      "filePath": "sealed-secrets/scripts/create-database-secret.sh",
      "summary": "Builds the service database connection URI via get-database-uri.sh, then seals it as the database-connection secret through create-secret.sh.",
      "tags": [
        "shell",
        "sealed-secrets",
        "database",
        "security",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-rabbitmq-secret.sh",
      "type": "file",
      "name": "create-rabbitmq-secret.sh",
      "filePath": "sealed-secrets/scripts/create-rabbitmq-secret.sh",
      "summary": "Prompts for RabbitMQ username and password, assembles an amqp connection string, and invokes create-secret.sh to seal it as the rabbitmq-connection secret.",
      "tags": [
        "shell",
        "sealed-secrets",
        "rabbitmq",
        "messaging",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/scripts/create-sqs-secret.sh",
      "type": "file",
      "name": "create-sqs-secret.sh",
      "filePath": "sealed-secrets/scripts/create-sqs-secret.sh",
      "summary": "Thin wrapper that sources create-secret.sh to seal the SQS queue URL under the sqs-url resource.",
      "tags": [
        "shell",
        "sealed-secrets",
        "security",
        "aws",
        "wrapper"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/dev/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "solr/dev/backend.tf",
      "summary": "Terraform backend configuration storing the Solr dev state in a DigitalOcean Spaces bucket via the S3-compatible backend.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the S3 backend against DigitalOcean Spaces; validation checks are skipped since DO is not real AWS."
    },
    {
      "id": "resource:solr/dev/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "solr/dev/main.tf",
      "summary": "Root Terraform module for the Solr dev environment that instantiates the shared solr_chart module targeting the dev-k8s-treetracker cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "solr",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/dev/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "solr/dev/provider.tf",
      "summary": "Declares required Terraform providers (DigitalOcean, Kubernetes, Helm) with pinned versions for the Solr dev deployment.",
      "tags": [
        "infrastructure",
        "terraform",
        "providers",
        "kubernetes",
        "helm"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/dev/main.tf:module.solr",
      "type": "resource",
      "name": "module.solr",
      "filePath": "solr/dev/main.tf",
      "summary": "Terraform module block wiring the shared ../solr_chart module to the dev-k8s-treetracker cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/prod/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "solr/prod/backend.tf",
      "summary": "Terraform backend configuration storing the prod Solr state in a DigitalOcean Spaces bucket via the S3-compatible backend, with AWS-specific validation checks disabled.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the S3 backend against DigitalOcean Spaces; region is spoofed to eu-west-1 with skip_* flags to bypass AWS-only validation."
    },
    {
      "id": "resource:solr/prod/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "solr/prod/main.tf",
      "summary": "Root Terraform module for the prod Solr deployment; instantiates the shared solr_chart module against the prod-k8s-treetracker cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "deployment",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/prod/main.tf:module.solr",
      "type": "resource",
      "name": "module.solr",
      "filePath": "solr/prod/main.tf",
      "lineRange": [
        1,
        4
      ],
      "summary": "Module block sourcing ../solr_chart and passing cluster_name=prod-k8s-treetracker to provision Solr on the production Kubernetes cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/prod/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "solr/prod/provider.tf",
      "summary": "Declares required Terraform providers (digitalocean, kubernetes, helm) with pinned versions for the prod Solr stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "versioning"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/solr_chart/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "solr/solr_chart/main.tf",
      "summary": "Terraform root module that deploys Apache Solr and the Solr Operator via Helm releases onto a DigitalOcean Kubernetes cluster, reading cluster credentials from a DO data source.",
      "tags": [
        "infrastructure",
        "deployment",
        "kubernetes",
        "helm",
        "terraform"
      ],
      "complexity": "simple",
      "languageNotes": "Uses a helm provider configured from a digitalocean_kubernetes_cluster data source; chart values pulled from local YAML files plus overridable variables."
    },
    {
      "id": "resource:solr/solr_chart/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "solr/solr_chart/provider.tf",
      "summary": "Terraform settings block pinning the digitalocean, kubernetes, and helm provider versions required by the Solr chart module.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "provider"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:solr/solr_chart/solr-operator-values.yaml",
      "type": "config",
      "name": "solr-operator-values.yaml",
      "filePath": "solr/solr_chart/solr-operator-values.yaml",
      "summary": "Helm values overrides for the Solr Operator chart, toggling the bundled zookeeper-operator component.",
      "tags": [
        "configuration",
        "helm",
        "kubernetes",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:solr/solr_chart/solr-values.yaml",
      "type": "config",
      "name": "solr-values.yaml",
      "filePath": "solr/solr_chart/solr-values.yaml",
      "summary": "Empty Helm values file placeholder for the Solr chart, consumed as base values by the solr helm_release.",
      "tags": [
        "configuration",
        "helm",
        "kubernetes",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/solr_chart/variables.tf",
      "type": "resource",
      "name": "variables.tf",
      "filePath": "solr/solr_chart/variables.tf",
      "summary": "Declares input variables for the Solr chart module: the target cluster name and optional extra values files for the operator and Solr Helm releases.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "variables"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/solr_chart/main.tf:helm_release.solr_operator",
      "type": "resource",
      "name": "helm_release.solr_operator",
      "filePath": "solr/solr_chart/main.tf",
      "lineRange": [
        18,
        32
      ],
      "summary": "Helm release deploying the Solr Operator chart (v0.7.0) into the solr namespace, creating the namespace and merging local plus variable-provided values.",
      "tags": [
        "deployment",
        "helm",
        "kubernetes",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/solr_chart/main.tf:helm_release.solr",
      "type": "resource",
      "name": "helm_release.solr",
      "filePath": "solr/solr_chart/main.tf",
      "lineRange": [
        35,
        49
      ],
      "summary": "Helm release deploying the Apache Solr chart (v0.7.0) into the solr namespace, using local and variable-provided values files.",
      "tags": [
        "deployment",
        "helm",
        "kubernetes",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/test/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "solr/test/backend.tf",
      "summary": "Terraform backend configuration storing the Solr test environment state in a DigitalOcean Spaces bucket via the S3-compatible protocol.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state-management",
        "digitalocean"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the S3 backend against DigitalOcean Spaces with credential/region/metadata validation checks disabled to bypass AWS-specific validation."
    },
    {
      "id": "resource:solr/test/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "solr/test/main.tf",
      "summary": "Root Terraform module for the Solr test environment that instantiates the shared solr_chart module against the test-k8s-treetracker cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "solr",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/test/main.tf:module.solr",
      "type": "resource",
      "name": "module.solr",
      "filePath": "solr/test/main.tf",
      "lineRange": [
        1,
        4
      ],
      "summary": "Module block that deploys the reusable solr_chart into the test-k8s-treetracker Kubernetes cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "module",
        "solr"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:solr/test/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "solr/test/provider.tf",
      "summary": "Pins the required Terraform providers (DigitalOcean, Kubernetes, Helm) with specific versions for the Solr test environment.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "versioning",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:tag_lister/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "tag_lister/README.md",
      "summary": "Usage guide for the tag_lister tool that dumps Kubernetes deployment tags per cluster, covering cluster access, dependency install, and how to run the listing script.",
      "tags": [
        "documentation",
        "entry-point",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:tag_lister/compare.sh",
      "type": "file",
      "name": "compare.sh",
      "filePath": "tag_lister/compare.sh",
      "summary": "Shell script that lists treetracker deployment tags on the dev and test Kubernetes clusters and diffs the two outputs with vimdiff.",
      "tags": [
        "script",
        "kubernetes",
        "deployment",
        "utility"
      ],
      "complexity": "simple",
      "languageNotes": "Switches kubectl contexts, pipes python3 list_tags_for_deployments.py output through grep into per-cluster files, then compares with vimdiff."
    },
    {
      "id": "document:tag_lister/requirements.txt",
      "type": "document",
      "name": "requirements.txt",
      "filePath": "tag_lister/requirements.txt",
      "summary": "Python dependency list for the tag_lister tool, pinning the kubernetes client library.",
      "tags": [
        "documentation",
        "dependencies",
        "python",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "terraform/earnings/prod/backend.tf",
      "summary": "Configures the Terraform S3 remote backend for the earnings prod stack, storing state in the treetracker-infrastructure bucket under key terraform-earnings-prod.tfstate.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state",
        "aws"
      ],
      "complexity": "simple",
      "languageNotes": "Uses an S3 backend block for remote state; region hardcoded to us-east-1."
    },
    {
      "id": "resource:terraform/earnings/prod/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "terraform/earnings/prod/main.tf",
      "summary": "Provisions the payments batch upload infrastructure: an S3 bucket plus a dedicated IAM user, access key, and scoped GetObject/PutObject policy, with variables and outputs for bucket, region, and credentials.",
      "tags": [
        "infrastructure",
        "terraform",
        "aws",
        "s3",
        "iam"
      ],
      "complexity": "moderate",
      "languageNotes": "IAM user policy embedded as a heredoc JSON document; access key secret output marked sensitive."
    },
    {
      "id": "resource:terraform/earnings/prod/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "terraform/earnings/prod/provider.tf",
      "summary": "Declares the required hashicorp/aws provider (~> 2.0) and configures it for the us-east-1 region.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/main.tf:aws_s3_bucket.payments_upload_bucket",
      "type": "resource",
      "name": "aws_s3_bucket.payments_upload_bucket",
      "filePath": "terraform/earnings/prod/main.tf",
      "lineRange": [
        21,
        24
      ],
      "summary": "S3 bucket that receives payments batch upload files, named and regioned via input variables.",
      "tags": [
        "infrastructure",
        "aws",
        "s3",
        "storage"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/main.tf:aws_iam_user.payments_upload_bucket_user",
      "type": "resource",
      "name": "aws_iam_user.payments_upload_bucket_user",
      "filePath": "terraform/earnings/prod/main.tf",
      "lineRange": [
        26,
        28
      ],
      "summary": "IAM user granted access to the payments upload S3 bucket, named via the payments_upload_user variable.",
      "tags": [
        "infrastructure",
        "aws",
        "iam",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/main.tf:aws_iam_access_key.payments_upload_bucket_user_access_key",
      "type": "resource",
      "name": "aws_iam_access_key.payments_upload_bucket_user_access_key",
      "filePath": "terraform/earnings/prod/main.tf",
      "lineRange": [
        30,
        32
      ],
      "summary": "IAM access key generated for the payments upload user; its id and secret are exposed as stack outputs.",
      "tags": [
        "infrastructure",
        "aws",
        "iam",
        "credentials",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/main.tf:aws_iam_user_policy.payments_upload_bucket_user_policy",
      "type": "resource",
      "name": "aws_iam_user_policy.payments_upload_bucket_user_policy",
      "filePath": "terraform/earnings/prod/main.tf",
      "lineRange": [
        43,
        63
      ],
      "summary": "Inline IAM policy allowing the payments upload user to GetObject and PutObject on the payments-batch-upload S3 path.",
      "tags": [
        "infrastructure",
        "aws",
        "iam",
        "policy",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/apply-dev.sh",
      "type": "file",
      "name": "apply-dev.sh",
      "filePath": "terraform/scripts/apply-dev.sh",
      "summary": "One-line wrapper that runs terraform apply against the dev workspace using dev.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "deployment",
        "dev"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/apply-prod.sh",
      "type": "file",
      "name": "apply-prod.sh",
      "filePath": "terraform/scripts/apply-prod.sh",
      "summary": "One-line wrapper that runs terraform apply against the production workspace using prod.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "deployment",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/apply-test.sh",
      "type": "file",
      "name": "apply-test.sh",
      "filePath": "terraform/scripts/apply-test.sh",
      "summary": "One-line wrapper that runs terraform apply against the test workspace using test.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "deployment",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/init.sh",
      "type": "file",
      "name": "init.sh",
      "filePath": "terraform/scripts/init.sh",
      "summary": "One-line wrapper that runs terraform init to initialize the Terraform working directory and backend.",
      "tags": [
        "script",
        "terraform",
        "initialization",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/plan-dev.sh",
      "type": "file",
      "name": "plan-dev.sh",
      "filePath": "terraform/scripts/plan-dev.sh",
      "summary": "One-line wrapper that runs terraform plan against the dev workspace using dev.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "planning",
        "dev"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/plan-prod.sh",
      "type": "file",
      "name": "plan-prod.sh",
      "filePath": "terraform/scripts/plan-prod.sh",
      "summary": "One-line wrapper that runs terraform plan against the production workspace using prod.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "planning",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/plan-test.sh",
      "type": "file",
      "name": "plan-test.sh",
      "filePath": "terraform/scripts/plan-test.sh",
      "summary": "One-line wrapper that runs terraform plan against the test workspace using test.env.tfvars.",
      "tags": [
        "script",
        "terraform",
        "planning",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:terraform/scripts/setup-aws-keys.sh",
      "type": "file",
      "name": "setup-aws-keys.sh",
      "filePath": "terraform/scripts/setup-aws-keys.sh",
      "summary": "Sources AWS access and secret keys from the user's ~/.netrc (aws.treetracker.org entry) into environment variables for the DigitalOcean Spaces backend before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "security",
        "aws",
        "terraform"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced, not executed, so exports persist in the calling shell."
    },
    {
      "id": "file:terraform/scripts/setup-dev-aws-keys.sh",
      "type": "file",
      "name": "setup-dev-aws-keys.sh",
      "filePath": "terraform/scripts/setup-dev-aws-keys.sh",
      "summary": "Sources dev AWS access and secret keys from the user's ~/.netrc (aws.dev.treetracker.org entry) into environment variables for the DigitalOcean Spaces backend before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "security",
        "aws",
        "dev"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced, not executed, so exports persist in the calling shell."
    },
    {
      "id": "file:terraform/scripts/setup-keys-prod.sh",
      "type": "file",
      "name": "setup-keys-prod.sh",
      "filePath": "terraform/scripts/setup-keys-prod.sh",
      "summary": "Sources production AWS access and secret keys from the user's ~/.netrc (digitalocean.production.treetracker.org entry) into environment variables for the DigitalOcean Spaces backend before running Terraform.",
      "tags": [
        "script",
        "credentials",
        "security",
        "aws",
        "production"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced, not executed, so exports persist in the calling shell."
    },
    {
      "id": "document:tracing/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "tracing/README.md",
      "summary": "Brief documentation for the Jaeger distributed tracing setup, explaining what Jaeger is and how to deploy it via kubectl against DigitalOcean.",
      "tags": [
        "documentation",
        "tracing",
        "jaeger",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:tracing/simple-tracing-playbook.yml",
      "type": "config",
      "name": "simple-tracing-playbook.yml",
      "filePath": "tracing/simple-tracing-playbook.yml",
      "summary": "Ansible playbook that installs Jaeger all-in-one on localhost by applying the jaeger_operator and simple_jaeger roles.",
      "tags": [
        "ansible",
        "playbook",
        "tracing",
        "jaeger",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Ansible playbook targeting the localhost-py3 host with a local connection and no fact gathering."
    },
    {
      "id": "config:tracing/trace-ambassador.yml",
      "type": "config",
      "name": "trace-ambassador.yml",
      "filePath": "tracing/trace-ambassador.yml",
      "summary": "Ansible playbook that adds the tracing plugin for the Ambassador API gateway by applying the trace_ambassador role.",
      "tags": [
        "ansible",
        "playbook",
        "tracing",
        "ambassador",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Ansible playbook targeting the localhost-py3 host with a local connection."
    },
    {
      "id": "resource:web-apps/terraform-admin/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "web-apps/terraform-admin/backend.tf",
      "summary": "Terraform backend configuration storing the admin web-apps state in the shared treetracker-infrastructure S3 bucket in us-east-1.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-backend",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Uses an S3 remote backend so Terraform state is shared and versioned across operators."
    },
    {
      "id": "resource:web-apps/terraform-admin/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "web-apps/terraform-admin/provider.tf",
      "summary": "Declares the required AWS provider (hashicorp/aws ~> 2.0) and configures it for the us-east-1 region for all admin panel resources.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/dev-admin-panel.tf",
      "type": "resource",
      "name": "dev-admin-panel.tf",
      "filePath": "web-apps/terraform-admin/dev-admin-panel.tf",
      "summary": "Provisions the dev admin panel static website (dev-admin.treetracker.org) via the shared Greenstand terraform-aws-staticwebsite module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/staging-admin-panel.tf",
      "type": "resource",
      "name": "staging-admin-panel.tf",
      "filePath": "web-apps/terraform-admin/staging-admin-panel.tf",
      "summary": "Provisions the staging admin panel static website (staging-admin.treetracker.org) via the shared Greenstand terraform-aws-staticwebsite module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/test-admin-panel.tf",
      "type": "resource",
      "name": "test-admin-panel.tf",
      "filePath": "web-apps/terraform-admin/test-admin-panel.tf",
      "summary": "Provisions the test admin panel static website (test.admin.treetracker.org) via the shared Greenstand terraform-aws-staticwebsite module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/prod-admin-panel.tf",
      "type": "resource",
      "name": "prod-admin-panel.tf",
      "filePath": "web-apps/terraform-admin/prod-admin-panel.tf",
      "summary": "Provisions the production admin panel static website (admin.treetracker.org) via the shared Greenstand terraform-aws-staticwebsite module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/dev-admin-panel.tf:dev-admin-panel",
      "type": "resource",
      "name": "dev-admin-panel",
      "filePath": "web-apps/terraform-admin/dev-admin-panel.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance building the dev-admin.treetracker.org static site from the external terraform-aws-staticwebsite module with index.html as error document.",
      "tags": [
        "terraform-module",
        "static-website",
        "dev",
        "s3"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/staging-admin-panel.tf:staging-admin-panel",
      "type": "resource",
      "name": "staging-admin-panel",
      "filePath": "web-apps/terraform-admin/staging-admin-panel.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance building the staging-admin.treetracker.org static site from the external terraform-aws-staticwebsite module with index.html as error document.",
      "tags": [
        "terraform-module",
        "static-website",
        "staging",
        "s3"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/test-admin-panel.tf:test-admin-panel",
      "type": "resource",
      "name": "test-admin-panel",
      "filePath": "web-apps/terraform-admin/test-admin-panel.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance building the test.admin.treetracker.org static site from the external terraform-aws-staticwebsite module with index.html as error document.",
      "tags": [
        "terraform-module",
        "static-website",
        "test",
        "s3"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform-admin/prod-admin-panel.tf:prod-admin-panel",
      "type": "resource",
      "name": "prod-admin-panel",
      "filePath": "web-apps/terraform-admin/prod-admin-panel.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance building the production admin.treetracker.org static site from the external terraform-aws-staticwebsite module with index.html as error document.",
      "tags": [
        "terraform-module",
        "static-website",
        "production",
        "s3"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "web-apps/terraform/backend.tf",
      "summary": "Configures the Terraform S3 remote backend that stores the web-apps state file in the treetracker-infrastructure bucket.",
      "tags": [
        "infrastructure",
        "terraform",
        "state-management",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Terraform backend block only; no resources, so state is centralized in S3 (us-east-1)."
    },
    {
      "id": "resource:web-apps/terraform/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "web-apps/terraform/provider.tf",
      "summary": "Declares the required AWS provider (hashicorp/aws ~> 2.0) and sets the us-east-1 region for all web-apps Terraform resources.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/dev-web-map.tf",
      "type": "resource",
      "name": "dev-web-map.tf",
      "filePath": "web-apps/terraform/dev-web-map.tf",
      "summary": "Provisions the development web map static website (dev.webmap.treetracker.org) via the shared Greenstand static-website module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/dev-web-wallet.tf",
      "type": "resource",
      "name": "dev-web-wallet.tf",
      "filePath": "web-apps/terraform/dev-web-wallet.tf",
      "summary": "Provisions the development wallet static website (dev.wallet.treetracker.org) via the shared Greenstand static-website module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/prod-web-map.tf",
      "type": "resource",
      "name": "prod-web-map.tf",
      "filePath": "web-apps/terraform/prod-web-map.tf",
      "summary": "Provisions the production web map static website (webmap.treetracker.org) with S3 redirect routing rules that rewrite tree/ and finorx- prefixes to map.treetracker.org.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment",
        "routing"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses a heredoc (EOF) to pass JSON S3 routing_rules into the module."
    },
    {
      "id": "resource:web-apps/terraform/staging-web-map.tf",
      "type": "resource",
      "name": "staging-web-map.tf",
      "filePath": "web-apps/terraform/staging-web-map.tf",
      "summary": "Provisions the staging web map static website (staging-map.treetracker.org) with S3 redirect routing rules for tree/ and finorx- prefixes.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment",
        "routing"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses a heredoc (EOF) to pass JSON S3 routing_rules into the module."
    },
    {
      "id": "resource:web-apps/terraform/test-web-map.tf",
      "type": "resource",
      "name": "test-web-map.tf",
      "filePath": "web-apps/terraform/test-web-map.tf",
      "summary": "Provisions the test web map static website (test.webmap.treetracker.org) via the shared Greenstand static-website module.",
      "tags": [
        "infrastructure",
        "terraform",
        "static-website",
        "deployment",
        "testing"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/dev-web-map.tf:staticwebsite",
      "type": "resource",
      "name": "module.staticwebsite",
      "filePath": "web-apps/terraform/dev-web-map.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance deploying the dev web map static site from github.com/Greenstand/terraform-aws-staticwebsite.",
      "tags": [
        "terraform",
        "module",
        "static-website",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/dev-web-wallet.tf:dev-web-wallet",
      "type": "resource",
      "name": "module.dev-web-wallet",
      "filePath": "web-apps/terraform/dev-web-wallet.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance deploying the dev wallet static site from github.com/Greenstand/terraform-aws-staticwebsite.",
      "tags": [
        "terraform",
        "module",
        "static-website",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:web-apps/terraform/prod-web-map.tf:prod-web-map",
      "type": "resource",
      "name": "module.prod-web-map",
      "filePath": "web-apps/terraform/prod-web-map.tf",
      "lineRange": [
        1,
        26
      ],
      "summary": "Terraform module instance deploying the production web map static site with routing rules from github.com/Greenstand/terraform-aws-staticwebsite.",
      "tags": [
        "terraform",
        "module",
        "static-website",
        "routing",
        "production"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:web-apps/terraform/staging-web-map.tf:staging-web-map",
      "type": "resource",
      "name": "module.staging-web-map",
      "filePath": "web-apps/terraform/staging-web-map.tf",
      "lineRange": [
        1,
        26
      ],
      "summary": "Terraform module instance deploying the staging web map static site with routing rules from github.com/Greenstand/terraform-aws-staticwebsite.",
      "tags": [
        "terraform",
        "module",
        "static-website",
        "routing",
        "staging"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:web-apps/terraform/test-web-map.tf:test-web-map",
      "type": "resource",
      "name": "module.test-web-map",
      "filePath": "web-apps/terraform/test-web-map.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Terraform module instance deploying the test web map static site from github.com/Greenstand/terraform-aws-staticwebsite.",
      "tags": [
        "terraform",
        "module",
        "static-website",
        "testing"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.pre-commit-config.yaml",
      "type": "config",
      "name": ".pre-commit-config.yaml",
      "filePath": ".pre-commit-config.yaml",
      "summary": "Pre-commit hook configuration running the terraform_fmt hook from pre-commit-terraform on every commit to keep Terraform files formatted.",
      "tags": [
        "configuration",
        "ci-cd",
        "terraform",
        "linting"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "README.md",
      "summary": "Top-level project overview describing the treetracker cloud infrastructure, linking to the ADR repository, and documenting the pre-commit Terraform formatting workflow.",
      "tags": [
        "documentation",
        "entry-point",
        "overview"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/development/group_vars/local",
      "type": "file",
      "name": "local",
      "filePath": "airflow/environments/development/group_vars/local",
      "summary": "Ansible group_vars for the development Airflow deployment, holding Postgres connection settings, base URL, deployment branch, and sealed secrets for admin/user/viewer passwords.",
      "tags": [
        "configuration",
        "ansible",
        "secrets",
        "airflow"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/development/inventory",
      "type": "file",
      "name": "inventory",
      "filePath": "airflow/environments/development/inventory",
      "summary": "Ansible inventory for the development environment defining a single local host targeting localhost with a python3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/production/group_vars/local",
      "type": "file",
      "name": "local",
      "filePath": "airflow/environments/production/group_vars/local",
      "summary": "Ansible group_vars for the production Airflow deployment with Postgres connection settings, base URL, deployment branch, and sealed secret passwords.",
      "tags": [
        "configuration",
        "ansible",
        "secrets",
        "airflow"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/production/inventory",
      "type": "file",
      "name": "inventory",
      "filePath": "airflow/environments/production/inventory",
      "summary": "Ansible inventory for the production environment defining a single local host targeting localhost with a python3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/test/group_vars/local",
      "type": "file",
      "name": "local",
      "filePath": "airflow/environments/test/group_vars/local",
      "summary": "Ansible group_vars for the test Airflow deployment with Postgres connection settings, base URL, deployment branch, and sealed secret passwords.",
      "tags": [
        "configuration",
        "ansible",
        "secrets",
        "airflow"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/environments/test/inventory",
      "type": "file",
      "name": "inventory",
      "filePath": "airflow/environments/test/inventory",
      "summary": "Ansible inventory for the test environment defining a single local host targeting localhost with a python3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:airflow/hosts",
      "type": "file",
      "name": "hosts",
      "filePath": "airflow/hosts",
      "summary": "Default Ansible hosts file for the Airflow role pointing at localhost with a python3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:airflow/roles/airflow/files/panel-mapping.yaml",
      "type": "config",
      "name": "panel-mapping.yaml",
      "filePath": "airflow/roles/airflow/files/panel-mapping.yaml",
      "summary": "Ambassador Mapping resource routing the /airflow/ URL prefix to the airflow-web service on port 8080 for the control panel.",
      "tags": [
        "configuration",
        "ambassador",
        "routing",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:airflow/roles/airflow/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "airflow/roles/airflow/tasks/main.yml",
      "summary": "Ansible task list for the Airflow role that adds the Helm repository, creates Kubernetes secrets for the database and admin/user/viewer accounts, installs the Airflow chart, and applies the control-panel UI mapping.",
      "tags": [
        "ansible",
        "airflow",
        "helm",
        "kubernetes",
        "deployment"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:api_gateway/dev-values.enc",
      "type": "file",
      "name": "dev-values.enc",
      "filePath": "api_gateway/dev-values.enc",
      "summary": "Ansible Vault (AES256) encrypted values file holding development api_gateway secrets; opaque encrypted blob.",
      "tags": [
        "configuration",
        "secrets",
        "ansible-vault",
        "encrypted"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/hosts",
      "type": "file",
      "name": "hosts",
      "filePath": "api_gateway/hosts",
      "summary": "Default Ansible hosts file for the api_gateway role pointing at localhost with a python3 interpreter.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:api_gateway/mappings/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "api_gateway/mappings/README.md",
      "summary": "Short note explaining that the mappings here are manually applied and will eventually move into their own Helm chart alongside the monitoring repository.",
      "tags": [
        "documentation",
        "note",
        "api-gateway"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/prod-values.enc",
      "type": "file",
      "name": "prod-values.enc",
      "filePath": "api_gateway/prod-values.enc",
      "summary": "Ansible Vault (AES256) encrypted values file holding production api_gateway secrets; opaque encrypted blob.",
      "tags": [
        "configuration",
        "secrets",
        "ansible-vault",
        "encrypted"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:api_gateway/produce_yaml_from_pw.py",
      "type": "file",
      "name": "produce_yaml_from_pw.py",
      "filePath": "api_gateway/produce_yaml_from_pw.py",
      "summary": "Helper script that takes a plaintext password argument, sha256+base64+bcrypt hashes it, and prints a base64-encoded userData YAML fragment for the Ambassador basic-auth secret.",
      "tags": [
        "script",
        "security",
        "serialization",
        "api-gateway"
      ],
      "complexity": "simple",
      "languageNotes": "Uses bcrypt, hashlib and base64 to build the userData value consumed by the basic-auth secret manifest."
    },
    {
      "id": "config:api_gateway/redirects/redirect-wallet-v0.yaml",
      "type": "config",
      "name": "redirect-wallet-v0.yaml",
      "filePath": "api_gateway/redirects/redirect-wallet-v0.yaml",
      "summary": "Ambassador redirect mapping for the wallet v0 API path, defining a host redirect at the API gateway.",
      "tags": [
        "configuration",
        "ambassador",
        "routing",
        "redirect"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:api_gateway/redirects/redirect.yaml",
      "type": "config",
      "name": "redirect.yaml",
      "filePath": "api_gateway/redirects/redirect.yaml",
      "summary": "Ambassador redirect mapping defining a host redirect rule at the API gateway.",
      "tags": [
        "configuration",
        "ambassador",
        "routing",
        "redirect"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
      "type": "config",
      "name": "basic-auth-secret.yml",
      "filePath": "api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
      "summary": "Kubernetes Secret template holding the base64 userData for the Ambassador HTTP basic-auth service in the ambassador namespace.",
      "tags": [
        "configuration",
        "kubernetes",
        "secrets",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:api_gateway/roles/ambassador-auth/files/basic-auth-service.yml",
      "type": "config",
      "name": "basic-auth-service.yml",
      "filePath": "api_gateway/roles/ambassador-auth/files/basic-auth-service.yml",
      "summary": "Multi-document Kubernetes manifest defining the Ambassador AuthService, Deployment, Service, and Mapping that enforce HTTP basic authentication at the API gateway.",
      "tags": [
        "configuration",
        "kubernetes",
        "ambassador",
        "authentication",
        "middleware"
      ],
      "complexity": "moderate",
      "languageNotes": "Single file bundles four Kubernetes resources separated by --- document markers."
    },
    {
      "id": "config:api_gateway/roles/ambassador-auth/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "api_gateway/roles/ambassador-auth/tasks/main.yml",
      "summary": "Ansible task list for the ambassador-auth role that adds the Helm repository and installs the basic-auth secret and auth service/mapping manifests.",
      "tags": [
        "ansible",
        "kubernetes",
        "authentication",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:api_gateway/roles/ambassador/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "api_gateway/roles/ambassador/tasks/main.yml",
      "summary": "Ansible task list for the ambassador role that adds and updates the Helm repo, installs the Ambassador API gateway chart with resource limits and node affinity, and creates a ServiceMonitor to expose metrics.",
      "tags": [
        "ansible",
        "ambassador",
        "helm",
        "kubernetes",
        "monitoring"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:api_gateway/test-values.enc",
      "type": "file",
      "name": "test-values.enc",
      "filePath": "api_gateway/test-values.enc",
      "summary": "Ansible Vault (AES256) encrypted values file holding test api_gateway secrets; opaque encrypted blob.",
      "tags": [
        "configuration",
        "secrets",
        "ansible-vault",
        "encrypted"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:aws_access/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "aws_access/README.md",
      "summary": "Getting-started note explaining that AWS role assumption and local credentials are needed to run the Terraform that provisions API users and the shared state buckets.",
      "tags": [
        "documentation",
        "aws",
        "terraform",
        "getting-started"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:botkube/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "botkube/README.md",
      "summary": "Overview and installation notes for BotKube, a Kubernetes cluster monitoring and alerting bot integrated with chat platforms.",
      "tags": [
        "documentation",
        "kubernetes",
        "monitoring",
        "overview"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:cdn-images-api/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "cdn-images-api/main.tf",
      "summary": "Terraform definition of an AWS CloudFront distribution that serves the treetracker images CDN over an S3/origin backend.",
      "tags": [
        "infrastructure",
        "terraform",
        "cdn",
        "aws",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "Single aws_cloudfront_distribution resource with cache behavior and origin config."
    },
    {
      "id": "resource:cdn-images-api/main.tf:aws_cloudfront_distribution.images_cdn",
      "type": "resource",
      "name": "aws_cloudfront_distribution.images_cdn",
      "filePath": "cdn-images-api/main.tf",
      "lineRange": [
        1,
        55
      ],
      "summary": "CloudFront distribution resource that caches and serves treetracker images from the CDN origin.",
      "tags": [
        "cdn",
        "aws",
        "cloudfront",
        "infrastructure"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:cdn-images-api/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "cdn-images-api/provider.tf",
      "summary": "Terraform provider and AWS credential variable declarations for the CDN images distribution stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "aws"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:ckan/ansible.cfg",
      "type": "config",
      "name": "ansible.cfg",
      "filePath": "ckan/ansible.cfg",
      "summary": "Ansible configuration setting the local hosts inventory, SSH key, and Python interpreter for the CKAN deployment playbook.",
      "tags": [
        "configuration",
        "ansible",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:ckan/ckan-playbook.yml",
      "type": "config",
      "name": "ckan-playbook.yml",
      "filePath": "ckan/ckan-playbook.yml",
      "summary": "Ansible playbook entry point that applies the ckan role to install the CKAN data portal.",
      "tags": [
        "configuration",
        "ansible",
        "deployment",
        "entry-point"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:ckan/dev-values.enc",
      "type": "config",
      "name": "dev-values.enc",
      "filePath": "ckan/dev-values.enc",
      "summary": "Ansible Vault (AES256) encrypted secrets file holding development values for the CKAN deployment.",
      "tags": [
        "configuration",
        "security",
        "secrets",
        "encrypted"
      ],
      "complexity": "simple",
      "languageNotes": "Opaque ANSIBLE_VAULT 1.1 AES256 ciphertext; contents not readable without the vault key."
    },
    {
      "id": "config:ckan/hosts",
      "type": "config",
      "name": "hosts",
      "filePath": "ckan/hosts",
      "summary": "Ansible inventory defining a single localhost target with a Python 3 interpreter for the CKAN playbook.",
      "tags": [
        "configuration",
        "ansible",
        "inventory"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:ckan/roles/ckan/tasks/main.yaml",
      "type": "config",
      "name": "main.yaml",
      "filePath": "ckan/roles/ckan/tasks/main.yaml",
      "summary": "Ansible role tasks that add the keitaro Helm repo, create a headless service and endpoint to the external CKAN database, and install CKAN.",
      "tags": [
        "configuration",
        "ansible",
        "kubernetes",
        "helm",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:database-grants/terraform/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "database-grants/terraform/README.md",
      "summary": "Setup and operation guide for the database-grants Terraform, covering prerequisites, running plans/applies per schema, the extra folder, and troubleshooting.",
      "tags": [
        "documentation",
        "terraform",
        "database",
        "guide"
      ],
      "complexity": "moderate"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/messaging/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/dev/schemas/messaging/main.tf",
      "summary": "Instantiates the microservice_schema module for the dev messaging schema with standard table grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/messaging/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/dev/schemas/messaging/main.tf",
      "lineRange": [
        2,
        6
      ],
      "summary": "Module call provisioning the dev messaging PostgreSQL schema, service role, and table grants.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/messaging/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/dev/schemas/messaging/provider.tf",
      "summary": "PostgreSQL provider configuration for the dev messaging schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "summary": "Provisions the dev queue schema via the microservice_schema module plus a generated service role and explicit schema, table, and sequence grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Module call provisioning the dev queue PostgreSQL schema and service role.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:random_password.s_password",
      "type": "resource",
      "name": "random_password.s_password",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        7,
        11
      ],
      "summary": "Generates a random 16-character password for the queue service database user.",
      "tags": [
        "terraform",
        "security",
        "database",
        "secrets"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_role.service_user",
      "type": "resource",
      "name": "postgresql_role.service_user",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        13,
        18
      ],
      "summary": "Creates the s_queue PostgreSQL login role with the queue schema search path.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.service-user-usage",
      "type": "resource",
      "name": "postgresql_grant.service-user-usage",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        21,
        27
      ],
      "summary": "Grants USAGE and CREATE on the queue schema to the s_queue role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.table-service-user",
      "type": "resource",
      "name": "postgresql_grant.table-service-user",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        29,
        35
      ],
      "summary": "Grants CRUD table privileges on the queue schema to the s_queue role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.sequence-service-user",
      "type": "resource",
      "name": "postgresql_grant.sequence-service-user",
      "filePath": "database-grants/terraform/dev/schemas/queue/main.tf",
      "lineRange": [
        37,
        44
      ],
      "summary": "Grants USAGE and SELECT on queue schema sequences to the s_queue role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/dev/schemas/queue/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/dev/schemas/queue/provider.tf",
      "summary": "PostgreSQL provider configuration for the dev queue schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database-grants/terraform/notes/import",
      "type": "file",
      "name": "import",
      "filePath": "database-grants/terraform/notes/import",
      "summary": "Note recording the terraform import command to bring the airflow schema service_user role into Terraform state.",
      "tags": [
        "documentation",
        "terraform",
        "notes"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "summary": "Grants the wallet-operator role read/write access across the public, herbarium, stakeholder, and treetracker schemas in the prod database.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "moderate",
      "languageNotes": "Fifteen postgresql_grant resources following a repeated schema/table/sequence pattern per target schema."
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-schema",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        1,
        7
      ],
      "summary": "Grants schema-level privileges to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-table",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        9,
        15
      ],
      "summary": "Grants table privileges to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-seq",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        17,
        24
      ],
      "summary": "Grants sequence privileges to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-public",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-schema-public",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        26,
        32
      ],
      "summary": "Grants schema-level privileges on the public schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-public",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-table-public",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        34,
        40
      ],
      "summary": "Grants table privileges on the public schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-public",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-seq-public",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        43,
        50
      ],
      "summary": "Grants sequence privileges on the public schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-herbarium",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-schema-herbarium",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        53,
        59
      ],
      "summary": "Grants schema-level privileges on the herbarium schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-herbarium",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-table-herbarium",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        61,
        67
      ],
      "summary": "Grants table privileges on the herbarium schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-herbarium",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-seq-herbarium",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        70,
        76
      ],
      "summary": "Grants sequence privileges on the herbarium schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-stakeholder",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-schema-stakeholder",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        79,
        85
      ],
      "summary": "Grants schema-level privileges on the stakeholder schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-stakeholder",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-table-stakeholder",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        87,
        93
      ],
      "summary": "Grants table privileges on the stakeholder schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-stakeholder",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-seq-stakeholder",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        96,
        102
      ],
      "summary": "Grants sequence privileges on the stakeholder schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-treetracker",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-schema-treetracker",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        105,
        111
      ],
      "summary": "Grants schema-level privileges on the treetracker schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-treetracker",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-table-treetracker",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        113,
        119
      ],
      "summary": "Grants table privileges on the treetracker schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-treetracker",
      "type": "resource",
      "name": "postgresql_grant.wallet-operator-seq-treetracker",
      "filePath": "database-grants/terraform/prod/extra/main.tf",
      "lineRange": [
        122,
        128
      ],
      "summary": "Grants sequence privileges on the treetracker schema to the wallet-operator role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/extra/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/extra/provider.tf",
      "summary": "PostgreSQL provider configuration for the prod extra grants Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "summary": "Provisions the prod airflow PostgreSQL schema, a generated service role, and schema/table/sequence grants for the s_airflow user.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_schema.microservice_schema",
      "type": "resource",
      "name": "postgresql_schema.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        1,
        8
      ],
      "summary": "Creates the airflow PostgreSQL schema in the prod database.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:random_password.s_password",
      "type": "resource",
      "name": "random_password.s_password",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        10,
        14
      ],
      "summary": "Generates a random password for the airflow service database user.",
      "tags": [
        "terraform",
        "security",
        "database",
        "secrets"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_role.service_user",
      "type": "resource",
      "name": "postgresql_role.service_user",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        16,
        21
      ],
      "summary": "Creates the s_airflow PostgreSQL login role for the airflow schema.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.service-user-usage",
      "type": "resource",
      "name": "postgresql_grant.service-user-usage",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        24,
        30
      ],
      "summary": "Grants USAGE/CREATE on the airflow schema to the s_airflow role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.table-service-user",
      "type": "resource",
      "name": "postgresql_grant.table-service-user",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        32,
        38
      ],
      "summary": "Grants table privileges on the airflow schema to the s_airflow role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.sequence-service-user",
      "type": "resource",
      "name": "postgresql_grant.sequence-service-user",
      "filePath": "database-grants/terraform/prod/schemas/airflow/main.tf",
      "lineRange": [
        40,
        47
      ],
      "summary": "Grants sequence privileges on the airflow schema to the s_airflow role.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/airflow/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/airflow/provider.tf",
      "summary": "PostgreSQL provider configuration for the prod airflow schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/contracts/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/contracts/main.tf",
      "summary": "Instantiates the microservice_schema module for the prod contracts schema.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/contracts/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/contracts/main.tf",
      "lineRange": [
        2,
        5
      ],
      "summary": "Module call provisioning the prod contracts PostgreSQL schema and service role.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/contracts/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/contracts/provider.tf",
      "summary": "PostgreSQL provider configuration for the prod contracts schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/denormalized/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/denormalized/main.tf",
      "summary": "Instantiates the microservice_schema module for the prod denormalized schema with standard table grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/denormalized/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/denormalized/main.tf",
      "lineRange": [
        2,
        6
      ],
      "summary": "Module call provisioning the prod denormalized PostgreSQL schema and service role.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/denormalized/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/denormalized/provider.tf",
      "summary": "PostgreSQL provider configuration for the prod denormalized schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/earnings/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/earnings/main.tf",
      "summary": "Instantiates the microservice_schema module for the prod earnings schema.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/earnings/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/earnings/main.tf",
      "lineRange": [
        2,
        5
      ],
      "summary": "Module call provisioning the prod earnings PostgreSQL schema and service role.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/earnings/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/earnings/provider.tf",
      "summary": "PostgreSQL provider configuration for the prod earnings schema Terraform stack.",
      "tags": [
        "infrastructure",
        "terraform",
        "provider",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/field_data/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/field_data/main.tf",
      "summary": "Provisions the prod field_data schema via the microservice_schema module and grants the s_field_data role legacy access to public tables and sequences.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/field_data/main.tf",
      "lineRange": [
        2,
        5
      ],
      "summary": "Module call provisioning the prod field_data PostgreSQL schema and service role.",
      "tags": [
        "terraform",
        "module",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access",
      "type": "resource",
      "name": "postgresql_grant.legacy_field_data_access",
      "filePath": "database-grants/terraform/prod/schemas/field_data/main.tf",
      "lineRange": [
        7,
        14
      ],
      "summary": "Grants SELECT/INSERT on public tables to the s_field_data role for legacy access.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access_sequence",
      "type": "resource",
      "name": "postgresql_grant.legacy_field_data_access_sequence",
      "filePath": "database-grants/terraform/prod/schemas/field_data/main.tf",
      "lineRange": [
        16,
        22
      ],
      "summary": "Grants SELECT/USAGE on public sequences to the s_field_data role for legacy access.",
      "tags": [
        "terraform",
        "database",
        "postgresql",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/field_data/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/field_data/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the field_data schema grants module.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple",
      "languageNotes": "Only a terraform{} required_providers block; no resources declared here."
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "summary": "Provisions the PostgreSQL keycloak schema, a generated service-user password, the s_keycloak role, and schema/table/sequence grants on the treetracker database.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "grants",
        "keycloak"
      ],
      "complexity": "moderate",
      "languageNotes": "Directly declares postgresql_* resources instead of reusing the shared microservice_schema module."
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the keycloak schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/messaging/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/messaging/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the messaging schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "messaging"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/messaging/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/messaging/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the messaging schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "summary": "Creates the query schema via the shared module and grants the s_query role read-only USAGE/SELECT access across messaging, treetracker, stakeholder, regions, and public schemas.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "moderate",
      "languageNotes": "Aggregates cross-schema SELECT grants so the query service can read from all microservice schemas."
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/query/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the query schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/regions/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/regions/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the regions schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "regions"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/regions/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/regions/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the regions schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/reporting/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/reporting/main.tf",
      "summary": "Instantiates the shared microservice_schema module for the reporting schema, extending the service-user table grants to include INSERT/UPDATE/DELETE.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "reporting"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/reporting/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/reporting/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the reporting schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/stakeholder/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/stakeholder/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the stakeholder schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "stakeholder"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/stakeholder/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/stakeholder/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the stakeholder schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/treetracker/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/treetracker/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the core treetracker schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "treetracker"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/treetracker/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/treetracker/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the treetracker schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/wallet/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/wallet/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the wallet schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/wallet/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/wallet/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the wallet schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/webmap/main.tf",
      "type": "resource",
      "name": "main.tf",
      "filePath": "database-grants/terraform/prod/schemas/webmap/main.tf",
      "summary": "Instantiates the shared microservice_schema module to create the webmap schema, service role, and default grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "schema-definition",
        "webmap"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/webmap/provider.tf",
      "type": "resource",
      "name": "provider.tf",
      "filePath": "database-grants/terraform/prod/schemas/webmap/provider.tf",
      "summary": "Terraform provider configuration pinning the cyrilgdn/postgresql provider (v1.22.0) for the webmap schema grants.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "provider-config"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database-grants/terraform/prod/scripts/setup_keys.sh",
      "type": "file",
      "name": "setup_keys.sh",
      "filePath": "database-grants/terraform/prod/scripts/setup_keys.sh",
      "summary": "Helper shell script that reads DigitalOcean Spaces credentials from ~/.netrc and exports them as AWS_ACCESS_KEY_ID/SECRET for the Terraform S3-compatible backend.",
      "tags": [
        "script",
        "infrastructure",
        "security",
        "credentials",
        "terraform"
      ],
      "complexity": "simple",
      "languageNotes": "Meant to be sourced before terraform commands so the exported env vars persist in the shell."
    },
    {
      "id": "file:database/terraform/old",
      "type": "file",
      "name": "old",
      "filePath": "database/terraform/old",
      "summary": "Legacy extensionless Terraform fragment declaring digitalocean_database_user resources (admin, manager, analyst, service, and migration users) against the treetracker Postgres cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "database",
        "legacy",
        "user-management"
      ],
      "complexity": "moderate",
      "languageNotes": "Extensionless HCL file (scanner language 'unknown'); appears to be a retired/backup copy of database user definitions."
    },
    {
      "id": "config:docs/_config.yml",
      "type": "config",
      "name": "_config.yml",
      "filePath": "docs/_config.yml",
      "summary": "GitHub Pages Jekyll configuration selecting the jekyll-theme-slate theme for the project documentation site.",
      "tags": [
        "configuration",
        "documentation",
        "jekyll",
        "github-pages"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:docs/index.md",
      "type": "document",
      "name": "index.md",
      "filePath": "docs/index.md",
      "summary": "GitHub Pages landing page describing Greenstand's current cloud architecture, the Kubernetes application platform, and where to get support.",
      "tags": [
        "documentation",
        "entry-point",
        "architecture",
        "overview"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:keycloak/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "keycloak/README.md",
      "summary": "Documents prerequisites, usage, and troubleshooting for the Keycloak deployment script targeting the Greenstand Kubernetes cluster.",
      "tags": [
        "documentation",
        "keycloak",
        "deployment",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:keycloak/deploy.sh",
      "type": "file",
      "name": "deploy.sh",
      "filePath": "keycloak/deploy.sh",
      "summary": "Interactive deployment script that prompts for a target environment, validates the current kubectl context, and runs the Ansible playbook to deploy Keycloak to the Greenstand Kubernetes cluster.",
      "tags": [
        "script",
        "deployment",
        "keycloak",
        "kubernetes",
        "ansible"
      ],
      "complexity": "moderate",
      "languageNotes": "Bridges shell, Node.js helpers (checkK8sClusterNameByEnv.js), and ansible-playbook for cluster-safe deploys."
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_schema.keycloak_schema",
      "type": "resource",
      "name": "postgresql_schema.keycloak_schema",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        1,
        5
      ],
      "summary": "Creates the keycloak PostgreSQL schema owned by doadmin.",
      "tags": [
        "terraform",
        "database",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:random_password.s_password",
      "type": "resource",
      "name": "random_password.s_password",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        7,
        11
      ],
      "summary": "Generates a 16-character random password for the keycloak service role.",
      "tags": [
        "terraform",
        "security",
        "credentials"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_role.service_user",
      "type": "resource",
      "name": "postgresql_role.service_user",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        13,
        18
      ],
      "summary": "Defines the s_keycloak login role with the generated password and a keycloak/public search path.",
      "tags": [
        "terraform",
        "database",
        "role",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.service-user-usage",
      "type": "resource",
      "name": "postgresql_grant.service-user-usage",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        21,
        27
      ],
      "summary": "Grants USAGE and CREATE on the keycloak schema to the s_keycloak role.",
      "tags": [
        "terraform",
        "database",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.table-service-user",
      "type": "resource",
      "name": "postgresql_grant.table-service-user",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        29,
        35
      ],
      "summary": "Grants SELECT/INSERT/UPDATE/DELETE on keycloak schema tables to the s_keycloak role.",
      "tags": [
        "terraform",
        "database",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.sequence-service-user",
      "type": "resource",
      "name": "postgresql_grant.sequence-service-user",
      "filePath": "database-grants/terraform/prod/schemas/keycloak/main.tf",
      "lineRange": [
        37,
        44
      ],
      "summary": "Grants USAGE and SELECT on keycloak schema sequences to the s_keycloak role.",
      "tags": [
        "terraform",
        "database",
        "grants"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:module.microservice_schema",
      "type": "resource",
      "name": "module.microservice_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        2,
        5
      ],
      "summary": "Instantiates the shared microservice_schema module for the query schema.",
      "tags": [
        "terraform",
        "database",
        "module",
        "schema-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_schema",
      "type": "resource",
      "name": "postgresql_grant.query_messaging_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        7,
        13
      ],
      "summary": "Grants USAGE on the messaging schema to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_tables",
      "type": "resource",
      "name": "postgresql_grant.query_messaging_tables",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        15,
        21
      ],
      "summary": "Grants SELECT on messaging schema tables to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_schema",
      "type": "resource",
      "name": "postgresql_grant.query_treetracker_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        23,
        29
      ],
      "summary": "Grants USAGE on the treetracker schema to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_tables",
      "type": "resource",
      "name": "postgresql_grant.query_treetracker_tables",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        31,
        37
      ],
      "summary": "Grants SELECT on treetracker schema tables to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_schema",
      "type": "resource",
      "name": "postgresql_grant.query_stakeholder_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        39,
        45
      ],
      "summary": "Grants USAGE on the stakeholder schema to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_tables",
      "type": "resource",
      "name": "postgresql_grant.query_stakeholder_tables",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        47,
        53
      ],
      "summary": "Grants SELECT on stakeholder schema tables to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_schema",
      "type": "resource",
      "name": "postgresql_grant.query_regions_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        55,
        61
      ],
      "summary": "Grants USAGE on the regions schema to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_tables",
      "type": "resource",
      "name": "postgresql_grant.query_regions_tables",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        63,
        69
      ],
      "summary": "Grants SELECT on regions schema tables to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_public_schema",
      "type": "resource",
      "name": "postgresql_grant.query_public_schema",
      "filePath": "database-grants/terraform/prod/schemas/query/main.tf",
      "lineRange": [
        71,
        77
      ],
      "summary": "Grants USAGE on the public schema to the s_query read role.",
      "tags": [
        "terraform",
        "database",
        "grants",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties",
      "type": "config",
      "name": "messages_en.properties",
      "filePath": "keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties",
      "summary": "Empty English message bundle override for the Keycloak account console treetracker theme, reserved for localized label overrides.",
      "tags": [
        "configuration",
        "keycloak",
        "theme",
        "i18n"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css",
      "type": "file",
      "name": "treetracker.css",
      "filePath": "keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css",
      "summary": "Custom CSS styling for the Keycloak account console under the treetracker branding theme.",
      "tags": [
        "markup",
        "css",
        "keycloak",
        "theme",
        "styling"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:keycloak/lib/docker/themes/treetracker/account/theme.properties",
      "type": "config",
      "name": "theme.properties",
      "filePath": "keycloak/lib/docker/themes/treetracker/account/theme.properties",
      "summary": "Keycloak account theme descriptor extending keycloak.v2 and wiring PatternFly, FontAwesome and treetracker stylesheets.",
      "tags": [
        "configuration",
        "keycloak",
        "theme",
        "account"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:keycloak/lib/docker/themes/treetracker/login/resources/css/treetracker.css",
      "type": "file",
      "name": "treetracker.css",
      "filePath": "keycloak/lib/docker/themes/treetracker/login/resources/css/treetracker.css",
      "summary": "Custom CSS styling for the Keycloak login page under the treetracker branding theme.",
      "tags": [
        "markup",
        "css",
        "keycloak",
        "theme",
        "styling"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:keycloak/lib/docker/themes/treetracker/login/resources/js/treetracker.js",
      "type": "file",
      "name": "treetracker.js",
      "filePath": "keycloak/lib/docker/themes/treetracker/login/resources/js/treetracker.js",
      "summary": "Client-side script that injects a fixed-position overlay linking to the treetracker web map on the Keycloak login page background.",
      "tags": [
        "code",
        "javascript",
        "keycloak",
        "theme",
        "event-handler"
      ],
      "complexity": "simple",
      "languageNotes": "Uses a DOMContentLoaded listener to append a template-literal div to the document body."
    },
    {
      "id": "config:keycloak/lib/docker/themes/treetracker/login/theme.properties",
      "type": "config",
      "name": "theme.properties",
      "filePath": "keycloak/lib/docker/themes/treetracker/login/theme.properties",
      "summary": "Keycloak login theme descriptor extending the base keycloak theme and registering treetracker CSS and JS assets.",
      "tags": [
        "configuration",
        "keycloak",
        "theme",
        "login"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:keycloak/lib/js/checkK8sClusterNameByEnv.js",
      "type": "file",
      "name": "checkK8sClusterNameByEnv.js",
      "filePath": "keycloak/lib/js/checkK8sClusterNameByEnv.js",
      "summary": "CLI helper that validates whether a given DigitalOcean Kubernetes cluster name matches the expected name for a dev/test/prod environment.",
      "tags": [
        "code",
        "javascript",
        "validation",
        "kubernetes",
        "cli"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/development/kustomization.yaml",
      "type": "service",
      "name": "kustomization.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/development/kustomization.yaml",
      "summary": "Kustomize development overlay for Keycloak that layers the sealed-secret resource on top of the shared base manifests.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "kustomize",
        "keycloak",
        "overlay"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:keycloak/lib/kubernetes/overlays/development/sealed-secret.yaml",
      "type": "service",
      "name": "sealed-secret.yaml",
      "filePath": "keycloak/lib/kubernetes/overlays/development/sealed-secret.yaml",
      "summary": "Bitnami SealedSecret holding encrypted Keycloak credentials (password, host, admin username and password) for the development namespace.",
      "tags": [
        "infrastructure",
        "kubernetes",
        "secret",
        "keycloak",
        "security"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:keycloak/lib/playbook.yml",
      "type": "config",
      "name": "playbook.yml",
      "filePath": "keycloak/lib/playbook.yml",
      "summary": "Ansible playbook that installs Python prerequisites and deploys Keycloak to a Kubernetes namespace by applying the environment-specific kustomize overlay.",
      "tags": [
        "configuration",
        "ansible",
        "keycloak",
        "kubernetes",
        "deployment"
      ],
      "complexity": "moderate",
      "languageNotes": "Selects the kustomize overlay directory from a per-environment dictionary via set_fact and deploys through the kubernetes.core.kustomize lookup."
    },
    {
      "id": "file:keycloak/test-website/index.html",
      "type": "file",
      "name": "index.html",
      "filePath": "keycloak/test-website/index.html",
      "summary": "Standalone test website page used to exercise and demonstrate the Keycloak authentication integration.",
      "tags": [
        "markup",
        "html",
        "keycloak",
        "test",
        "demo"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:kubernetes/terraform/import.sh",
      "type": "file",
      "name": "import.sh",
      "filePath": "kubernetes/terraform/import.sh",
      "summary": "One-line helper that imports the existing DigitalOcean Kubernetes cluster into Terraform state using the dev tfvars file.",
      "tags": [
        "infrastructure",
        "terraform",
        "shell",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "type": "resource",
      "name": "cluster-scaled-down.tf",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "summary": "Terraform test configuration provisioning a DigitalOcean Kubernetes cluster with scaled-down microservices, cloud-services and monitoring node pools.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "digitalocean",
        "deployment"
      ],
      "complexity": "moderate",
      "languageNotes": "Sizes node pools via a data.digitalocean_kubernetes_versions data source and a cluster_name variable."
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "type": "resource",
      "name": "cluster-scaled-up.tf",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "summary": "Terraform test configuration provisioning a DigitalOcean Kubernetes cluster with scaled-up microservices, cloud-services and monitoring node pools.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "digitalocean",
        "deployment"
      ],
      "complexity": "moderate",
      "languageNotes": "Mirrors the scaled-down config with larger node counts to test cluster autoscaling behavior."
    },
    {
      "id": "file:monitoring/dev-values.enc",
      "type": "file",
      "name": "dev-values.enc",
      "filePath": "monitoring/dev-values.enc",
      "summary": "Encrypted (SOPS) monitoring stack values for the development environment, holding secret configuration such as credentials and endpoints.",
      "tags": [
        "configuration",
        "monitoring",
        "secret",
        "security",
        "encrypted"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/hosts",
      "type": "file",
      "name": "hosts",
      "filePath": "monitoring/hosts",
      "summary": "Ansible inventory targeting localhost with the Python 3 interpreter for running the monitoring roles.",
      "tags": [
        "configuration",
        "ansible",
        "inventory",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/hosts_vagrant",
      "type": "file",
      "name": "hosts_vagrant",
      "filePath": "monitoring/hosts_vagrant",
      "summary": "Ansible inventory for a local Vagrant VM defining SSH port, user and private key for testing the monitoring roles.",
      "tags": [
        "configuration",
        "ansible",
        "inventory",
        "vagrant",
        "monitoring"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/prod-values.enc",
      "type": "file",
      "name": "prod-values.enc",
      "filePath": "monitoring/prod-values.enc",
      "summary": "Encrypted (SOPS) monitoring stack values for the production environment, holding secret configuration such as credentials and endpoints.",
      "tags": [
        "configuration",
        "monitoring",
        "secret",
        "security",
        "encrypted"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:monitoring/roles/elasticsearch/cleanup.sh",
      "type": "file",
      "name": "cleanup.sh",
      "filePath": "monitoring/roles/elasticsearch/cleanup.sh",
      "summary": "Teardown script that uninstalls the Elasticsearch, Kibana, Filebeat and Curator Helm releases and deletes the Elasticsearch master PVCs.",
      "tags": [
        "script",
        "shell",
        "monitoring",
        "elasticsearch",
        "helm"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/loki/files/values.yaml",
      "type": "config",
      "name": "values.yaml",
      "filePath": "monitoring/roles/loki/files/values.yaml",
      "summary": "Helm values for the Loki logging stack, configuring Loki, Promtail, Fluent-bit and disabling the bundled Grafana and Prometheus.",
      "tags": [
        "configuration",
        "monitoring",
        "loki",
        "logging",
        "helm"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:monitoring/roles/loki/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "monitoring/roles/loki/tasks/main.yml",
      "summary": "Ansible role tasks that add the Loki Helm repository and install the loki-stack chart with the role's custom values.",
      "tags": [
        "configuration",
        "ansible",
        "monitoring",
        "loki",
        "helm"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/metrics_server/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "monitoring/roles/metrics_server/tasks/main.yml",
      "summary": "Ansible role tasks that add the Bitnami Helm repository and install the Kubernetes metrics-server chart.",
      "tags": [
        "configuration",
        "ansible",
        "monitoring",
        "metrics-server",
        "helm"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/metrics_server/tasks/values.yaml",
      "type": "config",
      "name": "values.yaml",
      "filePath": "monitoring/roles/metrics_server/tasks/values.yaml",
      "summary": "Helm values for the metrics-server chart configuring pod affinity and the API service registration.",
      "tags": [
        "configuration",
        "monitoring",
        "metrics-server",
        "helm"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/prometheus_operator/files/monitor-mapping.yaml",
      "type": "config",
      "name": "monitor-mapping.yaml",
      "filePath": "monitoring/roles/prometheus_operator/files/monitor-mapping.yaml",
      "summary": "Prometheus Operator ServiceMonitor/scrape mapping manifests wiring cluster components into Prometheus targets.",
      "tags": [
        "configuration",
        "monitoring",
        "prometheus",
        "kubernetes",
        "observability"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/prometheus_operator/files/values.yaml",
      "type": "config",
      "name": "values.yaml",
      "filePath": "monitoring/roles/prometheus_operator/files/values.yaml",
      "summary": "Helm values for the kube-prometheus-stack configuring the Prometheus Operator, Prometheus, Grafana, Alertmanager, node exporter and control-plane monitoring.",
      "tags": [
        "configuration",
        "monitoring",
        "prometheus",
        "grafana",
        "helm"
      ],
      "complexity": "complex"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "resource",
      "name": "digitalocean_kubernetes_cluster.kubernetes-cluster",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "summary": "DigitalOcean Kubernetes cluster resource for the scaled-down test configuration.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.microservices-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "summary": "Scaled-down node pool hosting microservices workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "summary": "Scaled-down node pool hosting cloud-services workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "summary": "Scaled-down node pool hosting monitoring workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "resource",
      "name": "digitalocean_kubernetes_cluster.kubernetes-cluster",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "summary": "DigitalOcean Kubernetes cluster resource for the scaled-up test configuration.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "digitalocean"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.microservices-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "summary": "Scaled-up node pool hosting microservices workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "summary": "Scaled-up node pool hosting cloud-services workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "resource",
      "name": "digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "filePath": "kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "summary": "Scaled-up node pool hosting monitoring workloads in the test cluster.",
      "tags": [
        "infrastructure",
        "terraform",
        "kubernetes",
        "node-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:monitoring/roles/prometheus_operator/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "monitoring/roles/prometheus_operator/tasks/main.yml",
      "summary": "Ansible role tasks that add the Prometheus Helm repository, install the kube-prometheus-stack, and create the monitoring UI ingress mapping.",
      "tags": [
        "configuration",
        "ansible",
        "monitoring",
        "helm",
        "infrastructure"
      ],
      "complexity": "simple",
      "languageNotes": "Ansible task list using Helm and Kubernetes modules."
    },
    {
      "id": "config:monitoring/test-values.enc",
      "type": "config",
      "name": "test-values.enc",
      "filePath": "monitoring/test-values.enc",
      "summary": "Ansible Vault AES256 encrypted values file holding secret configuration for the monitoring test environment.",
      "tags": [
        "configuration",
        "security",
        "ansible",
        "encrypted",
        "monitoring"
      ],
      "complexity": "simple",
      "languageNotes": "Opaque Ansible Vault ciphertext; contents not readable without the vault key."
    },
    {
      "id": "document:openproject/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "openproject/README.md",
      "summary": "Short deployment note describing how to install OpenProject under the /openproject/ path.",
      "tags": [
        "documentation",
        "deployment",
        "openproject"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:openproject/deployment.yaml",
      "type": "config",
      "name": "deployment.yaml",
      "filePath": "openproject/deployment.yaml",
      "summary": "Kubernetes manifests bundling the namespace, deployment, service, and ingress resources that run OpenProject in the cluster.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "openproject",
        "infrastructure"
      ],
      "complexity": "moderate",
      "languageNotes": "Multi-document YAML with several Kubernetes resource kinds."
    },
    {
      "id": "document:pgpool/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "pgpool/README.md",
      "summary": "Documentation for the PGPool setup covering how to generate config via kustomize, apply to Kubernetes, and test the database connection.",
      "tags": [
        "documentation",
        "pgpool",
        "database",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/overlays/development/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "pgpool/deployment/overlays/development/kustomization.yaml",
      "summary": "Kustomize development overlay for PGPool that references the shared base without patches.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "pgpool"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/overlays/test/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "pgpool/deployment/overlays/test/kustomization.yaml",
      "summary": "Kustomize test overlay for PGPool that references the base and patches it with a test configmap.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "pgpool"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:pgpool/deployment/overlays/test/pgpool_configmap.yaml",
      "type": "config",
      "name": "pgpool_configmap.yaml",
      "filePath": "pgpool/deployment/overlays/test/pgpool_configmap.yaml",
      "summary": "Kubernetes ConfigMap providing PGPool connection pooling settings for the test environment.",
      "tags": [
        "configuration",
        "kubernetes",
        "configmap",
        "pgpool",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:rabbitmq/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "rabbitmq/README.md",
      "summary": "Guide for logging into the cluster and installing RabbitMQ into Kubernetes via the Helm chart and Ansible, plus exposing it for dev use.",
      "tags": [
        "documentation",
        "rabbitmq",
        "kubernetes",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/overlays/dev/definition.yaml",
      "type": "config",
      "name": "definition.yaml",
      "filePath": "rabbitmq/deployment/overlays/dev/definition.yaml",
      "summary": "RabbitMQ cluster spec patch applied by the dev overlay to customize the deployment for development.",
      "tags": [
        "configuration",
        "kubernetes",
        "rabbitmq",
        "patch"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/overlays/dev/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "rabbitmq/deployment/overlays/dev/kustomization.yaml",
      "summary": "Kustomize dev overlay for RabbitMQ that references the base and applies the definition.yaml strategic merge patch.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "rabbitmq"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/overlays/prod/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "rabbitmq/deployment/overlays/prod/kustomization.yaml",
      "summary": "Kustomize production overlay for RabbitMQ that references the shared base without patches.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "rabbitmq"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/deployment/overlays/test/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "rabbitmq/deployment/overlays/test/kustomization.yaml",
      "summary": "Kustomize test overlay for RabbitMQ that references the shared base without patches.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "rabbitmq"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:rabbitmq/expose/expose-service.sh",
      "type": "file",
      "name": "expose-service.sh",
      "filePath": "rabbitmq/expose/expose-service.sh",
      "summary": "One-line helper that applies the expose-service.yaml manifest into the rabbitmq-cluster namespace.",
      "tags": [
        "script",
        "kubernetes",
        "rabbitmq",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:rabbitmq/expose/expose-service.yaml",
      "type": "config",
      "name": "expose-service.yaml",
      "filePath": "rabbitmq/expose/expose-service.yaml",
      "summary": "Kubernetes Service manifest that exposes the RabbitMQ cluster for development access.",
      "tags": [
        "configuration",
        "kubernetes",
        "service",
        "rabbitmq"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:rabbitmq/scripts/get-all.sh",
      "type": "file",
      "name": "get-all.sh",
      "filePath": "rabbitmq/scripts/get-all.sh",
      "summary": "One-line helper that lists all Kubernetes resources labeled for the RabbitMQ cluster sample.",
      "tags": [
        "script",
        "kubernetes",
        "rabbitmq",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:rabbitmq/scripts/get-credentials.sh",
      "type": "file",
      "name": "get-credentials.sh",
      "filePath": "rabbitmq/scripts/get-credentials.sh",
      "summary": "Shell script that reads the RabbitMQ cluster admin service reference and decodes the default user username and password from the Kubernetes secret.",
      "tags": [
        "script",
        "kubernetes",
        "rabbitmq",
        "security",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:sealed-secrets/hosts",
      "type": "file",
      "name": "hosts",
      "filePath": "sealed-secrets/hosts",
      "summary": "Ansible inventory defining a localhost host with a python3 interpreter for running the sealed-secrets role.",
      "tags": [
        "configuration",
        "ansible",
        "inventory",
        "sealed-secrets"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:sealed-secrets/roles/sealed-secrets-web/files/values.yaml",
      "type": "config",
      "name": "values.yaml",
      "filePath": "sealed-secrets/roles/sealed-secrets-web/files/values.yaml",
      "summary": "Helm values file pinning the sealed-secrets-web pods to the cloud-services node pool via node affinity.",
      "tags": [
        "configuration",
        "helm",
        "kubernetes",
        "sealed-secrets",
        "scheduling"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:sealed-secrets/roles/sealed-secrets-web/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "sealed-secrets/roles/sealed-secrets-web/tasks/main.yml",
      "summary": "Ansible role tasks that add the sealed-secrets-web Helm repository and install the chart into the cluster.",
      "tags": [
        "configuration",
        "ansible",
        "helm",
        "sealed-secrets",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:solr/cleanup_clusterroles.sh",
      "type": "file",
      "name": "cleanup_clusterroles.sh",
      "filePath": "solr/cleanup_clusterroles.sh",
      "summary": "Cleanup script that deletes leftover Solr operator cluster roles and cluster role bindings from the Kubernetes cluster.",
      "tags": [
        "script",
        "kubernetes",
        "solr",
        "cleanup",
        "rbac"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:tag_lister/list_tags_for_deployments.py",
      "type": "file",
      "name": "list_tags_for_deployments.py",
      "filePath": "tag_lister/list_tags_for_deployments.py",
      "summary": "Python utility using the Kubernetes client to list all deployments across namespaces with their container image tags and latest state change time.",
      "tags": [
        "utility",
        "kubernetes",
        "python",
        "reporting"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the kubernetes Python client with in-cluster/kubeconfig fallback."
    },
    {
      "id": "function:tag_lister/list_tags_for_deployments.py:main",
      "type": "function",
      "name": "main",
      "filePath": "tag_lister/list_tags_for_deployments.py",
      "lineRange": [
        11,
        35
      ],
      "summary": "Loads the Kubernetes config, lists all deployments across namespaces, and prints each deployment name, namespace, latest state change, and container images.",
      "tags": [
        "utility",
        "kubernetes",
        "entry-point",
        "reporting"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/dev/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "terraform/earnings/dev/backend.tf",
      "summary": "Terraform backend configuration storing the earnings dev state in the treetracker-infrastructure S3 bucket in us-east-1.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state",
        "aws"
      ],
      "complexity": "simple",
      "languageNotes": "S3 remote state backend block."
    },
    {
      "id": "resource:terraform/earnings/dev/dev.env.tfvars",
      "type": "resource",
      "name": "dev.env.tfvars",
      "filePath": "terraform/earnings/dev/dev.env.tfvars",
      "summary": "Terraform variable values for the earnings dev environment defining the AWS region, payments upload bucket, and IAM user.",
      "tags": [
        "infrastructure",
        "terraform",
        "variables",
        "aws",
        "payments"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/prod/prod.env-tfvars",
      "type": "resource",
      "name": "prod.env-tfvars",
      "filePath": "terraform/earnings/prod/prod.env-tfvars",
      "summary": "Terraform variable values for the earnings prod environment defining the AWS region, payments upload bucket, and IAM user.",
      "tags": [
        "infrastructure",
        "terraform",
        "variables",
        "aws",
        "payments"
      ],
      "complexity": "simple"
    },
    {
      "id": "resource:terraform/earnings/test/backend.tf",
      "type": "resource",
      "name": "backend.tf",
      "filePath": "terraform/earnings/test/backend.tf",
      "summary": "Terraform backend configuration storing the earnings test environment state in the shared treetracker-infrastructure S3 bucket.",
      "tags": [
        "infrastructure",
        "terraform",
        "backend",
        "state-management",
        "aws"
      ],
      "complexity": "simple",
      "languageNotes": "S3 remote state backend keyed per-environment (terraform-earnings-test.tfstate)."
    },
    {
      "id": "resource:terraform/earnings/test/test.env.tfvars",
      "type": "resource",
      "name": "test.env.tfvars",
      "filePath": "terraform/earnings/test/test.env.tfvars",
      "summary": "Terraform variable values for the earnings test environment, setting the AWS region, payments upload bucket, and IAM user.",
      "tags": [
        "infrastructure",
        "terraform",
        "configuration",
        "aws",
        "variables"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:tracing/hosts",
      "type": "file",
      "name": "hosts",
      "filePath": "tracing/hosts",
      "summary": "Ansible inventory file for the tracing playbooks, defining a single localhost target that uses the Python 3 interpreter.",
      "tags": [
        "ansible",
        "inventory",
        "configuration",
        "tracing",
        "localhost"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:tracing/roles/jaeger_operator/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "tracing/roles/jaeger_operator/tasks/main.yml",
      "summary": "Ansible role tasks that add the Jaeger Helm repository and install the Jaeger operator chart into the tracing namespace with memory limits.",
      "tags": [
        "ansible",
        "helm",
        "jaeger",
        "tracing",
        "kubernetes"
      ],
      "complexity": "simple",
      "languageNotes": "Uses community.kubernetes.helm modules to deploy jaeger-operator chart version 2.18.3."
    },
    {
      "id": "config:tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml",
      "type": "config",
      "name": "jaeger-ui-mapping.yaml",
      "filePath": "tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml",
      "summary": "Ambassador Mapping manifest exposing the Jaeger query UI under the /tracing/ path, routing to the jaeger-query service on port 16686.",
      "tags": [
        "kubernetes",
        "ambassador",
        "jaeger",
        "routing",
        "tracing"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
      "type": "config",
      "name": "simple-jaeger.yaml",
      "filePath": "tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
      "summary": "Jaeger custom resource defining an all-in-one deployment with a /tracing base path, ambassador-based ingress, and resource requests and limits.",
      "tags": [
        "kubernetes",
        "jaeger",
        "tracing",
        "custom-resource",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "allInOne strategy; not production-suitable per the inline comment."
    },
    {
      "id": "config:tracing/roles/simple_jaeger/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "tracing/roles/simple_jaeger/tasks/main.yml",
      "summary": "Ansible role tasks that apply the simple Jaeger deployment and the Jaeger UI Ambassador mapping into the tracing namespace.",
      "tags": [
        "ansible",
        "kubernetes",
        "jaeger",
        "tracing",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:tracing/roles/trace_ambassador/files/trace-ambassador.yaml",
      "type": "config",
      "name": "trace-ambassador.yaml",
      "filePath": "tracing/roles/trace_ambassador/files/trace-ambassador.yaml",
      "summary": "Ambassador TracingService manifest sending zipkin-format traces to the jaeger-collector service with full sampling.",
      "tags": [
        "kubernetes",
        "ambassador",
        "jaeger",
        "tracing",
        "observability"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:tracing/roles/trace_ambassador/tasks/main.yml",
      "type": "config",
      "name": "main.yml",
      "filePath": "tracing/roles/trace_ambassador/tasks/main.yml",
      "summary": "Ansible role tasks that add the Ambassador tracing plugin and trigger a rolling restart of the ambassador deployment when the plugin changes.",
      "tags": [
        "ansible",
        "kubernetes",
        "ambassador",
        "tracing",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:web-apps/cloudformation/wallet-app/wallet-app-prod/infrastructure.yaml",
      "type": "config",
      "name": "infrastructure.yaml",
      "filePath": "web-apps/cloudformation/wallet-app/wallet-app-prod/infrastructure.yaml",
      "summary": "CloudFormation template provisioning the production wallet-app static site: an S3 bucket, a CloudFront distribution with origin access control, and a bucket policy.",
      "tags": [
        "infrastructure",
        "cloudformation",
        "aws",
        "cloudfront",
        "s3"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses CloudFront Origin Access Control (OAC) and a conditional bucket name via !If."
    },
    {
      "id": "config:web-apps/cloudformation/wallet-app/wallet-app-test/infrastructure.yaml",
      "type": "config",
      "name": "infrastructure.yaml",
      "filePath": "web-apps/cloudformation/wallet-app/wallet-app-test/infrastructure.yaml",
      "summary": "CloudFormation template provisioning the test wallet-app static site: an S3 bucket, a CloudFront distribution with origin access control, and a bucket policy.",
      "tags": [
        "infrastructure",
        "cloudformation",
        "aws",
        "cloudfront",
        "s3"
      ],
      "complexity": "moderate",
      "languageNotes": "Mirrors the prod template; uses CloudFront Origin Access Control (OAC) and a conditional bucket name."
    }
  ],
  "edges": [
    {
      "source": "service:keycloak/lib/docker/Dockerfile",
      "target": "service:keycloak/lib/docker/Dockerfile:builder",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "service:keycloak/lib/docker/Dockerfile",
      "target": "service:keycloak/lib/docker/Dockerfile:keycloak",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "service:keycloak/lib/docker/Dockerfile:keycloak",
      "target": "service:keycloak/lib/docker/Dockerfile:builder",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/pre-commit.yaml",
      "target": "step:.github/workflows/pre-commit.yaml:pre-commit",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "document:airflow/README.md",
      "target": "config:airflow/airflow-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:airflow/ansible.cfg",
      "target": "config:airflow/airflow-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:airflow/airflow-playbook.yml",
      "target": "config:airflow/namespace.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:api_gateway/ansible.cfg",
      "target": "config:api_gateway/ambassador-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:api_gateway/ansible.cfg",
      "target": "config:api_gateway/ambassador-auth-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "document:api_gateway/README.md",
      "target": "config:api_gateway/ambassador-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:api_gateway/README.md",
      "target": "config:api_gateway/ambassador-auth-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:api_gateway/terraform/README.md",
      "target": "file:api_gateway/terraform/setup_keys.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:api_gateway/terraform/README.md",
      "target": "resource:api_gateway/terraform/dns.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:api_gateway/terraform/README.md",
      "target": "resource:api_gateway/terraform/provider.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:api_gateway/terraform/dns.tf",
      "target": "resource:api_gateway/terraform/dns.tf:digitalocean_domain.ambassador-host",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/dns.tf",
      "target": "resource:api_gateway/terraform/dns.tf:digitalocean_record.CNAME-www",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/dns.tf:digitalocean_record.CNAME-www",
      "target": "resource:api_gateway/terraform/dns.tf:digitalocean_domain.ambassador-host",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:api_gateway/terraform/dns.tf",
      "target": "resource:api_gateway/terraform/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:api_gateway/terraform/environments/development/dns.tf",
      "target": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/environments/development/dns.tf",
      "target": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_record.CNAME-www",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/environments/development/dns.tf",
      "target": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-test",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/environments/development/dns.tf",
      "target": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-prod",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_record.CNAME-www",
      "target": "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:api_gateway/terraform/environments/development/setup_keys.sh",
      "target": "resource:api_gateway/terraform/environments/development/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:api_gateway/terraform/environments/production/setup_keys.sh",
      "target": "resource:api_gateway/terraform/environments/production/backend.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:api_gateway/terraform/environments/production/production.tfvars",
      "target": "resource:api_gateway/terraform/environments/production/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:aws_access/terraform/users.tf",
      "target": "resource:aws_access/terraform/users.tf:aws_iam_user_policy.cloudfront_user_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/bulk-data-consumer-dev.tf",
      "target": "resource:aws_access/terraform/bulk-data-consumer-dev.tf:aws_iam_user_policy.bulk_data_consumer_dev_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/bulk-data-consumer-prod.tf",
      "target": "resource:aws_access/terraform/bulk-data-consumer-prod.tf:aws_iam_user_policy.bulk_data_consumer_prod_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/bulk-data-consumer-test.tf",
      "target": "resource:aws_access/terraform/bulk-data-consumer-test.tf:aws_iam_user_policy.bulk_data_consumer_test_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/bulk-data-tester-test.tf",
      "target": "resource:aws_access/terraform/bulk-data-tester-test.tf:aws_iam_user_policy.bulk_data_tester_test_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/cam.tf",
      "target": "resource:aws_access/terraform/cam.tf:aws_iam_user_policy.cam_person_user_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/database-backups.tf",
      "target": "resource:aws_access/terraform/database-backups.tf:aws_iam_user_policy.database_packups_prod_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:aws_access/terraform/warren.tf",
      "target": "resource:aws_access/terraform/warren.tf:aws_iam_user_policy.warren_person_user_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:aws_access/terraform/setup_keys.sh",
      "target": "resource:aws_access/terraform/providers.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:aws_access/terraform/setup_keys.sh",
      "target": "resource:aws_access/terraform/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:bastion/bastion.tf",
      "target": "resource:bastion/bastion.tf:module.bastion",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:bastion/bastion.tf",
      "target": "resource:bastion/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:bastion/bastion.tf",
      "target": "resource:bastion/backend.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/roles/ckan/files/ckan-database-service.yaml",
      "target": "config:ckan/roles/ckan/files/ckan-database-endpoint.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/roles/ckan/files/values.yaml",
      "target": "config:ckan/roles/ckan/files/ckan-database-service.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-backup-storage/providers.tf",
      "target": "resource:database-backup-storage/production-backups.tf",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:database-backup-storage/backend.tf",
      "target": "resource:database-backup-storage/production-backups.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.airflow_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.treetracker_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.webmap_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.stakeholder_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.earnings_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.regions_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.messaging_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.query_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.field_data_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.reporting_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.contracts_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.keycloak_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.wallet_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.denormalized_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/main.tf:module.queue_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/main.tf",
      "target": "resource:database-grants/terraform/dev/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/dev/provider.tf",
      "target": "resource:database-grants/terraform/dev/dev.env.tfvars",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/dev/backend-config.tfvars",
      "target": "file:database-grants/terraform/dev/setup_keys.sh",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database-grants/terraform/dev/get-db-password.sh",
      "target": "resource:database-grants/terraform/dev/provider.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.accountant_human",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_issuer_human",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_admin",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_analyst",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_manager",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_trading_admin",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/human-users.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.wallet_operator_human",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/legacy-db-users.tf",
      "target": "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.treetracker",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/legacy-db-users.tf",
      "target": "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.data_pipeline",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/read-only-user.tf",
      "target": "resource:database-grants/terraform/prod/read-only-user.tf:postgresql_role.readonlyuser_human",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/remote-machine-users.tf",
      "target": "resource:database-grants/terraform/prod/remote-machine-users.tf:postgresql_role.cvat_annotator",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.field_data_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.wallet_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.treetracker_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.earnings_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.webmap_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.reporting_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.airflow_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.messaging_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.query_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.stakeholder_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.regions_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.contracts_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.keycloak_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.extra",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf",
      "target": "resource:database-grants/terraform/prod/main.tf:module.denormalized_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/main.tf:module.extra",
      "target": "resource:database-grants/terraform/prod/main.tf:module.wallet_schema",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/provider.tf",
      "target": "resource:database-grants/terraform/prod/human-users.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/provider.tf",
      "target": "resource:database-grants/terraform/prod/legacy-db-users.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/provider.tf",
      "target": "resource:database-grants/terraform/prod/read-only-user.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/provider.tf",
      "target": "resource:database-grants/terraform/prod/remote-machine-users.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/provider.tf",
      "target": "resource:database-grants/terraform/prod/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/prod.env.tfvars",
      "target": "resource:database-grants/terraform/prod/provider.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/backend-config.tfvars",
      "target": "resource:database-grants/terraform/prod/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_schema.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.s_password",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.service_user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-usage",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default-sequence",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-sequence",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.m_password",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.migration_user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer-tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executor-sequence",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.readonlyuser-default-tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-sequence",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.service_user",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.s_password",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.migration_user",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.m_password",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/variables.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/modules/microservice_schema/outputs.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/test/test.env.tfvars",
      "target": "resource:database-grants/terraform/test/read-only-user.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/test/backend-config.tfvars",
      "target": "resource:database-grants/terraform/test/read-only-user.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:database-grants/terraform/test/setup_keys.sh",
      "target": "resource:database-grants/terraform/test/backend-config.tfvars",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_firewall.treetracker-database-fw",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_replica.treetracker-postgres-read-replica",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_db.treetracker-database",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_db.data-pipeline-database",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-database",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-datastore-database",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/database.tf:digitalocean_database_db.world-bank-backup-database",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_firewall.treetracker-database-fw",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_replica.treetracker-postgres-read-replica",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_db.treetracker-database",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_db.data-pipeline-database",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-database",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_db.ckan-datastore-database",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf:digitalocean_database_db.world-bank-backup-database",
      "target": "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database/terraform/database.tf",
      "target": "resource:database/terraform/backend.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:database/terraform/setup_keys.sh",
      "target": "resource:database/terraform/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:database/terraform/README.md",
      "target": "resource:database/terraform/database.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:database/terraform/README.md",
      "target": "file:database/terraform/setup_keys.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/deployment-raw-client.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/mapping-raw-client.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/service.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/base/service-raw-client.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/service.yaml",
      "target": "service:keycloak/lib/kubernetes/base/deployment.yaml",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/service-raw-client.yaml",
      "target": "service:keycloak/lib/kubernetes/base/deployment-raw-client.yaml",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/mapping.yaml",
      "target": "service:keycloak/lib/kubernetes/base/service.yaml",
      "type": "routes",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/base/mapping-raw-client.yaml",
      "target": "service:keycloak/lib/kubernetes/base/service-raw-client.yaml",
      "type": "routes",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/overlays/production/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/overlays/production/sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/overlays/production/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/overlays/production/deployment-raw-client.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/overlays/test/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/overlays/test/sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/overlays/test/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/overlays/test/deployment-raw-client.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/dev/provider.tf",
      "target": "resource:kubernetes/terraform/dev/provider.tf:data.digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "target": "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/backend-config.tfvars",
      "target": "resource:kubernetes/terraform/dev/backend.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/dev.env.tfvars",
      "target": "resource:kubernetes/terraform/dev/cluster.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/dev/cluster.tf",
      "target": "resource:kubernetes/terraform/dev/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:kubernetes/terraform/dev/setup_keys.sh",
      "target": "resource:kubernetes/terraform/dev/provider.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:kubernetes/terraform/dev/setup_keys.sh",
      "target": "resource:kubernetes/terraform/dev/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "target": "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/prod/backend-config.tfvars",
      "target": "resource:kubernetes/terraform/prod/backend.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/prod/prod.env.tfvars",
      "target": "resource:kubernetes/terraform/prod/cluster.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/prod/provider.tf",
      "target": "resource:kubernetes/terraform/prod/cluster.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:kubernetes/terraform/prod/setup_keys.sh",
      "target": "resource:kubernetes/terraform/prod/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:kubernetes/terraform/test/setup_keys.sh",
      "target": "resource:kubernetes/terraform/test/backend-config.tfvars",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:kubernetes/terraform/test/backend-config.tfvars",
      "target": "resource:kubernetes/terraform/test/test.env.tfvars",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "config:monitoring/prom-operator-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "config:monitoring/loki-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "config:monitoring/metrics-server-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "config:monitoring/exporter-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "config:monitoring/elasticsearch-kibana-filebeat.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/README.md",
      "target": "file:monitoring/cleanup_prom.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:monitoring/ansible.cfg",
      "target": "config:monitoring/prom-operator-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:monitoring/ansible.cfg",
      "target": "config:monitoring/loki-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:monitoring/ansible.cfg",
      "target": "config:monitoring/metrics-server-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:monitoring/ansible.cfg",
      "target": "config:monitoring/exporter-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:monitoring/ansible.cfg",
      "target": "config:monitoring/elasticsearch-kibana-filebeat.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:monitoring/cleanup_prom.sh",
      "target": "config:monitoring/prom-operator-playbook.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:monitoring/cleanup_prom.sh",
      "target": "config:monitoring/loki-playbook.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf",
      "target": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_droplet.monitor",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf",
      "target": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_domain.monitor-host",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf",
      "target": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_record.CNAME-www",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_domain.monitor-host",
      "target": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_droplet.monitor",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_record.CNAME-www",
      "target": "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_domain.monitor-host",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:monitoring/terraform/monitoring-nodes.tf",
      "target": "resource:monitoring/terraform/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:monitoring/terraform/setup_keys.sh",
      "target": "resource:monitoring/terraform/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/terraform/README.md",
      "target": "file:monitoring/terraform/setup_keys.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/terraform/README.md",
      "target": "resource:monitoring/terraform/provider.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:monitoring/terraform/README.md",
      "target": "resource:monitoring/terraform/backend.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:other-sites/terraform/herbarium.tf",
      "target": "resource:other-sites/terraform/herbarium.tf:module.staticwebsite",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:other-sites/terraform/herbarium.tf",
      "target": "resource:other-sites/terraform/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:other-sites/terraform/backend.tf",
      "target": "resource:other-sites/terraform/herbarium.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:pgpool/deployment/base/kustomization.yaml",
      "target": "config:pgpool/deployment/base/pgpool_configmap.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/kustomization.yaml",
      "target": "config:pgpool/deployment/base/treetracker-pgpool-deployment.yml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/kustomization.yaml",
      "target": "config:pgpool/deployment/base/treetracker-pgpool-service.yml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/kustomization.yaml",
      "target": "config:pgpool/deployment/base/namespace.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/kustomization.yaml",
      "target": "config:pgpool/deployment/base/cronjob.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/treetracker-pgpool-deployment.yml",
      "target": "config:pgpool/deployment/base/pgpool_configmap.yaml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/base/treetracker-pgpool-service.yml",
      "target": "config:pgpool/deployment/base/treetracker-pgpool-deployment.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:pgpool/deployment/overlays/production/kustomization.yaml",
      "target": "config:pgpool/deployment/overlays/production/pgpool_configmap.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/overlays/production/treetracker-pgpool-deployment.yml",
      "target": "config:pgpool/deployment/overlays/production/pgpool_configmap.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:rabbitmq/deployment/base/kustomization.yaml",
      "target": "config:rabbitmq/deployment/base/definition.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:rabbitmq/deployment/base/kustomization.yaml",
      "target": "config:rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml",
      "target": "config:rabbitmq/deployment/base/definition.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:scripts/README.md",
      "target": "file:scripts/doctl_setup.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:sealed-secrets/ansible.cfg",
      "target": "config:sealed-secrets/sealed-secrets-web-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "document:sealed-secrets/README.md",
      "target": "config:sealed-secrets/sealed-secrets-web-playbook.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:sealed-secrets/scripts/create-airflow-database-password-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-aws-key-id-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-aws-key-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-database-migration-secret.sh",
      "target": "file:sealed-secrets/scripts/get-database-uri.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-database-migration-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-database-secret.sh",
      "target": "file:sealed-secrets/scripts/get-database-uri.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-database-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-rabbitmq-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:sealed-secrets/scripts/create-sqs-secret.sh",
      "target": "file:sealed-secrets/scripts/create-secret.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/dev/main.tf",
      "target": "resource:solr/dev/main.tf:module.solr",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:solr/dev/main.tf:module.solr",
      "target": "resource:solr/solr_chart/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/prod/main.tf",
      "target": "resource:solr/prod/main.tf:module.solr",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:solr/prod/provider.tf",
      "target": "resource:solr/prod/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/prod/backend.tf",
      "target": "resource:solr/prod/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/solr_chart/main.tf",
      "target": "resource:solr/solr_chart/main.tf:helm_release.solr_operator",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:solr/solr_chart/main.tf",
      "target": "resource:solr/solr_chart/main.tf:helm_release.solr",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:solr/solr_chart/main.tf",
      "target": "resource:solr/solr_chart/variables.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/solr_chart/main.tf",
      "target": "config:solr/solr_chart/solr-operator-values.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/solr_chart/main.tf",
      "target": "config:solr/solr_chart/solr-values.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/solr_chart/provider.tf",
      "target": "resource:solr/solr_chart/main.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:solr/test/main.tf",
      "target": "resource:solr/test/main.tf:module.solr",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "document:tag_lister/README.md",
      "target": "file:tag_lister/compare.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:tag_lister/requirements.txt",
      "target": "file:tag_lister/compare.sh",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf",
      "target": "resource:terraform/earnings/prod/main.tf:aws_s3_bucket.payments_upload_bucket",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf",
      "target": "resource:terraform/earnings/prod/main.tf:aws_iam_user.payments_upload_bucket_user",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf",
      "target": "resource:terraform/earnings/prod/main.tf:aws_iam_access_key.payments_upload_bucket_user_access_key",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf",
      "target": "resource:terraform/earnings/prod/main.tf:aws_iam_user_policy.payments_upload_bucket_user_policy",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf:aws_iam_access_key.payments_upload_bucket_user_access_key",
      "target": "resource:terraform/earnings/prod/main.tf:aws_iam_user.payments_upload_bucket_user",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:terraform/earnings/prod/main.tf:aws_iam_user_policy.payments_upload_bucket_user_policy",
      "target": "resource:terraform/earnings/prod/main.tf:aws_iam_user.payments_upload_bucket_user",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:terraform/earnings/prod/provider.tf",
      "target": "resource:terraform/earnings/prod/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:terraform/earnings/prod/backend.tf",
      "target": "resource:terraform/earnings/prod/main.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:tracing/README.md",
      "target": "config:tracing/simple-tracing-playbook.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:tracing/trace-ambassador.yml",
      "target": "config:tracing/simple-tracing-playbook.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform-admin/dev-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/dev-admin-panel.tf:dev-admin-panel",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform-admin/staging-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/staging-admin-panel.tf:staging-admin-panel",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform-admin/test-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/test-admin-panel.tf:test-admin-panel",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform-admin/prod-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/prod-admin-panel.tf:prod-admin-panel",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform-admin/dev-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:web-apps/terraform-admin/staging-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:web-apps/terraform-admin/test-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:web-apps/terraform-admin/prod-admin-panel.tf",
      "target": "resource:web-apps/terraform-admin/provider.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:web-apps/terraform/dev-web-map.tf",
      "target": "resource:web-apps/terraform/dev-web-map.tf:staticwebsite",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform/dev-web-wallet.tf",
      "target": "resource:web-apps/terraform/dev-web-wallet.tf:dev-web-wallet",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform/prod-web-map.tf",
      "target": "resource:web-apps/terraform/prod-web-map.tf:prod-web-map",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform/staging-web-map.tf",
      "target": "resource:web-apps/terraform/staging-web-map.tf:staging-web-map",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform/test-web-map.tf",
      "target": "resource:web-apps/terraform/test-web-map.tf:test-web-map",
      "type": "provisions",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "resource:web-apps/terraform/provider.tf",
      "target": "resource:web-apps/terraform/dev-web-map.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform/provider.tf",
      "target": "resource:web-apps/terraform/dev-web-wallet.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform/provider.tf",
      "target": "resource:web-apps/terraform/prod-web-map.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform/provider.tf",
      "target": "resource:web-apps/terraform/staging-web-map.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform/provider.tf",
      "target": "resource:web-apps/terraform/test-web-map.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:web-apps/terraform/backend.tf",
      "target": "resource:web-apps/terraform/provider.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:README.md",
      "target": "config:.pre-commit-config.yaml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:api_gateway/roles/ambassador-auth/tasks/main.yml",
      "target": "config:api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:api_gateway/roles/ambassador-auth/tasks/main.yml",
      "target": "config:api_gateway/roles/ambassador-auth/files/basic-auth-service.yml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:airflow/roles/airflow/tasks/main.yml",
      "target": "config:airflow/roles/airflow/files/panel-mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:api_gateway/produce_yaml_from_pw.py",
      "target": "config:api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:api_gateway/roles/ambassador-auth/files/basic-auth-service.yml",
      "target": "config:api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:cdn-images-api/main.tf",
      "target": "resource:cdn-images-api/main.tf:aws_cloudfront_distribution.images_cdn",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:cdn-images-api/provider.tf",
      "target": "resource:cdn-images-api/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/ansible.cfg",
      "target": "config:ckan/hosts",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/ansible.cfg",
      "target": "config:ckan/ckan-playbook.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/ckan-playbook.yml",
      "target": "config:ckan/roles/ckan/tasks/main.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:ckan/roles/ckan/tasks/main.yaml",
      "target": "config:ckan/dev-values.enc",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/messaging/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/messaging/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/messaging/provider.tf",
      "target": "resource:database-grants/terraform/dev/schemas/messaging/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:random_password.s_password",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_role.service_user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.service-user-usage",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.table-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.sequence-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/dev/schemas/queue/provider.tf",
      "target": "resource:database-grants/terraform/dev/schemas/queue/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-public",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-public",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-public",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-herbarium",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-herbarium",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-herbarium",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-stakeholder",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-stakeholder",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-stakeholder",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-treetracker",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-treetracker",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/main.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-treetracker",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/extra/provider.tf",
      "target": "resource:database-grants/terraform/prod/extra/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_schema.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:random_password.s_password",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_role.service_user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.service-user-usage",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.table-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.sequence-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/airflow/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:database-grants/terraform/notes/import",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/contracts/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/contracts/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/contracts/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/contracts/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/denormalized/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/denormalized/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/denormalized/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/denormalized/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/earnings/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/earnings/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/earnings/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/earnings/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/field_data/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/field_data/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/field_data/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access_sequence",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "document:database-grants/terraform/README.md",
      "target": "resource:database-grants/terraform/prod/extra/main.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:database-grants/terraform/README.md",
      "target": "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_schema.keycloak_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:random_password.s_password",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_role.service_user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.service-user-usage",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.table-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.sequence-service-user",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:module.microservice_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_tables",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_public_schema",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/messaging/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/regions/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/reporting/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/stakeholder/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/treetracker/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/wallet/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/webmap/main.tf",
      "target": "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/keycloak/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/messaging/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/messaging/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/query/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/query/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/regions/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/regions/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/reporting/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/reporting/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/stakeholder/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/stakeholder/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/treetracker/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/treetracker/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/wallet/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/wallet/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:database-grants/terraform/prod/schemas/webmap/provider.tf",
      "target": "resource:database-grants/terraform/prod/schemas/webmap/main.tf",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "document:keycloak/README.md",
      "target": "file:keycloak/deploy.sh",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:keycloak/lib/docker/themes/treetracker/login/theme.properties",
      "target": "file:keycloak/lib/docker/themes/treetracker/login/resources/js/treetracker.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:keycloak/lib/docker/themes/treetracker/login/theme.properties",
      "target": "file:keycloak/lib/docker/themes/treetracker/login/resources/css/treetracker.css",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:keycloak/lib/docker/themes/treetracker/account/theme.properties",
      "target": "file:keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:keycloak/lib/playbook.yml",
      "target": "service:keycloak/lib/kubernetes/overlays/development/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:keycloak/lib/kubernetes/overlays/development/kustomization.yaml",
      "target": "service:keycloak/lib/kubernetes/overlays/development/sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:monitoring/roles/loki/tasks/main.yml",
      "target": "config:monitoring/roles/loki/files/values.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:monitoring/roles/metrics_server/tasks/main.yml",
      "target": "config:monitoring/roles/metrics_server/tasks/values.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
      "target": "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:tag_lister/list_tags_for_deployments.py",
      "target": "function:tag_lister/list_tags_for_deployments.py:main",
      "type": "contains",
      "direction": "forward",
      "weight": 1
    },
    {
      "source": "file:tag_lister/list_tags_for_deployments.py",
      "target": "function:tag_lister/list_tags_for_deployments.py:main",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:rabbitmq/expose/expose-service.sh",
      "target": "config:rabbitmq/expose/expose-service.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:pgpool/deployment/overlays/test/kustomization.yaml",
      "target": "config:pgpool/deployment/overlays/test/pgpool_configmap.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:rabbitmq/deployment/overlays/dev/kustomization.yaml",
      "target": "config:rabbitmq/deployment/overlays/dev/definition.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:terraform/earnings/dev/dev.env.tfvars",
      "target": "resource:terraform/earnings/dev/backend.tf",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:terraform/earnings/test/backend.tf",
      "target": "resource:terraform/earnings/test/test.env.tfvars",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:tracing/roles/simple_jaeger/tasks/main.yml",
      "target": "config:tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:tracing/roles/simple_jaeger/tasks/main.yml",
      "target": "config:tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:tracing/roles/trace_ambassador/tasks/main.yml",
      "target": "config:tracing/roles/trace_ambassador/files/trace-ambassador.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml",
      "target": "config:tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:tracing/roles/trace_ambassador/files/trace-ambassador.yaml",
      "target": "config:tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:web-apps/cloudformation/wallet-app/wallet-app-prod/infrastructure.yaml",
      "target": "config:web-apps/cloudformation/wallet-app/wallet-app-test/infrastructure.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "resource:solr/prod/main.tf:module.solr",
      "target": "resource:solr/solr_chart/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "resource:solr/test/main.tf",
      "target": "resource:solr/solr_chart/main.tf",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    }
  ],
  "layers": [
    {
      "id": "layer:terraform-provisioning",
      "name": "Terraform Cloud Provisioning",
      "description": "Terraform IaC for DigitalOcean and AWS cloud resources: droplets, domains/DNS records, AWS access/IAM, and the bastion host.",
      "nodeIds": [
        "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host",
        "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_record.CNAME-www",
        "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-test",
        "resource:api_gateway/terraform/environments/development/dns.tf:digitalocean_domain.ambassador-host-prod",
        "resource:aws_access/terraform/backend.tf",
        "resource:aws_access/terraform/providers.tf",
        "file:aws_access/terraform/setup_keys.sh",
        "resource:aws_access/terraform/users.tf",
        "resource:aws_access/terraform/bulk-data-consumer-dev.tf",
        "resource:aws_access/terraform/bulk-data-consumer-prod.tf",
        "resource:aws_access/terraform/bulk-data-consumer-test.tf",
        "resource:aws_access/terraform/bulk-data-tester-test.tf",
        "resource:aws_access/terraform/cam.tf",
        "resource:aws_access/terraform/database-backups.tf",
        "resource:aws_access/terraform/warren.tf",
        "resource:aws_access/terraform/users.tf:aws_iam_user_policy.cloudfront_user_policy",
        "resource:aws_access/terraform/bulk-data-consumer-dev.tf:aws_iam_user_policy.bulk_data_consumer_dev_policy",
        "resource:aws_access/terraform/bulk-data-consumer-prod.tf:aws_iam_user_policy.bulk_data_consumer_prod_policy",
        "resource:aws_access/terraform/bulk-data-consumer-test.tf:aws_iam_user_policy.bulk_data_consumer_test_policy",
        "resource:aws_access/terraform/bulk-data-tester-test.tf:aws_iam_user_policy.bulk_data_tester_test_policy",
        "resource:aws_access/terraform/cam.tf:aws_iam_user_policy.cam_person_user_policy",
        "resource:aws_access/terraform/database-backups.tf:aws_iam_user_policy.database_packups_prod_policy",
        "resource:aws_access/terraform/warren.tf:aws_iam_user_policy.warren_person_user_policy",
        "resource:bastion/backend.tf",
        "resource:bastion/bastion.tf",
        "resource:bastion/bastion.tf:module.bastion",
        "resource:bastion/provider.tf",
        "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_droplet.monitor",
        "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_domain.monitor-host",
        "resource:monitoring/terraform/monitoring-nodes.tf:digitalocean_record.CNAME-www",
        "resource:terraform/earnings/prod/backend.tf",
        "resource:terraform/earnings/prod/main.tf",
        "resource:terraform/earnings/prod/provider.tf",
        "resource:terraform/earnings/prod/main.tf:aws_s3_bucket.payments_upload_bucket",
        "resource:terraform/earnings/prod/main.tf:aws_iam_user.payments_upload_bucket_user",
        "resource:terraform/earnings/prod/main.tf:aws_iam_access_key.payments_upload_bucket_user_access_key",
        "resource:terraform/earnings/prod/main.tf:aws_iam_user_policy.payments_upload_bucket_user_policy",
        "file:terraform/scripts/apply-dev.sh",
        "file:terraform/scripts/apply-prod.sh",
        "file:terraform/scripts/apply-test.sh",
        "file:terraform/scripts/init.sh",
        "file:terraform/scripts/plan-dev.sh",
        "file:terraform/scripts/plan-prod.sh",
        "file:terraform/scripts/plan-test.sh",
        "file:terraform/scripts/setup-aws-keys.sh",
        "file:terraform/scripts/setup-dev-aws-keys.sh",
        "file:terraform/scripts/setup-keys-prod.sh",
        "document:aws_access/README.md",
        "resource:terraform/earnings/dev/backend.tf",
        "resource:terraform/earnings/dev/dev.env.tfvars",
        "resource:terraform/earnings/prod/prod.env-tfvars",
        "resource:terraform/earnings/test/backend.tf",
        "resource:terraform/earnings/test/test.env.tfvars"
      ]
    },
    {
      "id": "layer:database",
      "name": "Database Provisioning & Grants",
      "description": "PostgreSQL schema, role, grant and default-privilege Terraform resources plus pgpool routing and database backup storage for the treetracker microservice databases.",
      "nodeIds": [
        "resource:database-backup-storage/backend.tf",
        "resource:database-backup-storage/production-backups.tf",
        "resource:database-backup-storage/providers.tf",
        "resource:database-grants/terraform/dev/backend-config.tfvars",
        "resource:database-grants/terraform/dev/dev.env.tfvars",
        "file:database-grants/terraform/dev/get-db-password.sh",
        "resource:database-grants/terraform/dev/main.tf",
        "resource:database-grants/terraform/dev/provider.tf",
        "file:database-grants/terraform/dev/setup_keys.sh",
        "resource:database-grants/terraform/dev/main.tf:module.airflow_schema",
        "resource:database-grants/terraform/dev/main.tf:module.treetracker_schema",
        "resource:database-grants/terraform/dev/main.tf:module.webmap_schema",
        "resource:database-grants/terraform/dev/main.tf:module.stakeholder_schema",
        "resource:database-grants/terraform/dev/main.tf:module.earnings_schema",
        "resource:database-grants/terraform/dev/main.tf:module.regions_schema",
        "resource:database-grants/terraform/dev/main.tf:module.messaging_schema",
        "resource:database-grants/terraform/dev/main.tf:module.query_schema",
        "resource:database-grants/terraform/dev/main.tf:module.field_data_schema",
        "resource:database-grants/terraform/dev/main.tf:module.reporting_schema",
        "resource:database-grants/terraform/dev/main.tf:module.contracts_schema",
        "resource:database-grants/terraform/dev/main.tf:module.keycloak_schema",
        "resource:database-grants/terraform/dev/main.tf:module.wallet_schema",
        "resource:database-grants/terraform/dev/main.tf:module.denormalized_schema",
        "resource:database-grants/terraform/dev/main.tf:module.queue_schema",
        "resource:database-grants/terraform/prod/backend-config.tfvars",
        "resource:database-grants/terraform/prod/backend.tf",
        "resource:database-grants/terraform/prod/human-users.tf",
        "resource:database-grants/terraform/prod/legacy-db-users.tf",
        "resource:database-grants/terraform/prod/main.tf",
        "resource:database-grants/terraform/prod/prod.env.tfvars",
        "resource:database-grants/terraform/prod/provider.tf",
        "resource:database-grants/terraform/prod/read-only-user.tf",
        "resource:database-grants/terraform/prod/remote-machine-users.tf",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.accountant_human",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_issuer_human",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_admin",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_analyst",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.treetracker_manager",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.token_trading_admin",
        "resource:database-grants/terraform/prod/human-users.tf:postgresql_role.wallet_operator_human",
        "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.treetracker",
        "resource:database-grants/terraform/prod/legacy-db-users.tf:postgresql_role.data_pipeline",
        "resource:database-grants/terraform/prod/read-only-user.tf:postgresql_role.readonlyuser_human",
        "resource:database-grants/terraform/prod/remote-machine-users.tf:postgresql_role.cvat_annotator",
        "resource:database-grants/terraform/prod/main.tf:module.field_data_schema",
        "resource:database-grants/terraform/prod/main.tf:module.wallet_schema",
        "resource:database-grants/terraform/prod/main.tf:module.treetracker_schema",
        "resource:database-grants/terraform/prod/main.tf:module.earnings_schema",
        "resource:database-grants/terraform/prod/main.tf:module.webmap_schema",
        "resource:database-grants/terraform/prod/main.tf:module.reporting_schema",
        "resource:database-grants/terraform/prod/main.tf:module.airflow_schema",
        "resource:database-grants/terraform/prod/main.tf:module.messaging_schema",
        "resource:database-grants/terraform/prod/main.tf:module.query_schema",
        "resource:database-grants/terraform/prod/main.tf:module.stakeholder_schema",
        "resource:database-grants/terraform/prod/main.tf:module.regions_schema",
        "resource:database-grants/terraform/prod/main.tf:module.contracts_schema",
        "resource:database-grants/terraform/prod/main.tf:module.keycloak_schema",
        "resource:database-grants/terraform/prod/main.tf:module.extra",
        "resource:database-grants/terraform/prod/main.tf:module.denormalized_schema",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_schema.microservice_schema",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.s_password",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.service_user",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-usage",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.microservice-user-default-sequence",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-user-sequence",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:random_password.m_password",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_role.migration_user",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executer-tables",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.microservice-migration-executor-sequence",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-schema",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-tables",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_default_privileges.readonlyuser-default-tables",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf:postgresql_grant.readonlyuser-sequence",
        "resource:database-grants/terraform/prod/modules/microservice_schema/outputs.tf",
        "resource:database-grants/terraform/prod/modules/microservice_schema/provider.tf",
        "resource:database-grants/terraform/prod/modules/microservice_schema/variables.tf",
        "resource:database-grants/terraform/test/backend-config.tfvars",
        "resource:database-grants/terraform/test/read-only-user.tf",
        "file:database-grants/terraform/test/setup_keys.sh",
        "resource:database-grants/terraform/test/test.env.tfvars",
        "document:database/terraform/README.md",
        "resource:database/terraform/backend.tf",
        "resource:database/terraform/database.tf",
        "resource:database/terraform/provider.tf",
        "file:database/terraform/setup_keys.sh",
        "resource:database/terraform/database.tf:digitalocean_database_cluster.treetracker-postgres-cluster",
        "resource:database/terraform/database.tf:digitalocean_database_firewall.treetracker-database-fw",
        "resource:database/terraform/database.tf:digitalocean_database_replica.treetracker-postgres-read-replica",
        "resource:database/terraform/database.tf:digitalocean_database_db.treetracker-database",
        "resource:database/terraform/database.tf:digitalocean_database_db.data-pipeline-database",
        "resource:database/terraform/database.tf:digitalocean_database_db.ckan-database",
        "resource:database/terraform/database.tf:digitalocean_database_db.ckan-datastore-database",
        "resource:database/terraform/database.tf:digitalocean_database_db.world-bank-backup-database",
        "config:pgpool/deployment/base/cronjob.yaml",
        "config:pgpool/deployment/base/kustomization.yaml",
        "config:pgpool/deployment/base/namespace.yaml",
        "config:pgpool/deployment/base/pgpool_configmap.yaml",
        "config:pgpool/deployment/base/treetracker-pgpool-deployment.yml",
        "config:pgpool/deployment/base/treetracker-pgpool-service.yml",
        "config:pgpool/deployment/overlays/production/kustomization.yaml",
        "config:pgpool/deployment/overlays/production/pgpool_configmap.yaml",
        "config:pgpool/deployment/overlays/production/treetracker-pgpool-deployment.yml",
        "document:database-grants/terraform/README.md",
        "resource:database-grants/terraform/dev/schemas/messaging/main.tf",
        "resource:database-grants/terraform/dev/schemas/messaging/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/dev/schemas/messaging/provider.tf",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:random_password.s_password",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_role.service_user",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.service-user-usage",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.table-service-user",
        "resource:database-grants/terraform/dev/schemas/queue/main.tf:postgresql_grant.sequence-service-user",
        "resource:database-grants/terraform/dev/schemas/queue/provider.tf",
        "file:database-grants/terraform/notes/import",
        "resource:database-grants/terraform/prod/extra/main.tf",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-public",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-public",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-public",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-herbarium",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-herbarium",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-herbarium",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-stakeholder",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-stakeholder",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-stakeholder",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-schema-treetracker",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-table-treetracker",
        "resource:database-grants/terraform/prod/extra/main.tf:postgresql_grant.wallet-operator-seq-treetracker",
        "resource:database-grants/terraform/prod/extra/provider.tf",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_schema.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:random_password.s_password",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_role.service_user",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.service-user-usage",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.table-service-user",
        "resource:database-grants/terraform/prod/schemas/airflow/main.tf:postgresql_grant.sequence-service-user",
        "resource:database-grants/terraform/prod/schemas/airflow/provider.tf",
        "resource:database-grants/terraform/prod/schemas/contracts/main.tf",
        "resource:database-grants/terraform/prod/schemas/contracts/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/contracts/provider.tf",
        "resource:database-grants/terraform/prod/schemas/denormalized/main.tf",
        "resource:database-grants/terraform/prod/schemas/denormalized/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/denormalized/provider.tf",
        "resource:database-grants/terraform/prod/schemas/earnings/main.tf",
        "resource:database-grants/terraform/prod/schemas/earnings/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/earnings/provider.tf",
        "resource:database-grants/terraform/prod/schemas/field_data/main.tf",
        "resource:database-grants/terraform/prod/schemas/field_data/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access",
        "resource:database-grants/terraform/prod/schemas/field_data/main.tf:postgresql_grant.legacy_field_data_access_sequence",
        "resource:database-grants/terraform/prod/schemas/field_data/provider.tf",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf",
        "resource:database-grants/terraform/prod/schemas/keycloak/provider.tf",
        "resource:database-grants/terraform/prod/schemas/messaging/main.tf",
        "resource:database-grants/terraform/prod/schemas/messaging/provider.tf",
        "resource:database-grants/terraform/prod/schemas/query/main.tf",
        "resource:database-grants/terraform/prod/schemas/query/provider.tf",
        "resource:database-grants/terraform/prod/schemas/regions/main.tf",
        "resource:database-grants/terraform/prod/schemas/regions/provider.tf",
        "resource:database-grants/terraform/prod/schemas/reporting/main.tf",
        "resource:database-grants/terraform/prod/schemas/reporting/provider.tf",
        "resource:database-grants/terraform/prod/schemas/stakeholder/main.tf",
        "resource:database-grants/terraform/prod/schemas/stakeholder/provider.tf",
        "resource:database-grants/terraform/prod/schemas/treetracker/main.tf",
        "resource:database-grants/terraform/prod/schemas/treetracker/provider.tf",
        "resource:database-grants/terraform/prod/schemas/wallet/main.tf",
        "resource:database-grants/terraform/prod/schemas/wallet/provider.tf",
        "resource:database-grants/terraform/prod/schemas/webmap/main.tf",
        "resource:database-grants/terraform/prod/schemas/webmap/provider.tf",
        "file:database-grants/terraform/prod/scripts/setup_keys.sh",
        "file:database/terraform/old",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_schema.keycloak_schema",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:random_password.s_password",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_role.service_user",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.service-user-usage",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.table-service-user",
        "resource:database-grants/terraform/prod/schemas/keycloak/main.tf:postgresql_grant.sequence-service-user",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:module.microservice_schema",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_schema",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_messaging_tables",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_schema",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_treetracker_tables",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_schema",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_stakeholder_tables",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_schema",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_regions_tables",
        "resource:database-grants/terraform/prod/schemas/query/main.tf:postgresql_grant.query_public_schema",
        "document:pgpool/README.md",
        "config:pgpool/deployment/overlays/development/kustomization.yaml",
        "config:pgpool/deployment/overlays/test/kustomization.yaml",
        "config:pgpool/deployment/overlays/test/pgpool_configmap.yaml"
      ]
    },
    {
      "id": "layer:kubernetes-workloads",
      "name": "Kubernetes Workloads & Secrets",
      "description": "Kubernetes and Kustomize manifests plus SealedSecrets definitions that deploy and configure cluster workloads.",
      "nodeIds": [
        "resource:kubernetes/terraform/dev/backend-config.tfvars",
        "resource:kubernetes/terraform/dev/backend.tf",
        "resource:kubernetes/terraform/dev/cluster.tf",
        "resource:kubernetes/terraform/dev/dev.env.tfvars",
        "resource:kubernetes/terraform/dev/provider.tf",
        "file:kubernetes/terraform/dev/setup_keys.sh",
        "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
        "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
        "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
        "resource:kubernetes/terraform/dev/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
        "resource:kubernetes/terraform/dev/provider.tf:data.digitalocean_kubernetes_cluster.kubernetes-cluster",
        "resource:kubernetes/terraform/prod/backend-config.tfvars",
        "resource:kubernetes/terraform/prod/backend.tf",
        "resource:kubernetes/terraform/prod/cluster.tf",
        "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
        "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
        "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
        "resource:kubernetes/terraform/prod/cluster.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
        "resource:kubernetes/terraform/prod/prod.env.tfvars",
        "resource:kubernetes/terraform/prod/provider.tf",
        "file:kubernetes/terraform/prod/setup_keys.sh",
        "resource:kubernetes/terraform/test/backend-config.tfvars",
        "resource:kubernetes/terraform/test/test.env.tfvars",
        "file:kubernetes/terraform/test/setup_keys.sh",
        "document:sealed-secrets/README.md",
        "config:sealed-secrets/ansible.cfg",
        "config:sealed-secrets/sealed-secrets-web-playbook.yml",
        "file:sealed-secrets/scripts/create-secret.sh",
        "file:sealed-secrets/scripts/get-database-uri.sh",
        "file:sealed-secrets/scripts/create-airflow-database-password-secret.sh",
        "file:sealed-secrets/scripts/create-aws-key-id-secret.sh",
        "file:sealed-secrets/scripts/create-aws-key-secret.sh",
        "file:sealed-secrets/scripts/create-database-migration-secret.sh",
        "file:sealed-secrets/scripts/create-database-secret.sh",
        "file:sealed-secrets/scripts/create-rabbitmq-secret.sh",
        "file:sealed-secrets/scripts/create-sqs-secret.sh",
        "file:kubernetes/terraform/import.sh",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-down.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_cluster.kubernetes-cluster",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.microservices-node-pool",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.cloud-services-node-pool",
        "resource:kubernetes/terraform/test/configurations/cluster-scaled-up.tf:digitalocean_kubernetes_node_pool.monitoring-node-pool",
        "file:sealed-secrets/hosts",
        "config:sealed-secrets/roles/sealed-secrets-web/files/values.yaml",
        "config:sealed-secrets/roles/sealed-secrets-web/tasks/main.yml"
      ]
    },
    {
      "id": "layer:api-gateway",
      "name": "API Gateway & Ingress",
      "description": "Ambassador/api_gateway routing, mappings and ingress configuration that expose backend services over HTTP.",
      "nodeIds": [
        "document:api_gateway/README.md",
        "config:api_gateway/ambassador-playbook.yml",
        "config:api_gateway/ambassador-auth-playbook.yml",
        "config:api_gateway/ansible.cfg",
        "document:api_gateway/terraform/README.md",
        "resource:api_gateway/terraform/dns.tf",
        "resource:api_gateway/terraform/provider.tf",
        "file:api_gateway/terraform/setup_keys.sh",
        "resource:api_gateway/terraform/dns.tf:digitalocean_domain.ambassador-host",
        "resource:api_gateway/terraform/dns.tf:digitalocean_record.CNAME-www",
        "resource:api_gateway/terraform/environments/development/backend.tf",
        "resource:api_gateway/terraform/environments/development/dns.tf",
        "resource:api_gateway/terraform/environments/development/provider.tf",
        "file:api_gateway/terraform/environments/development/setup_keys.sh",
        "resource:api_gateway/terraform/environments/production/backend.tf",
        "resource:api_gateway/terraform/environments/production/production.tfvars",
        "file:api_gateway/terraform/environments/production/setup_keys.sh",
        "file:api_gateway/dev-values.enc",
        "file:api_gateway/hosts",
        "document:api_gateway/mappings/README.md",
        "file:api_gateway/prod-values.enc",
        "file:api_gateway/produce_yaml_from_pw.py",
        "config:api_gateway/redirects/redirect-wallet-v0.yaml",
        "config:api_gateway/redirects/redirect.yaml",
        "config:api_gateway/roles/ambassador-auth/files/basic-auth-secret.yml",
        "config:api_gateway/roles/ambassador-auth/files/basic-auth-service.yml",
        "config:api_gateway/roles/ambassador-auth/tasks/main.yml",
        "config:api_gateway/roles/ambassador/tasks/main.yml",
        "file:api_gateway/test-values.enc"
      ]
    },
    {
      "id": "layer:identity",
      "name": "Identity & Access (Keycloak)",
      "description": "Keycloak identity server: custom Docker image and theme, realm/client configuration and deployment manifests for authentication.",
      "nodeIds": [
        "service:keycloak/lib/docker/Dockerfile",
        "service:keycloak/lib/docker/Dockerfile:builder",
        "service:keycloak/lib/docker/Dockerfile:keycloak",
        "service:keycloak/lib/kubernetes/base/deployment-raw-client.yaml",
        "service:keycloak/lib/kubernetes/base/deployment.yaml",
        "service:keycloak/lib/kubernetes/base/kustomization.yaml",
        "service:keycloak/lib/kubernetes/base/mapping-raw-client.yaml",
        "service:keycloak/lib/kubernetes/base/mapping.yaml",
        "service:keycloak/lib/kubernetes/base/service-raw-client.yaml",
        "service:keycloak/lib/kubernetes/base/service.yaml",
        "service:keycloak/lib/kubernetes/overlays/production/deployment-raw-client.yaml",
        "service:keycloak/lib/kubernetes/overlays/production/kustomization.yaml",
        "service:keycloak/lib/kubernetes/overlays/production/sealed-secret.yaml",
        "service:keycloak/lib/kubernetes/overlays/test/deployment-raw-client.yaml",
        "service:keycloak/lib/kubernetes/overlays/test/kustomization.yaml",
        "service:keycloak/lib/kubernetes/overlays/test/sealed-secret.yaml",
        "document:keycloak/README.md",
        "file:keycloak/deploy.sh",
        "config:keycloak/lib/docker/themes/treetracker/account/messages/messages_en.properties",
        "file:keycloak/lib/docker/themes/treetracker/account/resources/css/treetracker.css",
        "config:keycloak/lib/docker/themes/treetracker/account/theme.properties",
        "file:keycloak/lib/docker/themes/treetracker/login/resources/css/treetracker.css",
        "file:keycloak/lib/docker/themes/treetracker/login/resources/js/treetracker.js",
        "config:keycloak/lib/docker/themes/treetracker/login/theme.properties",
        "file:keycloak/lib/js/checkK8sClusterNameByEnv.js",
        "service:keycloak/lib/kubernetes/overlays/development/kustomization.yaml",
        "service:keycloak/lib/kubernetes/overlays/development/sealed-secret.yaml",
        "config:keycloak/lib/playbook.yml",
        "file:keycloak/test-website/index.html"
      ]
    },
    {
      "id": "layer:messaging-orchestration",
      "name": "Messaging & Workflow Orchestration",
      "description": "RabbitMQ messaging broker configuration and Airflow workflow-orchestration deployments and DAGs.",
      "nodeIds": [
        "document:airflow/README.md",
        "config:airflow/airflow-playbook.yml",
        "config:airflow/ansible.cfg",
        "config:airflow/namespace.yaml",
        "config:rabbitmq/deployment/base/definition.yaml",
        "config:rabbitmq/deployment/base/kustomization.yaml",
        "config:rabbitmq/deployment/base/namespace.yaml",
        "config:rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml",
        "file:rabbitmq/deployment/deploy-dev.sh",
        "file:rabbitmq/deployment/deploy-prod.sh",
        "file:rabbitmq/deployment/deploy-test.sh",
        "file:airflow/environments/development/group_vars/local",
        "file:airflow/environments/development/inventory",
        "file:airflow/environments/production/group_vars/local",
        "file:airflow/environments/production/inventory",
        "file:airflow/environments/test/group_vars/local",
        "file:airflow/environments/test/inventory",
        "file:airflow/hosts",
        "config:airflow/roles/airflow/files/panel-mapping.yaml",
        "config:airflow/roles/airflow/tasks/main.yml",
        "document:rabbitmq/README.md",
        "config:rabbitmq/deployment/overlays/dev/definition.yaml",
        "config:rabbitmq/deployment/overlays/dev/kustomization.yaml",
        "config:rabbitmq/deployment/overlays/prod/kustomization.yaml",
        "config:rabbitmq/deployment/overlays/test/kustomization.yaml",
        "file:rabbitmq/expose/expose-service.sh",
        "config:rabbitmq/expose/expose-service.yaml",
        "file:rabbitmq/scripts/get-all.sh",
        "file:rabbitmq/scripts/get-credentials.sh"
      ]
    },
    {
      "id": "layer:data-platform",
      "name": "Search & Data Platform",
      "description": "Solr search, CKAN open-data portal, OpenProject and the tag_lister service that form the data and search application platform.",
      "nodeIds": [
        "config:ckan/roles/ckan/files/ckan-database-endpoint.yaml",
        "config:ckan/roles/ckan/files/ckan-database-service.yaml",
        "config:ckan/roles/ckan/files/values.yaml",
        "resource:solr/dev/backend.tf",
        "resource:solr/dev/main.tf",
        "resource:solr/dev/provider.tf",
        "resource:solr/dev/main.tf:module.solr",
        "resource:solr/prod/backend.tf",
        "resource:solr/prod/main.tf",
        "resource:solr/prod/main.tf:module.solr",
        "resource:solr/prod/provider.tf",
        "resource:solr/solr_chart/main.tf",
        "resource:solr/solr_chart/provider.tf",
        "config:solr/solr_chart/solr-operator-values.yaml",
        "config:solr/solr_chart/solr-values.yaml",
        "resource:solr/solr_chart/variables.tf",
        "resource:solr/solr_chart/main.tf:helm_release.solr_operator",
        "resource:solr/solr_chart/main.tf:helm_release.solr",
        "resource:solr/test/backend.tf",
        "resource:solr/test/main.tf",
        "resource:solr/test/main.tf:module.solr",
        "resource:solr/test/provider.tf",
        "document:tag_lister/README.md",
        "file:tag_lister/compare.sh",
        "document:tag_lister/requirements.txt",
        "config:ckan/ansible.cfg",
        "config:ckan/ckan-playbook.yml",
        "config:ckan/dev-values.enc",
        "config:ckan/hosts",
        "config:ckan/roles/ckan/tasks/main.yaml",
        "document:openproject/README.md",
        "config:openproject/deployment.yaml",
        "file:solr/cleanup_clusterroles.sh",
        "file:tag_lister/list_tags_for_deployments.py"
      ]
    },
    {
      "id": "layer:web-apps",
      "name": "Static Web Apps & Sites",
      "description": "Static front-end web apps, other-sites hosting and the cdn-images-api CDN delivery configuration.",
      "nodeIds": [
        "resource:other-sites/terraform/backend.tf",
        "resource:other-sites/terraform/herbarium.tf",
        "resource:other-sites/terraform/herbarium.tf:module.staticwebsite",
        "resource:other-sites/terraform/provider.tf",
        "resource:web-apps/terraform-admin/backend.tf",
        "resource:web-apps/terraform-admin/provider.tf",
        "resource:web-apps/terraform-admin/dev-admin-panel.tf",
        "resource:web-apps/terraform-admin/staging-admin-panel.tf",
        "resource:web-apps/terraform-admin/test-admin-panel.tf",
        "resource:web-apps/terraform-admin/prod-admin-panel.tf",
        "resource:web-apps/terraform-admin/dev-admin-panel.tf:dev-admin-panel",
        "resource:web-apps/terraform-admin/staging-admin-panel.tf:staging-admin-panel",
        "resource:web-apps/terraform-admin/test-admin-panel.tf:test-admin-panel",
        "resource:web-apps/terraform-admin/prod-admin-panel.tf:prod-admin-panel",
        "resource:web-apps/terraform/backend.tf",
        "resource:web-apps/terraform/provider.tf",
        "resource:web-apps/terraform/dev-web-map.tf",
        "resource:web-apps/terraform/dev-web-wallet.tf",
        "resource:web-apps/terraform/prod-web-map.tf",
        "resource:web-apps/terraform/staging-web-map.tf",
        "resource:web-apps/terraform/test-web-map.tf",
        "resource:web-apps/terraform/dev-web-map.tf:staticwebsite",
        "resource:web-apps/terraform/dev-web-wallet.tf:dev-web-wallet",
        "resource:web-apps/terraform/prod-web-map.tf:prod-web-map",
        "resource:web-apps/terraform/staging-web-map.tf:staging-web-map",
        "resource:web-apps/terraform/test-web-map.tf:test-web-map",
        "resource:cdn-images-api/main.tf",
        "resource:cdn-images-api/main.tf:aws_cloudfront_distribution.images_cdn",
        "resource:cdn-images-api/provider.tf",
        "config:web-apps/cloudformation/wallet-app/wallet-app-prod/infrastructure.yaml",
        "config:web-apps/cloudformation/wallet-app/wallet-app-test/infrastructure.yaml"
      ]
    },
    {
      "id": "layer:observability",
      "name": "Observability & Alerting",
      "description": "Monitoring stack, distributed tracing and the Botkube chat-ops alerting integration.",
      "nodeIds": [
        "document:monitoring/README.md",
        "config:monitoring/ansible.cfg",
        "file:monitoring/cleanup_prom.sh",
        "config:monitoring/elasticsearch-kibana-filebeat.yml",
        "config:monitoring/exporter-playbook.yml",
        "config:monitoring/loki-playbook.yml",
        "config:monitoring/metrics-server-playbook.yml",
        "config:monitoring/prom-operator-playbook.yml",
        "document:monitoring/terraform/README.md",
        "resource:monitoring/terraform/backend.tf",
        "resource:monitoring/terraform/monitoring-nodes.tf",
        "resource:monitoring/terraform/provider.tf",
        "file:monitoring/terraform/setup_keys.sh",
        "document:tracing/README.md",
        "config:tracing/simple-tracing-playbook.yml",
        "config:tracing/trace-ambassador.yml",
        "document:botkube/README.md",
        "file:monitoring/dev-values.enc",
        "file:monitoring/hosts",
        "file:monitoring/hosts_vagrant",
        "file:monitoring/prod-values.enc",
        "file:monitoring/roles/elasticsearch/cleanup.sh",
        "config:monitoring/roles/loki/files/values.yaml",
        "config:monitoring/roles/loki/tasks/main.yml",
        "config:monitoring/roles/metrics_server/tasks/main.yml",
        "config:monitoring/roles/metrics_server/tasks/values.yaml",
        "config:monitoring/roles/prometheus_operator/files/monitor-mapping.yaml",
        "config:monitoring/roles/prometheus_operator/files/values.yaml",
        "config:monitoring/roles/prometheus_operator/tasks/main.yml",
        "config:monitoring/test-values.enc",
        "file:tracing/hosts",
        "config:tracing/roles/jaeger_operator/tasks/main.yml",
        "config:tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml",
        "config:tracing/roles/simple_jaeger/files/simple-jaeger.yaml",
        "config:tracing/roles/simple_jaeger/tasks/main.yml",
        "config:tracing/roles/trace_ambassador/files/trace-ambassador.yaml",
        "config:tracing/roles/trace_ambassador/tasks/main.yml"
      ]
    },
    {
      "id": "layer:platform-ops",
      "name": "Platform Ops, CI & Docs",
      "description": "Operational shell scripts and tooling, GitHub Actions/pre-commit CI, project documentation and repository-level config.",
      "nodeIds": [
        "pipeline:.github/workflows/pre-commit.yaml",
        "step:.github/workflows/pre-commit.yaml:pre-commit",
        "document:scripts/README.md",
        "file:scripts/doctl_setup.sh",
        "file:scripts/export_do_tf_tokens.sh",
        "file:scripts/install-latest-ansible.sh",
        "file:scripts/k8s-connect-example.sh",
        "file:scripts/setup-aws-keys.sh",
        "file:scripts/setup-production-tf-do-keys.sh",
        "file:scripts/setup_keys.sh",
        "file:scripts/vagrant-setup.sh",
        "config:.pre-commit-config.yaml",
        "document:README.md",
        "config:docs/_config.yml",
        "document:docs/index.md"
      ]
    }
  ],
  "tour": [
    {
      "order": 1,
      "title": "Project Overview & CI",
      "description": "Start here to learn what this repository is: the infrastructure-as-code that provisions and operates the Greenstand treetracker platform across DigitalOcean and AWS. The root README maps the major subsystems, while the pre-commit config and GitHub Actions workflow show the guardrail that keeps every Terraform change formatted and linted before it merges. This is a monorepo of independent stacks, not a single application, so the tour follows the platform's architectural layers rather than a code call graph.",
      "nodeIds": [
        "document:README.md",
        "config:.pre-commit-config.yaml",
        "pipeline:.github/workflows/pre-commit.yaml"
      ]
    },
    {
      "order": 2,
      "title": "Terraform Provisioning Foundations",
      "description": "Every stack shares the same pattern: a pinned cloud provider plus an S3-compatible remote state backend. DigitalOcean stacks pin the digitalocean provider and store state in DigitalOcean Spaces buckets, while AWS stacks use the hashicorp/aws provider with real S3. Understanding these provider and backend blocks unlocks how to read every other Terraform directory in the repo.",
      "nodeIds": [
        "resource:database/terraform/provider.tf",
        "resource:api_gateway/terraform/environments/development/backend.tf",
        "resource:web-apps/terraform/provider.tf",
        "resource:aws_access/terraform/users.tf"
      ],
      "languageLesson": "Terraform separates the provider (which cloud API to talk to) from the backend (where the state file lives). DigitalOcean Spaces is S3-compatible, so an 'S3' backend block points at a Spaces endpoint. State tracks real infrastructure, so plan before apply to preview changes."
    },
    {
      "order": 3,
      "title": "Compute: DOKS Clusters & Bastion",
      "description": "The compute foundation is a set of DigitalOcean Kubernetes (DOKS) clusters, each with dedicated node pools for microservices, cloud-services, and monitoring, all with autoscaling. A hardened bastion host, built from a shared external module, provides controlled SSH access into the private network. Almost every workload later in the tour runs on top of these clusters.",
      "nodeIds": [
        "resource:kubernetes/terraform/dev/cluster.tf",
        "resource:kubernetes/terraform/prod/cluster.tf",
        "resource:bastion/bastion.tf"
      ]
    },
    {
      "order": 4,
      "title": "Managed Postgres Database",
      "description": "Building on the compute layer, the production data tier is a DigitalOcean managed PostgreSQL cluster with a read replica, firewall rules that restrict access to tagged resources and the bastion, and several application databases (treetracker, data_pipeline, ckan, world_bank_backup). This single cluster (the highest fan-in resource after the schema module) backs nearly every service in the platform.",
      "nodeIds": [
        "resource:database/terraform/database.tf",
        "document:database/terraform/README.md"
      ]
    },
    {
      "order": 5,
      "title": "Database Schemas & Least-Privilege Grants",
      "description": "The database-grants stack is the most reused module in the repo. The prod root module fans out to fifteen per-microservice schemas, each instantiated through the reusable microservice_schema module, which creates a schema plus three roles: a service role for runtime, a migration role that owns objects, and shared read-only access. A separate read-only reporting role then gets SELECT across every schema. This is the platform's model for tenant isolation and least privilege inside one shared database.",
      "nodeIds": [
        "resource:database-grants/terraform/prod/main.tf",
        "resource:database-grants/terraform/prod/modules/microservice_schema/main.tf",
        "resource:database-grants/terraform/prod/modules/microservice_schema/variables.tf",
        "resource:database-grants/terraform/prod/read-only-user.tf"
      ],
      "languageLesson": "PostgreSQL default privileges (ALTER DEFAULT PRIVILEGES) grant access to objects that do not exist yet. The migration role owns tables so future tables it creates automatically become readable by the service and read-only roles, which is how least-privilege survives ongoing migrations."
    },
    {
      "order": 6,
      "title": "Kubernetes Secrets: Sealed Secrets",
      "description": "Before deploying workloads, the platform needs a safe way to keep credentials in git. Bitnami Sealed Secrets solves this: kubeseal encrypts a normal Kubernetes Secret into a SealedSecret that only the in-cluster controller can decrypt, so it is safe to commit. The interactive create-secret.sh helper (a high fan-in script) is the entry point operators use, and specialized wrappers exist for things like RabbitMQ connection strings.",
      "nodeIds": [
        "document:sealed-secrets/README.md",
        "file:sealed-secrets/scripts/create-secret.sh"
      ],
      "languageLesson": "A SealedSecret is asymmetric-encrypted: the public sealing key encrypts, only the cluster controller's private key decrypts. This lets encrypted secrets live in version control while the plaintext never does."
    },
    {
      "order": 7,
      "title": "API Gateway: Ambassador Ingress",
      "description": "Ambassador is the single ingress that fronts every backend service on the cluster. It is installed via an Ansible playbook and configured with Mapping custom resources that route URL prefixes to in-cluster services. Terraform then provisions the DigitalOcean DNS records and load balancer wiring. Every later workload exposes itself through an Ambassador Mapping like the one shown here.",
      "nodeIds": [
        "document:api_gateway/README.md",
        "config:api_gateway/ambassador-playbook.yml",
        "service:keycloak/lib/kubernetes/base/mapping.yaml"
      ]
    },
    {
      "order": 8,
      "title": "Identity: Keycloak",
      "description": "Keycloak is the platform's identity provider. A multi-stage Dockerfile bakes the custom treetracker theme onto the official Keycloak image, and the Kubernetes base wires the deployment to Postgres using credentials from a Secret, exposed at /keycloak through Ambassador. Kustomize overlays layer per-environment config on the shared base and, critically, pull production credentials from the SealedSecret pattern of Step 6.",
      "nodeIds": [
        "service:keycloak/lib/docker/Dockerfile",
        "service:keycloak/lib/kubernetes/base/deployment.yaml",
        "service:keycloak/lib/kubernetes/overlays/production/kustomization.yaml"
      ],
      "languageLesson": "Kustomize uses a shared base plus per-environment overlays. An overlay references the base, adds resources (like a SealedSecret), and applies strategic-merge patches to inject environment-specific values without duplicating the whole manifest."
    },
    {
      "order": 9,
      "title": "Messaging: RabbitMQ",
      "description": "Asynchronous communication between services runs on RabbitMQ, deployed as a 3-replica RabbitmqCluster custom resource via the RabbitMQ Operator. The manifests follow the same Kustomize base-plus-overlays structure as Keycloak, isolated in its own namespace, with a PodMonitor that feeds metrics to Prometheus (Step 12). Per-environment deploy scripts switch kubectl context and apply the right overlay.",
      "nodeIds": [
        "document:rabbitmq/README.md",
        "config:rabbitmq/deployment/base/definition.yaml",
        "config:rabbitmq/deployment/base/rabbitmq-pod-monitor.yaml"
      ]
    },
    {
      "order": 10,
      "title": "Workflow & Data Platform",
      "description": "Two higher-level platforms sit on the cluster and database. Airflow, installed by an Ansible-driven Helm chart, orchestrates scheduled data workflows and exposes a control panel through Ambassador. Apache Solr (deployed with the Solr Operator) and CKAN provide search and the open-data portal; CKAN's Helm values wire it to the managed Postgres from Step 4 and to Solr for indexing.",
      "nodeIds": [
        "document:airflow/README.md",
        "resource:solr/solr_chart/main.tf",
        "config:ckan/roles/ckan/files/values.yaml"
      ]
    },
    {
      "order": 11,
      "title": "Static Web Apps & CDN",
      "description": "The user-facing front-ends are static sites hosted on AWS. The web-apps Terraform provisions S3-backed static websites (web map, wallet) across dev, staging, and prod using a shared Greenstand static-website module, and cdn-images-api fronts the treetracker image store with a CloudFront distribution. This is the only major layer that lives entirely on AWS rather than DigitalOcean.",
      "nodeIds": [
        "resource:web-apps/terraform/prod-web-map.tf",
        "resource:cdn-images-api/main.tf",
        "resource:aws_access/terraform/users.tf"
      ]
    },
    {
      "order": 12,
      "title": "Observability: Metrics, Logs & Tracing",
      "description": "The platform is observed through a Prometheus/Grafana metrics stack, Loki for logs, and Jaeger for distributed tracing, all installed via Ansible playbooks and exposed through Ambassador mappings. The PodMonitors and ServiceMonitors seen in earlier steps (like RabbitMQ's) feed this stack, closing the loop between deployed workloads and their telemetry.",
      "nodeIds": [
        "document:monitoring/README.md",
        "config:monitoring/roles/prometheus_operator/files/monitor-mapping.yaml",
        "config:tracing/roles/simple_jaeger/files/jaeger-ui-mapping.yaml"
      ]
    },
    {
      "order": 13,
      "title": "Operational Tooling & Backups",
      "description": "The tour closes with the day-to-day operations layer. The scripts guide documents how operators authenticate to each DOKS cluster with doctl and helm, a Python utility lists deployments across namespaces for at-a-glance cluster state, and a dedicated AWS S3 bucket stores production database backups. Together these tie the whole platform back to the people who run it.",
      "nodeIds": [
        "document:scripts/README.md",
        "file:tag_lister/list_tags_for_deployments.py",
        "resource:database-backup-storage/production-backups.tf"
      ]
    }
  ]
}