Skip to content

PG-1592 Return all nulls for key info when no key #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

jeltz
Copy link
Collaborator

@jeltz jeltz commented Jun 4, 2025

Since no key being configured is not an error we instead of raising the error we return a tuple with all fields set to NULL. This is a pattern used by other PostgreSQL functions.

Also add a more explicit test for pg_tde_verify_server_key().

@jeltz jeltz requested review from dutow and dAdAbird as code owners June 4, 2025 13:38
@jeltz jeltz force-pushed the tde/key-info-return branch from 365fdcd to b635e50 Compare June 4, 2025 13:39
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 85.20%. Comparing base (dc84908) to head (a8d079f).

❌ Your project status has failed because the head coverage (85.20%) 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                  @@
##           TDE_REL_17_STABLE     #391      +/-   ##
=====================================================
- Coverage              85.23%   85.20%   -0.04%     
=====================================================
  Files                     22       22              
  Lines                   2533     2534       +1     
  Branches                 384      384              
=====================================================
  Hits                    2159     2159              
- Misses                   300      301       +1     
  Partials                  74       74              
Components Coverage Δ
access 84.20% <ø> (ø)
catalog 87.96% <87.50%> (+0.01%) ⬆️
common 91.80% <ø> (ø)
encryption 72.56% <ø> (-0.89%) ⬇️
keyring 72.00% <ø> (ø)
src 91.40% <ø> (ø)
smgr 97.41% <ø> (ø)
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeltz jeltz force-pushed the tde/key-info-return branch 2 times, most recently from ca9b84f to ecf2b9b Compare June 4, 2025 15:47
Since no key being configured is not an error we instead of raising the
error we return a tuple with all fields set to NULL. This is a pattern
used by other PostgreSQL functions.

Also add a more explicit test for pg_tde_verify_server_key().
@jeltz jeltz force-pushed the tde/key-info-return branch from ecf2b9b to a8d079f Compare June 4, 2025 18:02
@jeltz jeltz merged commit 226dd2e into percona:TDE_REL_17_STABLE Jun 5, 2025
16 checks passed
@jeltz jeltz deleted the tde/key-info-return branch June 6, 2025 15:07
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