Commit Graph
3330 Commits
Author SHA1 Message Date
Hayyan Hajwani 9298ec7cdb fix(setup): correct month index and zero-pad database backup file names
Backup names were built inline from Date#getMonth, which is zero-indexed, so a
backup taken on 12 September 2026 was written as db_2026-8-12_20-35-56.sqlite.
No field was zero-padded either, giving names like db_2026-8-12_20-36-2.sqlite.

Extract formatBackupTimestamp into server/lib and use it from both places that
built the string: the backupDb helper in migrationsSqlite.ts and the inline copy
in the 1.0.0-beta9 setup script. Padding every field also makes the names sort
lexicographically in the order the backups were taken.

Adds tests covering both reported names, single-digit padding and sort order.
Reverting the helper to the old formula fails them with the exact name from the
report.
2026-09-16 13:46:57 +05:30
miloschwartz 3cb41211ee fix premature migration execution 2026-09-15 20:44:17 -04:00
Owen 324f3e50ff Add license tiers 2026-09-15 16:25:53 -04:00
miloschwartz 64bb6d9f9c supress healthcheck log message 2026-09-15 15:02:37 -04:00
Owen c6c12f1dcb Support _FILE env vars
Closes https://github.com/fosrl/docs-v2/issues/141
2026-09-15 10:56:39 -04:00
Owen c6c443f0e0 Remove optional before prefault for zod v4 2026-09-15 10:25:21 -04:00
Owen 24a06dd8ca Rename package import 2026-09-15 10:25:06 -04:00
Owen c11bbe670f Remove optional() where unneeded for zod 4 2026-09-15 10:23:37 -04:00
Owen 9e25650f22 Fix service missing traefik issues 2026-09-15 10:04:00 -04:00
Owen 143b4cf757 Atomically write files to avoid races with traefik 2026-09-15 10:04:00 -04:00
Owen 56e758a656 Resolve oss build issue 2026-09-14 18:05:30 -04:00
miloschwartz 68821514a0 replace node cache in dns server 2026-09-14 17:41:41 -04:00
miloschwartz 8f1344a665 bump version and add 1.23 migrations 2026-09-14 17:18:31 -04:00
Owen b3e5de4a4d Fix cache separation for versions 2026-09-14 16:48:12 -04:00
Owen f9f38fb3f0 Handle the agent and agent version 2026-09-14 16:48:12 -04:00
Owen b6c048c805 Store the cli version for display and handle auto update 2026-09-14 16:48:11 -04:00
Owen e4a8e9ac8c Add region from config file 2026-09-14 16:48:10 -04:00
Owen a874a0b745 Add explicit process exit to prevent hanging in migrations script 2026-09-14 16:48:10 -04:00
Owen 9ba2cfdef2 Make the email optional 2026-09-14 16:48:10 -04:00
Owen bba8d4e7a2 Add license checks to JobScheduler and AuthoritativeDNSServer 2026-09-14 16:48:10 -04:00
Owen 350f8c012a Pull in static domains to the traefik config again 2026-09-14 16:48:10 -04:00
Owen 8a97ed5200 Move domain information to all in private 2026-09-14 16:48:10 -04:00
Owen e66f7fe71b Implement exit node check-in tracking and adjust logging for connection errors 2026-09-14 16:48:10 -04:00
Owen a37a59f39a Add default dns port and allow sites to be empty 2026-09-14 16:48:10 -04:00
Owen d0bf553f6f Quiet up logs 2026-09-14 16:48:10 -04:00
Owen 87e005d32f Seperate dns from certificates 2026-09-14 16:48:10 -04:00
Owen ad343a7453 Wire up to start 2026-09-14 16:48:10 -04:00
Owen 7e4d38548f Add certificate generation 2026-09-14 16:48:09 -04:00
Owen 3421441635 Add cert_mode to know when to gen or pull certs 2026-09-14 16:48:09 -04:00
Owen 073bfb32e9 Adjust lic headers 2026-09-14 16:48:09 -04:00
Owen 2c5b1e5f0f Add dns server 2026-09-14 16:48:09 -04:00
miloschwartz fb8d531435 add sites to resource launcher panel 2026-09-14 16:48:09 -04:00
miloschwartz dac8b5a132 move improvements to user management ui 2026-09-14 16:48:09 -04:00
miloschwartz dfe7f60244 add server side filter for server admin 2026-09-14 16:48:09 -04:00
Fred KISSIE 0a385d1e44 🚧 toggle server admin 2026-09-14 16:48:08 -04:00
Fred KISSIE 521f78c2f3 🚧 server admin 2026-09-14 16:48:08 -04:00
Fred KISSIE 8b20a88838 ✨ delete org 2026-09-14 16:48:08 -04:00
Fred KISSIE 1d6d885f30 ♻️ Only show the username instead of the name+username 2026-09-14 16:48:08 -04:00
Fred KISSIE fef1476f67 ✨ List of orgs, with all columns 2026-09-14 16:48:08 -04:00
Fred KISSIE e371f26d73 ✨ List orgs in server 2026-09-14 16:48:08 -04:00
miloschwartz aed325f273 switch to lru in memory cache and dont cache failed sessions 2026-09-14 16:48:07 -04:00
Owen 0f69012c4d Fix circular import 2026-09-14 16:48:07 -04:00
Owen ba2eb87f20 Widen subnet 2026-09-14 16:48:07 -04:00
Owen c0ea32863c Quiet up error logs 2026-09-14 16:48:07 -04:00
Owen 1d3dcec4c8 Use endpoint instead of reachableAt for remote nodes 2026-09-14 16:48:07 -04:00
breken 64ae230d23 fix(rules): decode percent-encoded PATH rule patterns before matching
isPathAllowed decodes the incoming request path (and Badger already sends
Go's decoded req.URL.Path), but compared it against the rule pattern as raw
text. isValidUrlGlobPattern rejects raw spaces and non-ASCII and only accepts
them percent-encoded, so a PATH rule such as `/my%20docs/*` or `/caf%C3%A9`
was stored as `my%20docs` / `caf%C3%A9` and compared against `my docs` /
`café`, and could therefore never match any request.

Run the pattern through the same decodeAndResolvePath normalisation as the
request path so both sides are compared in decoded form.

Claude-Session: https://claude.ai/code/session_0134ujLF81GyXsCByibLcYsz
2026-09-13 19:00:59 -07:00
Owen 063f6b5ca9 Basic DNS config send empty for olm 2026-09-04 12:31:04 -04:00
Owen 9d19195089 Configurable tab title and disable flag for keys 2026-09-04 09:20:20 -04:00
Owen 54bbe82504 Dont log invalid message type
Fixes #3695
2026-09-04 09:06:58 -04:00
Owen 1bc5fbbf0f Always pull all of the users for the blueprints 2026-09-03 12:02:41 -04:00