{
  "schema_version": 1,
  "repositories": {
    "downstream": "https://github.com/pingcap-inc/nexuscrm-pingcap-pack.git",
    "upstream": "https://github.com/pingcap-inc/NexusCRM.git",
    "official_app_packs": "https://github.com/pingcap-inc/nexuscrm-app-packs.git"
  },
  "environments": {
    "ci": {
      "host_class": "offline",
      "topology": {
        "kind": "single",
        "targets": [
          "run-scoped"
        ]
      },
      "authority": {
        "default": "explicit_debug",
        "allow_explicit_debug": true
      },
      "database": {
        "kind": "local_tidb_database",
        "reset": "reset_db",
        "allow_reset_db": true,
        "allow_reset_tidb_branch": false
      },
      "pack": {
        "build": "from_resolved_refs",
        "verify_tuple_hash": false
      },
      "publish": {
        "frontend": false,
        "systemd": false,
        "nginx": false,
        "manifest": "ci_summary"
      },
      "release_meaning": "merge_sit_evidence"
    },
    "exp": {
      "host_class": "offline",
      "topology": {
        "kind": "single",
        "targets": [
          "single"
        ]
      },
      "authority": {
        "default": "latest_main",
        "allow_explicit_debug": true
      },
      "database": {
        "kind": "local_tidb_database",
        "reset": "reset_db",
        "allow_reset_db": true,
        "allow_reset_tidb_branch": false
      },
      "pack": {
        "build": "from_resolved_refs",
        "verify_tuple_hash": false
      },
      "publish": {
        "frontend": true,
        "systemd": true,
        "nginx": true,
        "manifest": "exp_summary"
      },
      "hubspot": {
        "credential_admission": {
          "mode": "nonprod",
          "expected_portal_id": "51280875",
          "expected_account_type": "SANDBOX"
        }
      },
      "release_meaning": "non_release_canary"
    },
    "staging": {
      "host_class": "offline",
      "topology": {
        "kind": "bluegreen",
        "targets": [
          "blue",
          "green"
        ],
        "active_slot_source": "nginx",
        "target_config": {
          "blue": {
            "backend_port": "3101",
            "tidb": {
              "host": "gateway04.us-west-2.prod.aws.tidbcloud.com",
              "port": "4000",
              "user": "WzYiU3Ldrsz2VmS.root",
              "database": "nexuscrm",
              "cluster_id": "10809370594661512983",
              "branch_id": "bran-y7rgrdmo55hwzbxoqjheh5tyyi",
              "password_env": "STAGING_BLUE_TIDB_PASSWORD"
            }
          },
          "green": {
            "backend_port": "3111",
            "tidb": {
              "host": "gateway04.us-west-2.prod.aws.tidbcloud.com",
              "port": "4000",
              "user": "otCtjsJXCVf2Exx.root",
              "database": "nexuscrm",
              "cluster_id": "10809370594661512983",
              "branch_id": "bran-nx7qhixdt5dbbldygsejxwrn4e",
              "password_env": "STAGING_GREEN_TIDB_PASSWORD"
            }
          }
        }
      },
      "authority": {
        "default": "final_pack_lineage",
        "allow_explicit_debug": false
      },
      "database": {
        "kind": "tidb_cloud_branch_per_slot",
        "reset": "reset_branch",
        "allow_reset_db": false,
        "allow_reset_tidb_branch": true
      },
      "pack": {
        "build": "from_final_pack_lineage_refs",
        "verify_tuple_hash": false
      },
      "publish": {
        "frontend": true,
        "systemd": true,
        "nginx_switch": true,
        "manifest": "staging_release"
      },
      "hubspot": {
        "credential_admission": {
          "mode": "nonprod",
          "expected_portal_id": "51280875",
          "expected_account_type": "SANDBOX"
        },
        "connector_worker": {
          "denied_claimed_by_needles": [
            "ip-10-77-1-103"
          ]
        }
      },
      "release_meaning": "real_data_staging_candidacy"
    },
    "test": {
      "host_class": "offline",
      "topology": {
        "kind": "multi_slot",
        "targets": [
          "test1",
          "test2",
          "test3"
        ],
        "active_slot_source": "none",
        "target_config": {
          "test1": {
            "backend_port": "3301",
            "hubspot": {
              "portal_id": "51280875"
            },
            "tidb": {
              "host": "gateway04.us-west-2.prod.aws.tidbcloud.com",
              "port": "4000",
              "user": "n3ikmq1mx9uxdND.root",
              "database": "nexuscrm",
              "cluster_id": "10809370594661512983",
              "branch_id": "bran-xzw53ui2uvg5fnrwskkb2hjzca",
              "password_env": "TEST1_TIDB_PASSWORD"
            }
          },
          "test2": {
            "backend_port": "3302",
            "tidb": {
              "host": "gateway04.us-west-2.prod.aws.tidbcloud.com",
              "port": "4000",
              "user": "pBwzUAFDqPxhyEh.root",
              "database": "nexuscrm",
              "cluster_id": "10809370594661512983",
              "branch_id": "bran-garzce7lwjghtemkhjh3u36qwi",
              "password_env": "TEST2_TIDB_PASSWORD"
            }
          },
          "test3": {
            "backend_port": "3303",
            "tidb": {
              "host": "gateway04.us-west-2.prod.aws.tidbcloud.com",
              "port": "4000",
              "user": "2WVwnJ6VMpFoGt6.root",
              "database": "nexuscrm",
              "cluster_id": "10809370594661512983",
              "branch_id": "bran-6cffljdnovfjnpejcwautopnmi",
              "password_env": "TEST3_TIDB_PASSWORD"
            }
          }
        }
      },
      "authority": {
        "default": "final_pack_lineage",
        "allow_explicit_debug": false
      },
      "database": {
        "kind": "tidb_cloud_branch_per_slot",
        "reset": "reset_branch",
        "allow_reset_db": false,
        "allow_reset_tidb_branch": true
      },
      "pack": {
        "build": "from_final_pack_lineage_refs",
        "verify_tuple_hash": false
      },
      "publish": {
        "frontend": true,
        "systemd": true,
        "nginx_switch": false,
        "manifest": "test_release"
      },
      "hubspot": {
        "credential_admission": {
          "mode": "nonprod",
          "expected_portal_id": "51280875",
          "expected_account_type": "SANDBOX"
        },
        "connector_worker": {
          "denied_claimed_by_needles": [
            "ip-10-77-1-103"
          ]
        }
      },
      "release_meaning": "real_data_test_multislot"
    },
    "multi_prod": {
      "host_class": "online",
      "topology": {
        "kind": "multi_version",
        "targets": [
          "backend-port-slot"
        ]
      },
      "d3_topology": {
        "kind": "four_slot_rotating_runtime_shared_database",
        "targets": [
          "slot-3103",
          "slot-3104",
          "slot-3105",
          "slot-3106"
        ],
        "active_slot_source": "nginx",
        "next_slot_policy": "3103->3104->3105->3106->3103",
        "release_authority": "signed_resolved_bom_from_successful_staging_d3_run",
        "current_pointer": "online/envs/multi_prod/d3/current.json",
        "target_config": {
          "slot-3103": {
            "backend_port": "3103",
            "workflow_adapter_port": "3204",
            "integration_port": "3403",
            "runtime_grpc_port": "3701",
            "runtime_admin_port": "3702",
            "worker_admin_base_port": "3710"
          },
          "slot-3104": {
            "backend_port": "3104",
            "workflow_adapter_port": "3205",
            "integration_port": "3413",
            "runtime_grpc_port": "3801",
            "runtime_admin_port": "3802",
            "worker_admin_base_port": "3810"
          },
          "slot-3105": {
            "backend_port": "3105",
            "workflow_adapter_port": "3206",
            "integration_port": "3423",
            "runtime_grpc_port": "3901",
            "runtime_admin_port": "3902",
            "worker_admin_base_port": "3910"
          },
          "slot-3106": {
            "backend_port": "3106",
            "workflow_adapter_port": "3207",
            "integration_port": "3433",
            "runtime_grpc_port": "4101",
            "runtime_admin_port": "4102",
            "worker_admin_base_port": "4110"
          }
        }
      },
      "authority": {
        "default": "final_pack_lineage",
        "allow_explicit_debug": false
      },
      "database": {
        "kind": "prod_tidb_with_recovery_branch",
        "reset": "none",
        "allow_reset_db": false,
        "allow_reset_tidb_branch": false
      },
      "pack": {
        "build": "from_final_pack_lineage_refs",
        "verify_tuple_hash": false
      },
      "publish": {
        "frontend": true,
        "systemd": true,
        "nginx": true,
        "manifest": "prod_release"
      },
      "release_meaning": "prod_release"
    }
  }
}
