Commit graph

372 commits

Author SHA1 Message Date
Owen
b43709903d
Add support for configuring load balancing strategy 2026-10-12 16:47:12 -04:00
Owen
cccc2d1200
Merge branch 'mtls' into dev 2026-10-12 16:25:25 -04:00
Owen
148bcd9d1b
Merge branch 'machine-roles' into dev 2026-10-12 16:25:13 -04:00
TiltedTeapot
29fc221f59 remove TODO comment for fix made in 98a261e 2026-10-06 18:11:24 -06:00
TiltedTeapot
f15f4aee17 added to db again 2026-10-06 18:11:23 -06:00
TiltedTeapot
cff796fabe Added relayPort to exitNodes in db 2026-10-06 18:11:23 -06:00
Owen
bc2920af23
Support machine clients added to roles 2026-10-01 15:58:25 -04:00
Owen
37ed8997f2
Add fist pass of mtls support 2026-09-24 16:56:57 -04:00
Owen
3378125f8e
Can create gateway resource 2026-09-24 09:49:09 -04:00
Owen
a17b870ed2
Adding gateway resources 2026-09-24 09:49:08 -04:00
Owen
d406cc61b5
Pull jit limit from org 2026-09-23 10:40:21 -04:00
Owen Schwartz
3392120855
Merge pull request #3172 from Gulianrdgd/feature-response-headers
Feature response headers
2026-09-21 15:16:24 -04:00
Blacks-Army
8e2f9ea5ef
Add HTTP method matching to resource rules
Resolves #1408.

A rule with match "METHOD" carries a comma-separated list of HTTP
methods in its value, e.g. "POST,PUT", and applies when the request
method is in that list. This makes it possible to leave GET public
while sending POST and PUT to auth, which rules could not express
before because both share the same path.

No new columns: the methods live in the existing rule value, so this
needs no migration and every existing rule keeps working unchanged.

The UI offers the ten registered methods. Blueprints and the API
accept any method token, so extension methods such as the WebDAV verbs
can be targeted too, and the UI preserves them when a rule set that
way is edited later.
2026-09-19 20:00:01 +02: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
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
a5ce56ea89
Move the session logs to private where it should be 2026-09-01 17:56:36 -04:00
Julian van der Horst
6ad09adefa
Merge upstream/dev into feature-response-headers
Resolve conflicts against upstream's refactors:

- server/db/sqlite/schema/schema.ts: adopt upstream's reindented
  sqliteTable(name, cols, indexes) form for sites/resources, re-applying
  the headers -> requestHeaders/responseHeaders split. Kept in sync with
  the Postgres schema.
- server/lib/traefik/headersMiddleware.ts: extend upstream's extracted
  buildCustomHeadersMiddleware helper to take requestHeaders and
  responseHeaders and emit both customRequestHeaders and
  customResponseHeaders.
- server/lib/traefik/getTraefikConfig.ts and
  server/private/lib/traefik/getTraefikConfig.ts: keep upstream's helper
  extraction and appendPathMatch refactor, dropping the superseded inline
  blocks.

Also carry the feature forward onto code that moved upstream:

- The resource settings UI moved from resources/proxy/[niceId]/proxy to
  resources/public/[niceId]/http, which dropped this branch's changes in
  the previous merge. Re-add the request/response header inputs there and
  rename the vestigial headers field on the tcp page.
- messages/da-DK.json is new upstream and still had the old customHeaders
  key; rename it in line with the other locales.

Per the contributing docs, versioned migrations are intentionally omitted
so maintainers can write them at release time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 13:40:49 +02:00
Parikshith
41139f2fd0
perf: add secondary FK indexes to core OSS schemas
Add 13 secondary indexes across 10 tables in the SQLite schema and
5 missing indexes to the PostgreSQL schema.

All list endpoints (listSites, listResources, listClients, listRoles,
listTargets, listUserOrgs) filter and join on these FK columns. In the
SQLite schema, no secondary indexes existed at all on these foreign keys,
forcing full sequential scans on every paginated request and session lookup.

