Skip to content

[codex] fix allowlist case-insensitive lookup#642

Merged
winhowes merged 1 commit intomainfrom
codex/find-fix-bug-latest-main
Apr 25, 2026
Merged

[codex] fix allowlist case-insensitive lookup#642
winhowes merged 1 commit intomainfrom
codex/find-fix-bug-latest-main

Conversation

@winhowes
Copy link
Copy Markdown
Owner

Summary

  • Normalize integration names in GetAllowlist before reading the stored allowlist map.
  • Add a regression test covering mixed-case set and uppercase get behavior.

Root Cause

SetAllowlist lowercased integration names when storing allowlist entries, but GetAllowlist used the caller-provided name as-is. Direct mixed-case lookups could incorrectly return an empty allowlist even though one was configured.

Impact

The current proxy path passes the already-normalized integration name, so this was primarily a latent correctness issue. Fixing it keeps allowlist retrieval consistent with integration and denylist lookups and prevents future callers from accidentally treating a configured allowlist as absent.

Validation

  • go test ./app -run TestGetAllowlistCaseInsensitive -count=1
  • go test ./...
  • go vet ./...

@winhowes winhowes marked this pull request as ready for review April 25, 2026 01:53
@winhowes winhowes merged commit aa946ce into main Apr 25, 2026
3 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.

1 participant