Skip to content

Conversation

@dutow
Copy link
Collaborator

@dutow dutow commented Dec 4, 2025

Hashicorp Vault sends a different response when using namespaces compared to the "normal" responses for the mount path info: instead of all information available at the top level and inside the data subobject, it is only available inside data.

This commit modifies the parser to retrieve fields inside data instead, so it works in all situations.

@dutow dutow force-pushed the pg1959b branch 2 times, most recently from 69b3d39 to 71a2d35 Compare December 4, 2025 15:14
@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 86.36364% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.70%. Comparing base (432315b) to head (dc16937).
⚠️ Report is 17 commits behind head on main.

❌ Your project status has failed because the head coverage (59.70%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #492      +/-   ##
==========================================
+ Coverage   59.67%   59.70%   +0.02%     
==========================================
  Files          67       67              
  Lines       10473    10487      +14     
  Branches     1805     1803       -2     
==========================================
+ Hits         6250     6261      +11     
- Misses       3528     3531       +3     
  Partials      695      695              
Components Coverage Δ
access 84.89% <ø> (ø)
catalog 87.93% <ø> (ø)
common 77.77% <ø> (ø)
encryption 71.56% <ø> (ø)
keyring 74.00% <86.36%> (+0.11%) ⬆️
src 94.20% <ø> (ø)
smgr 94.06% <ø> (ø)
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@AndersAstrand AndersAstrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

I'm not at all sure what parse->level encodes here that's not already encoded in the parse states, but that's out of scope for this PR.

dutow added 2 commits January 13, 2026 19:42
Hashicorp Vault sends a different response when using namespaces
compared to the "normal" responses for the mount path info: instead of
all information available at the top level and inside the data
subobject, it is only available inside data.

This commit modifies the parser to retrieve fields inside data instead,
so it works in all situations.
If we can't access the mount point info, we emit a warning instead of an
error. This shown users that we weren't able to verify their setup
without completely blocking the use of the server.
@dutow dutow merged commit e8e120e into percona:main Jan 15, 2026
17 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.

3 participants