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

fix(db): restrict apikey table management RLS

#2134Closed
Comparing
hieu-lee:bounty-1667-restrict-apikey-table-rls
(
b3a8ae7
) with
main
(
b69f22a
)
CodSpeed Performance Gauge
0%
Untouched
43
Skipped
2

Benchmarks

45 total
sparse existing row
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
+1%
16 µs15.9 µs
null/undefined existing
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
+1%
16.3 µs16.2 µs
full device object
benches/device-comparison.bench.ts::toComparableDevice
CodSpeed Performance Gauge
0%
42.3 µs42.1 µs
full existing row
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
0%
40.1 µs40 µs
full device
benches/device-comparison.bench.ts::buildNormalizedDeviceForWrite
CodSpeed Performance Gauge
0%
71.1 µs71 µs
multibyte password (emoji + accented)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
22.9 µs22.8 µs
classify native package compatibility - getCompatibilityDetails
benches/cli-hot-paths.bench.ts::cli compatibility helpers
CodSpeed Performance Gauge
0%
175.4 µs175.2 µs
/channel_self set payload validation
benches/plugin-hot-paths.bench.ts::plugin endpoint request parsing
CodSpeed Performance Gauge
0%
75 µs74.9 µs
/channel_self GET query normalization
benches/plugin-hot-paths.bench.ts::plugin endpoint request parsing
CodSpeed Performance Gauge
0%
162.4 µs162.4 µs
no changes detected
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
43.8 µs43.8 µs
crc32 checksum for medium bundle payload
benches/cli-hot-paths.bench.ts::cli checksum helpers
CodSpeed Performance Gauge
0%
24.7 ms24.7 ms
empty policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
26.9 µs26.9 µs
long ASCII password (72 bytes)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
29.5 µs29.5 µs
sparse existing vs full device
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
31.2 µs31.2 µs
classify native package compatibility - isCompatible
benches/cli-hot-paths.bench.ts::cli compatibility helpers
CodSpeed Performance Gauge
0%
148.7 µs148.7 µs
valid number within range
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
25.5 µs25.5 µs
valid password against strict policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
41.5 µs41.5 µs
nan and infinity
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
17.8 µs17.8 µs
sha256 checksum for medium bundle payload
benches/cli-hot-paths.bench.ts::cli checksum helpers
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
number exceeding max
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.7 µs15.7 µs
negative number
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.1 µs15.1 µs
zero
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15 µs15 µs
/stats payload validation
benches/plugin-hot-paths.bench.ts::plugin endpoint request parsing
CodSpeed Performance Gauge
0%
94.6 µs94.7 µs
device row normalization
benches/plugin-hot-paths.bench.ts::plugin endpoint request parsing
CodSpeed Performance Gauge
0%
97 µs97 µs
suggest replacement bundle versions
benches/cli-hot-paths.bench.ts::cli version helpers
CodSpeed Performance Gauge
0%
224.8 µs224.9 µs

Commits

Click on a commit to change the comparison range
Base
main
b69f22a
+0.1%
Restrict API key table management RLS
07151eb
8 days ago
by hieu-lee
-0.15%
fix(db): keep apikey table management authenticated
bbafd01
8 days ago
by hieu-lee
+0.14%
fix(db): preserve hashed API key RPC return path
090acfe
8 days ago
by hieu-lee
-0.09%
fix(db): keep API key endpoints working with stricter RLS
30962f9
8 days ago
by hieu-lee
-0.15%
refactor(db): share owned API key query
b3a8ae7
8 days ago
by hieu-lee
© 2026 CodSpeed Technology
Home Terms Privacy Docs