feat(agent_harness_service): remove legacy alb - #6267
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe agent harness service now routes control and egress traffic through the shared gateway ALB. Production and development URLs use gateway paths. A new egress gateway service and priority were added. The dedicated service ALB and related resources were removed. DNS, target groups, security groups, listener dependencies, and service configuration were updated. AST-based tests validate the migration, and the README documents routing and verification steps. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No actionable merge risk remains from the verified review scope. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bd9728f to
a0b481d
Compare
a0b481d to
7894437
Compare
Note
High Risk
Infrastructure cutover changes live routing, DNS, ECS load balancer attachments, and client default URLs; mis-deploy could break control API, websockets, or egress until configs are updated.
Overview
Moves agent harness control traffic off the dedicated
agent-harness*.macro.comhostname onto the shared gateway at/agent-harness(prod and dev). macrod defaults and tests now pointapi_urlatgateway.macro.com/agent-harness(and dev equivalent); websocket gateway URLs follow that base.In Pulumi, control registers only with the gateway
ServiceTargetGroup(/agent-harness,/agent-harness/*);BASE_URLcomes fromgetServiceUrl(ServiceUrl.AGENT_HARNESS_SERVICE_URL). The legacy control DNS record, dedicated control target group, and ECS registration on the old ALB are removed. Sandbox egress stays onagent-harness-egress*.macro.comon the retained ALB, usingserviceLoadBalancerwithcreateDefaultTargetGroup: falseso the HTTPS default action is a fixed 404 and only the host rule forwards egress.serviceLoadBalancergains typed overloads for optional default target group creation (404 vs forward). New source-parse tests lock routing shape and helper behavior; a stack README documents cutover and verification steps.Reviewed by Cursor Bugbot for commit d89d4e1. Bugbot is set up for automated code reviews on this repo. Configure here.