• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 46006717384
89%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2026 01:25PM UTC
Jobs 2
Files 403
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Nov 2026 01:23PM UTC coverage: 88.666% (+0.006%) from 88.66%
46006717384

push

github

web-flow
feat: add scram cache (#1726)

## What kind of change does this PR introduce?

Feature

## What is the current behavior?

Every new SCRAM connection derives its salted password using PBKDF2 and
computes the proof using pg WebCrypto helpers.

## What is the new behavior?

* With `DATABASE_SCRAM_KEY_CACHE=true` the process reuses the PBKDF2
result for matching password, salt, and iteration count including
concurrent derivations.
* Changed inputs cause a fresh derivation and rejected derivations are
removed.
HMAC and SHA-256 calculations also switch to node sync crypto helpers. 
* The cache is process-wide and holds up to one entry in single-tenant
mode or `TENANT_POOL_CACHE_MAX_ENTRIES` in multitenant mode and records
cache metrics as usual.

## Additional context

The flag defaults to off, no change by itself.

Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>

10240 of 12134 branches covered (84.39%)

Branch coverage included in aggregate %.

25 of 26 new or added lines in 3 files covered. (96.15%)

17602 of 19267 relevant lines covered (91.36%)

1286.25 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.0
-0.33% src/internal/database/pg-connection.ts
Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 46006717384.1 27 Nov 2026 01:30PM UTC 376
68.56
GitHub Action Run
2 unit - 46006717384.2 27 Nov 2026 01:25PM UTC 395
72.44
GitHub Action Run
Source Files on build 46006717384
  • Tree
  • List 403
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46006717384
  • 19a3ea62 on github
  • Prev Build on master (#45994353337)
  • Next Build on master (#46022211576)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc