Owen Schwartz
a76c680914
Merge pull request #3267 from Josh-Voyles/memfix1-1.18.4
...
fix(sqlite): revert no-op finalize wrapper and aggressive PRAGMAs (#2120 )
2026-06-22 07:35:56 -07:00
Josh Voyles
522ca671b5
fix: remove no-op autoFinalizeStatement wrapper and redundant busy_timeout ( #2120 )
...
better-sqlite3 11.x exposes no Statement.finalize() — the wrapper threw and
swallowed a TypeError on every query (verified: 'Statement.finalize exists:
undefined' in the runner image) while adding +122% per-statement overhead
(3.90 -> 8.66 us/op, 200k-op in-container microbench) and freeing nothing.
Statement lifecycle is GC-managed by the driver; drizzle-orm prepares fresh
per query, so nothing accumulates unbounded.
busy_timeout=5000 duplicates better-sqlite3's default timeout option, which
already arms sqlite3_busy_timeout(db, 5000) at open (lib/database.js).
With ENABLE_SQLITE_WAL_MODE unset the driver is now runtime-identical to
pre-1.18.3 (zero pragmas). The env-gated WAL block stays: journal_mode is
sticky in the DB file, so removing it would strand opted-in databases on
WAL+synchronous=FULL.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-06-13 14:53:16 -04:00
Josh Voyles
d94af2b8ea
fix(sqlite): remove cache_size and mmap_size PRAGMAs ( #2120 )
...
A 64 MB page cache plus a 256 MB memory-mapped region inflate RSS and
cause page-cache thrashing on small (~1 GB) instances. The PRAGMAs were
added to reduce event-loop blocking on TraefikConfigManager JOINs but
the memory cost outweighs the I/O benefit on the deployment shapes that
hit #2120 . Leave SQLite on its conservative defaults.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-13 14:53:07 -04:00
Owen
9d88683fc5
Reset resource info when on inline policy
2026-06-09 21:28:25 -07:00
Owen
96a54fc9cc
Fix import issue in migrations
2026-06-09 16:51:55 -07:00
Owen
772ac8af73
Remove browser gateway targets for regular targets
2026-06-05 15:30:42 -07:00
Owen
67b08ca61e
Properly do disable enterprise features this time
2026-06-04 21:18:04 -07:00
Owen
e408e735be
Make alias cross compatable
2026-06-03 17:58:59 -07:00
Owen
bc6fd0b399
Get user resources from the right table
2026-06-03 16:53:39 -07:00
Owen
d00b737412
Pull the sso from the policies as well
2026-06-03 16:16:42 -07:00
Owen
cc5bec1d83
Pull the rules and the policy information
2026-06-03 15:33:15 -07:00
Owen
40125c717c
Pull things in proper order
2026-06-03 14:52:36 -07:00
Owen
8e9071a336
Converting to use both inline and shared policy
2026-06-03 14:41:43 -07:00
Fred KISSIE
565727ad36
🏷️ import types correctly
2026-06-03 19:51:44 +02:00
Owen
19feaf4bf2
Add the policy information into missing places
2026-06-02 15:47:55 -07:00
Owen
b6d688f15e
Support pin,pass,whitelist correctly on login
2026-06-01 21:34:39 -07:00
NHClaessens
db5d1d4a16
Update postgres schema
2026-05-28 20:20:34 -07:00
Owen
a9b0bd8b47
Alter schema + add form field
2026-05-28 20:15:13 -07:00
Owen
f8a757c55f
Merge branch 'resource-policies' into dev
2026-05-28 15:30:16 -07:00
Owen
6aea3f1643
Merge branch 'auto-update' into dev
2026-05-28 13:59:34 -07:00
Owen
06cc13c637
Moving to mode replacing http and protocol fields
2026-05-27 12:04:00 -07:00
Owen
464d4990df
Fix cascading errors
2026-05-27 11:34:34 -07:00
Owen
cb90672573
Trying to get these forms to work
2026-05-26 21:20:34 -07:00
Owen
9d77fcc457
Make the first ssh page and conditional http page
2026-05-22 15:12:37 -07:00
Owen
454449ec8a
Add support for push pam users
2026-05-22 12:12:55 -07:00
Owen
715b957660
Support not push ssh method
2026-05-22 11:19:35 -07:00
Owen
6d4afd0953
Control updates from the ui
2026-05-21 15:43:31 -07:00
Owen
23ca3efbf4
Merge branch 'dev' into rdp-ssh
2026-05-19 20:12:05 -07:00
Owen
5d8486dd7f
Sure up some things with browserAccessType
2026-05-19 20:02:27 -07:00
Owen
0938997548
Add crud for browser targets
2026-05-19 20:02:27 -07:00
Owen
15f161274f
Add browserGatewayTarget table
2026-05-19 20:02:26 -07:00
Fred KISSIE
5b50024712
Merge branch 'dev' into feat/labels-on-sites-and-resources
2026-05-14 18:15:14 +02:00
Owen
e9df995e76
Merge branch 'dev' into resource-policies
2026-05-12 21:12:40 -07:00
Fred KISSIE
ce746a2a21
✨ Handle labels for machine clients
2026-05-12 22:32:56 +02:00
Fred KISSIE
91e8a13e59
🗃️ Add site resource labels schema
2026-05-12 17:55:56 +02:00
Fred KISSIE
a0759a79a1
🗃️ add unique indexes to site & resource labels in sqlite
2026-05-11 18:28:40 +02:00
Fred KISSIE
b9ab35a05b
🐛 handle idempotency when adding/removing labels from sites/resources
2026-05-11 16:57:53 +02:00
Owen
27d230647f
Merge branch 's3' into dev
2026-05-08 17:05:39 -07:00
Owen
114486608e
Add client endpoint to network log
2026-05-08 17:04:58 -07:00
Owen
10fa9274d0
Add streaming errors for debug
2026-05-08 16:27:40 -07:00
Fred KISSIE
39b09b7f3f
Merge branch 'dev' into feat/labels-on-sites-and-resources
2026-05-08 18:21:46 +02:00
Owen
c46ef2fe9c
Fix ts type issue
2026-05-07 20:03:48 -07:00
Fred KISSIE
09baf2f32e
🗃️ add sqlite table for labels
2026-05-05 21:08:22 +02:00
Fred KISSIE
3253d60900
🚧 Add CRUD endpoints and tables for labels
2026-05-05 20:53:16 +02:00
Owen
f4602a120e
Merge branch 'dev' into resource-policies
2026-05-04 17:57:09 -07:00
Owen
c8e7e0ee1e
WAL off default ENABLE_SQLITE_WAL_MODE to enable
2026-05-04 17:54:28 -07:00
Owen
f81f78f294
Merge branch 'dev' into resource-policies
2026-05-04 17:41:49 -07:00
Owen
6cab223f12
Adjust verify session queries to use policies
2026-05-04 17:30:10 -07:00
Owen Schwartz
0e7aafd364
Merge pull request #2998 from Josh-Voyles/mem-fix-2
...
fix: deterministically finalize SQLite prepared statements to prevent native memory leak (#2120 )
2026-05-04 17:29:45 -07:00
Owen
660197eef1
Merge branch 'feat/resource-policies' into resource-policies
2026-05-04 14:40:44 -07:00