Avatar for the Cap-go user
Cap-go
capgo
BlogDocsChangelog

fix(db): harden security definer execute grants

#1966Merged
Comparing
codex/harden-security-definer-execute-grants
(
f311135
) with
main
(
6b257aa
)
CodSpeed Performance Gauge
0%
Untouched
28

Benchmarks

28 total
with undefined
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
+1%
14.3 µs14.2 µs
with edge values
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
0%
18.4 µs18.3 µs
with valid min length
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
0%
19.3 µs19.2 µs
multibyte password (emoji + accented)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
22.8 µs22.7 µs
empty policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
26.9 µs26.8 µs
long ASCII password (72 bytes)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
29.5 µs29.4 µs
with custom fallback
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
12.3 µs12.3 µs
valid password against strict policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
41.5 µs41.4 µs
non-number types
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
14.3 µs14.2 µs
multibyte password validation
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
29.9 µs29.8 µs
float truncation
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15 µs15 µs
zero
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.1 µs15.1 µs
negative number
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.1 µs15.1 µs
NaN and Infinity
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
17.9 µs17.9 µs
invalid password (all rules fail)
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
38.4 µs38.3 µs
ASCII password
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
40.5 µs40.5 µs
full device
benches/device-comparison.bench.ts::buildNormalizedDeviceForWrite
CodSpeed Performance Gauge
0%
71 µs70.9 µs
changes detected (version_name differs)
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
no changes detected
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
1 ms1 ms
number exceeding max
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.8 µs15.8 µs
full existing row
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
0%
39.9 µs39.9 µs
sparse existing row
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
0%
16.3 µs16.3 µs
valid number within range
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
25.5 µs25.5 µs
null/undefined existing
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
0%
15.8 µs15.8 µs
sparse device
benches/device-comparison.bench.ts::buildNormalizedDeviceForWrite
CodSpeed Performance Gauge
0%
17.2 µs17.2 µs

Commits

Click on a commit to change the comparison range
Base
main
6b257aa
+0.06%
fix(db): harden security definer execute grants
eca35c4
8 days ago
by riderx
-0.05%
fix(db): restore anon-safe rpc grants
1b9a9ab
8 days ago
by riderx
-0.04%
fix(db): restore api key rpc grants
0a95881
8 days ago
by riderx
+0.16%
fix(db): restore stats rpc grants
a48f656
8 days ago
by riderx
+0.03%
test(db): narrow helper grant assertion
a3f37b5
8 days ago
by riderx
+0.01%
test(db): tighten helper grant coverage
f311135
8 days ago
by riderx
© 2026 CodSpeed Technology
Home Terms Privacy Docs