Skip to content

Conversation

@field123
Copy link
Collaborator

Problem

Requests to https://codegen.integration.storefront.elasticpath.com/api/v1/socket/* were incorrectly routed to the codegen service instead of the
socket service due to ALB listener rule priorities.

Root Cause

  • Codegen host-based rule (priority 110) had higher precedence than socket path-based rule (priority 150)
  • Lower priority numbers have higher precedence in ALB routing

Solution

  • Changed socket service listener rule priority from 150 to 108
  • Ensures /api/v1/socket* paths route to socket service regardless of host header
  • All existing security deny rules (140-142) remain effective

Testing

  • Verified against live ALB configuration in integration environment
  • No security implications - path-based routing is more specific and secure

Files Changed:

  • terraform/services/socket-backend/main.tf - Updated listener rule priority

Deployment:
Auto-deploys on merge to master via existing CI/CD pipeline.

@field123 field123 merged commit 11e9557 into master Dec 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants