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

supabase / storage / 46006717384 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2026 01:31PM UTC
Files 376
Run time 5s
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: 68.555% (-0.08%) from 68.637%
46006717384.1

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>

6864 of 11206 branches covered (61.25%)

Branch coverage included in aggregate %.

13087 of 17896 relevant lines covered (73.13%)

1020.79 hits per line

Source Files on job rest-pg18 - 46006717384.1
  • Tree
  • List 376
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 46006717384
  • 19a3ea62 on github
  • Prev Job for on master (#45994353337.1)
  • Next Job for on master (#46022211576.1)
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