SQLite changes (13 new indexes):
  - sites.orgId
  - resources.orgId
  - targets.resourceId, targets.siteId
  - newt.siteId
  - clients.orgId, clients.userId
  - labels.orgId
  - olms.userId
  - session.userId
  - userOrgs.userId, userOrgs.orgId
  - roles.orgId

PG changes (5 new indexes, rest already present):
  - labels.orgId
  - session.userId
  - userOrgs.userId, userOrgs.orgId
  - roles.orgId
  - olms.userId
2026-08-31 17:04:01 -04:00
Owen
e57826d6e0
Session logs and usage logs should use seconds not ms 2026-08-26 10:50:16 -04:00
Owen
19ce236262
Support AI session log streaming 2026-08-21 17:22:00 -04:00
Owen
a74b0934fc
Allow changing the allow ssh and update shcmea 2026-08-17 14:12:39 -04:00
Owen
11daf4f927
Move certificates 2026-08-17 12:00:12 -04:00
Owen
f0f5e9219b
add niceId to provider 2026-08-14 10:51:58 -04:00
Owen
a2f5d830d6
Remove not null constraint where setting null 2026-08-13 10:20:35 -04:00
Owen
47ae017f94
add virtual api keys to budgets 2026-08-12 13:21:56 -04:00
Owen
bed5817da3
send, process, store, display virtual api key ai information in usage and sessions 2026-08-12 11:20:25 -04:00
Owen
f7aca85417
link the usage with the session to display together 2026-08-11 16:15:01 -04:00
Owen
bc2f291352
normalize the requests to also store in the log for viewing later 2026-08-11 14:45:25 -04:00
Owen
48c4b44f72
log chat sessions to database 2026-08-11 12:19:28 -04:00
Owen
495c772d6b
Merge branch 'dev' into aig 2026-08-11 09:42:10 -04:00
miloschwartz
1e3a9fb921
add virtual api key schema and crud endpoints 2026-08-10 17:20:06 -04:00
Owen
8b8e7913dc
budget enforcement logic 2026-08-10 17:17:24 -04:00
Owen
e76377d3c7
Match the pg query logging 2026-08-10 14:55:44 -04:00
Owen
b180d064d1
adjust conflict to be on unit<>period and add list endpoints for providers 2026-08-10 11:39:34 -04:00
Owen
ed46afd81a
add subscription override column 2026-08-10 11:15:48 -04:00
Owen
dc1923ab1f
Remove budget periods 2026-08-10 09:57:01 -04:00
miloschwartz
9eafa067b9
improved provider picker ui on resource 2026-08-07 16:13:51 -04:00
miloschwartz
9e7b4afaec
support allow list and blocklist 2026-08-07 10:59:50 -04:00
miloschwartz
3d7e322bf9
add headers to provider 2026-08-05 17:42:58 -04:00
miloschwartz
1f3fff4a9d
Merge branch 'aig' of https://github.com/fosrl/pangolin into aig 2026-08-05 16:55:58 -04:00
miloschwartz
39e06f2b6d
add api capabilities 2026-08-05 16:55:48 -04:00
Owen
c5b0e1e876
add QUERY_LOGGING env to sqlite driver for verbose logging 2026-08-05 16:17:28 -04:00
miloschwartz
bcf6b86b84
add no auth and passthrough auth 2026-08-05 15:39:08 -04:00
miloschwartz
2e9bd50172
add provider specific auth modes 2026-08-05 15:17:50 -04:00
Owen
e1dd8965dc
Remove extra checks 2026-08-05 11:31:12 -04:00
miloschwartz
7759d87835
add basic ui for private inference resource 2026-08-04 16:54:23 -04:00
miloschwartz
e38359c74f
add crud for adding providers and models to resources 2026-08-04 15:54:24 -04:00
miloschwartz
ed8545f8a2
update schema to support models and provider access on inferences resources and add budgets 2026-08-04 14:50:07 -04:00
Owen
1073011a2a
first pass of traefik -> basic gateway 2026-08-04 10:15:49 -04:00