Skip to content

test: E2E test showing client2 authentication fails#2

Closed
nobbs wants to merge 1 commit intomainfrom
test/api-key-e2e-only
Closed

test: E2E test showing client2 authentication fails#2
nobbs wants to merge 1 commit intomainfrom
test/api-key-e2e-only

Conversation

@nobbs
Copy link
Copy Markdown
Owner

@nobbs nobbs commented Feb 9, 2026

E2E Test Only - Demonstrates Bug

This PR contains only the E2E test addition (no unit test changes) to demonstrate that API key authentication fails for client2.

What this shows:

  • E2E test attempts to authenticate with key2 (client2)
  • Test will fail because only client1 is preserved in cache
  • This is a minimal reproduction - only E2E test added, no other changes

Why it fails:
The secret filtering bug drops all client IDs except the first one alphabetically. The existing E2E tests only used client1, so the bug went undetected.

Related:

This test would fail with the current implementation because client2
is dropped from the cache (only client1, the first alphabetically, is preserved).

The existing E2E tests only tested client1, which is why the bug
went undetected. This test demonstrates that authentication with
client2 fails due to the filtering bug.

Signed-off-by: Alexej Disterhoft <alexej@disterhoft.de>
@nobbs nobbs closed this Feb 19, 2026
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