Skip to content

KNOX-3419: Tests for the recent improvements - #1369

Merged
hanicz merged 2 commits into
apache:masterfrom
hanicz:KNOX-3419
Sep 2, 2026
Merged

KNOX-3419: Tests for the recent improvements#1369
hanicz merged 2 commits into
apache:masterfrom
hanicz:KNOX-3419

Conversation

@hanicz

@hanicz hanicz commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

KNOX-3419 - Add docker based tests for recent improvements

What changes were proposed in this pull request?

New tests:

  • test_knox_token_passcode (KNOX-3413) — passcode bound to its own token; a verified guest passcode replayed against an admin token id → 401, never asserted as admin.
  • test_knox_admin_path_traversal (KNOX-3418) — Admin API rejects traversal names (..%2f…, ..%252f…) → 400.
  • test_knox_ldap_filter_injection (KNOX-3417) — search-filter injection escaped; metacharacter usernames → 401.
  • test_knoxsso_redirect — KnoxSSO rejects originalUrl with embedded userinfo → 400.
  • Extended test_knoxtoken_jwt with 5 non-owner/non-whitelist authz tests (disable + getUserTokens → 403).

How was this patch tested?

Ran the tests

Integration Tests

See in changes

@hanicz
hanicz requested review from moresandeep and smolnar82 and removed request for moresandeep September 1, 2026 13:13
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Test Results

  4 files    4 suites   13s ⏱️
 84 tests  84 ✅ 0 💤 0 ❌
102 runs  102 ✅ 0 💤 0 ❌

Results for commit 3950ae9.

♻️ This comment has been updated with latest results.

@hanicz
hanicz merged commit a5fb4e7 into apache:master Sep 2, 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.

2 participants