Skip to content

KNOX-3428: Bump Spring to 6.2.19 and add HashiCorp Vault alias service integration tests - #1367

Merged
smolnar82 merged 1 commit into
apache:masterfrom
smolnar82:KNOX-3428
Aug 31, 2026
Merged

KNOX-3428: Bump Spring to 6.2.19 and add HashiCorp Vault alias service integration tests#1367
smolnar82 merged 1 commit into
apache:masterfrom
smolnar82:KNOX-3428

Conversation

@smolnar82

Copy link
Copy Markdown
Contributor

KNOX-3428 - Bump Spring to 6.2.19 and add HashiCorp Vault alias-service integration tests

What changes were proposed in this pull request?

  • Bumped spring.version to 6.2.19 (from 6.2.11) in pom.xml.
  • Added a Docker-based integration suite exercising Knox's HashiCorp Vault remote alias service end-to-end, as a safety net for the Spring / Spring Vault bump. Under .github/workflows:
    • tests/test_knox_hashicorp_vault_alias.py: round-trips an alias through the admin alias REST API and verifies the secret directly in Vault, plus delete-removal and an unauthenticated-401 check.
    • compose/docker-compose.hashicorp-vault.yml + compose/hashicorp-vault/{gateway-site,admin}.xml: dev-mode Vault (hashicorp/vault:1.17) and Knox on a Vault-backed RemoteAliasService. gateway-site.xml also sets gateway.service.tokenstate.impl=DefaultTokenStateService to avoid an init-time alias read that would make Vault a fatal startup dependency.
    • compose/docker-compose.yml + tests.yml: base run ignores the suite; CI runs it and uploads test-results-hashicorp-vault.xml.

How was this patch tested?

Ran the suite locally via Docker Compose (up -d knox vaultrun --rm tests pytest -v test_knox_hashicorp_vault_alias.py): 3 passed. test_alias_write_is_stored_in_vault reads the secret straight from Vault's HTTP API and asserts the exact value, confirming the write reached Vault (not just the local keystore fallback).

pylint *.py rated 10.00/10.

Integration Tests

Added test_knox_hashicorp_vault_alias.py. The Vault dev image boots in seconds, so it runs on every PR (not label-gated).

@github-actions

Copy link
Copy Markdown

Test Results

 4 files   4 suites   14s ⏱️
69 tests 69 ✅ 0 💤 0 ❌
80 runs  80 ✅ 0 💤 0 ❌

Results for commit 7040009.

@smolnar82
smolnar82 merged commit c40480e into apache:master Aug 31, 2026
3 checks passed
@smolnar82
smolnar82 deleted the KNOX-3428 branch August 31, 2026 19:43
@smolnar82
smolnar82 restored the KNOX-3428 branch September 1, 2026 09:58
@smolnar82
smolnar82 deleted the KNOX-3428 branch September 1, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants