Skip to content

fix(storage): align keystore cleanup semantics, error chains and facade tests - #2248

Merged
AkramBitar merged 1 commit into
mainfrom
fix/2045-facades-findings
Aug 18, 2026
Merged

fix(storage): align keystore cleanup semantics, error chains and facade tests#2248
AkramBitar merged 1 commit into
mainfrom
fix/2045-facades-findings

Conversation

@AkramBitar

@AkramBitar AkramBitar commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #2045

Five small problems in the token storage code.

5 bugs/gaps in token storage cleanup, all in token/services/storage/:

  1. Docs lied about retry logic — code was correct, comments were wrong
  2. X.509 "cleaned" silently — not a bug, but zero explanation; now documented
  3. Error chain broken%s on an error kills errors.Is downstream
  4. Two facades had no testsendorserdb and tokenlockdb
  5. Dead Rollback() after Commit() fail — unreachable code, removed

@AkramBitar AkramBitar added this to the Q3/26 milestone Aug 17, 2026
@AkramBitar AkramBitar self-assigned this Aug 17, 2026
@AkramBitar
AkramBitar marked this pull request as draft August 17, 2026 19:15
@AkramBitar
AkramBitar force-pushed the fix/2045-facades-findings branch from d7c50de to 891263a Compare August 18, 2026 07:05
@AkramBitar
AkramBitar marked this pull request as ready for review August 18, 2026 07:09
…de tests (#2045)

Signed-off-by: AkramBitar <akram@il.ibm.com>
@AkramBitar
AkramBitar force-pushed the fix/2045-facades-findings branch from 1fe963e to ca9879a Compare August 18, 2026 10:31
@AkramBitar
AkramBitar merged commit f4fb939 into main Aug 18, 2026
154 checks passed
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.

services/facades: misc medium/low findings (cleanup comment/code mismatch, x509 key retention, test gaps)

2 participants