feat(admin): open a fresh region from the portal (ADR-0182 section 15)
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m31s
Foundation / postgres-tools (push) Successful in 27s
Foundation / server-image (push) Successful in 4m33s
Foundation / image (push) Successful in 5m39s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m31s
Foundation / postgres-tools (push) Successful in 27s
Foundation / server-image (push) Successful in 4m33s
Foundation / image (push) Successful in 5m39s
The Regions page opens the next region in place of the one DEV serves: the admin API reads the region overlay, its kustomization, the grant broker and the portal deployment from main at one commit, rewrites only the region id, routes, genesis commit and seeded wildlife range (refusing files whose layout differs), commits them in one Gitea multi-file commit as aevolution-bot, then starts a full Argo sync of exactly that commit. The page follows the sync until the region is live, across the portal's own restart. Credentials come from Secret aevolution-admin mounted read-only as files (--deploy-config); without it the feature stays off. A small OpenSSL HTTPS client talks to Gitea (verified) and argocd-server (verification per ARGOCD_TLS_VERIFY). The portal's NetworkPolicy gains egress to the node's ingress for Gitea and to the argocd-server pods, as approved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -312,8 +312,11 @@ if(EVO_BUILD_POSTGRES)
|
||||
target_link_libraries(evo-grant-broker PRIVATE evo_grant_broker)
|
||||
evo_owned_target(evo-grant-broker)
|
||||
# ADR-0182 read-only admin API and portal host (schema v61).
|
||||
add_library(evo_admin_api STATIC src/server/admin/admin_api.cpp)
|
||||
target_link_libraries(evo_admin_api PUBLIC evo_grant_broker)
|
||||
# Section 15: its HTTPS client to Gitea and Argo CD (OpenSSL libssl) and the region switch.
|
||||
find_package(OpenSSL 3 REQUIRED COMPONENTS Crypto SSL)
|
||||
add_library(evo_admin_api STATIC src/server/admin/admin_api.cpp
|
||||
src/server/admin/https_client.cpp src/server/admin/region_switch.cpp)
|
||||
target_link_libraries(evo_admin_api PUBLIC evo_grant_broker PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||
evo_owned_target(evo_admin_api)
|
||||
add_executable(evo-admin-api apps/evo-admin-api/main.cpp)
|
||||
target_link_libraries(evo-admin-api PRIVATE evo_admin_api)
|
||||
|
||||
Reference in New Issue
Block a user