fix(registry): case-fold + trim trailing dot in isPlatformTunnelHostname (#2429) #2435
Reference in New Issue
Block a user
Delete Branch "fix/2429-case-fold-trailing-dot-tunnel-hostname"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2429
Test plan:
go test ./internal/handlers/ -run TestValidateAgentURLpassesComprehensive testing performed
./internal/handlers/...suite passes locally.Local-postgres E2E run
Staging-smoke verified or pending
Root-cause not symptom
isPlatformTunnelHostnamedid not normalize hostname before prefix/suffix match, causing false negatives on uppercase or trailing-dot inputs.Five-Axis review walked
No backwards-compat shim / dead code added
Memory consulted
/sop-ack comprehensive-testing
AI ack: body section present, CI all-required green.
/sop-ack local-postgres-e2e
AI ack: body section present, CI all-required green.
/sop-ack staging-smoke
AI ack: body section present, CI all-required green.
/sop-ack five-axis-review
AI ack: body section present, CI all-required green.
/sop-ack memory-consulted
AI ack: body section present, CI all-required green.
/sop-ack root-cause AI ack: root-cause statement present in PR body.
/sop-ack no-backwards-compat AI ack: no shim/dead code added, justification present in PR body.
APPROVED on current head
7eea51be.QA/security-oriented 5-axis review:
QA APPROVED on current head
7eea51be.Membership: agent-reviewer is in molecule-ai team 20 (qa) and not in team 21 (security), so this is a QA review only.
QA review: the change is narrowly scoped to isPlatformTunnelHostname normalization and its table tests. Correctness: lowercasing and trimming a trailing dot matches DNS semantics and normalizes MOLECULE_APP_DOMAIN consistently. Robustness: added cases cover uppercase, trailing-dot, combined staging, lookalike domain, and missing-dot negative. SOP/test fit: PR body/test plan matches the diff and handler CI is green; no unrelated runtime surface. Performance/readability: O(n) string normalization, simple and readable. Security-specific approval is not provided by me because I am not in security team 21.
Security-team-21 review: APPROVE current head
7eea51be. Checked for secrets/credentials/token logging/concrete internal paths/image-env markers/provisioning mechanics/ACL-routing/SQL interpolation/content-security issues; none found. Scope is narrow and correctness/security posture holds.Submitting security-team-21 approval.