Commit graph

401 commits

Author SHA1 Message Date
miloschwartz
fb303dae7f
Merge branch 'dev' into custom-login-css 2026-11-20 14:25:16 -05:00
Owen
f44f626124
Push client settings 2026-11-12 17:29:02 -05:00
Owen Schwartz
a5530ab10c
Merge pull request #4084 from fosrl/rule-labels
Support selecting labels for alert rules
2026-11-09 17:31:35 -05:00
miloschwartz
f49eb6a60c
add custom css 2026-11-06 16:48:14 -05:00
miloschwartz
8538fff0ef
store metadata on session 2026-11-03 09:56:56 -05:00
Owen
189eb9cb05
Support selecting labels for alert rules 2026-11-03 09:23:17 -05:00
miloschwartz
388349ff23
support auto provision toggle per org for org idp mode 2026-11-02 16:19:05 -05:00
Owen
4726cb4fc1
Support matching on the base wildcard resources 2026-11-02 15:30:16 -05:00
Owen
095ca2204f
Resource session page 2026-11-02 15:00:09 -05:00
Owen
5b8833f302
SSH log 2026-11-02 14:56:55 -05:00
Milo Schwartz
9115808301
Merge pull request #4027 from S-NoF3aR/feature/idp-session-revalidation
Revalidate OIDC sessions with the IdP using refresh tokens
2026-10-30 14:44:23 -04:00
miloschwartz
440e874aa1
add toggle to idp settings 2026-10-30 14:07:04 -04:00
Severin Enzler
7176fa4a40 Revalidate OIDC sessions with the IdP using refresh tokens
Pangolin consults the IdP only at login and keeps its own session
afterwards, so disabling a user or revoking their sessions in the IdP
does not end their Pangolin sessions.

Store the IdP refresh token at OIDC login as a grant and redeem it at
most every server.idp_session_revalidation_minutes (default 5). If the
IdP rejects it with invalid_grant, the grant is marked revoked and all
sessions backed by it and their resource sessions are deleted. Other
errors (IdP unreachable or slower than 10 seconds, invalid_client after
a secret change) keep the sessions valid and are retried after at most
a minute instead of on every request.

Only the instance holding a lease on the grant in the primary database
redeems its refresh token, and it writes the result only while it still
holds the lease, so instances never redeem the same token concurrently.
The per-request lookup reads from a replica through safeRead.

Device logins of the Pangolin clients share the grant of the browser
session that approved them, read from the primary database, so a rotated
refresh token is never redeemed twice by separate sessions.

The Entra ID provider type hardcodes its scopes, so it now requests
offline_access to get a refresh token.
2026-10-29 11:33:30 +01:00
Owen
c64fd9cce6
Adjust how multi record items are stored 2026-10-28 13:42:59 -04:00
Owen
cd39f2ecd6
Custom dns records 2026-10-28 11:01:29 -04:00
Owen
290f1f2ff0
Add olm agentVersion to separate the library from the agent 2026-10-22 14:59:33 -04:00
Owen
f4140fd6f6
Add mtls to blueprint, policy, and oss getTraefikConfig 2026-10-20 10:02:44 -04:00
Owen
65571d8eeb
Relay port must have default value 2026-10-19 11:23:06 -04:00
Owen
9b59d90654
Move mtls schema to private 2026-10-16 11:46:56 -04:00
miloschwartz
89f6748a1b
Merge branch 'dev' into feat/redirect-tables 2026-10-15 11:47:55 -04:00
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
Fred KISSIE
ca18320ca3 Merge branch 'dev' into feat/redirect-tables 2026-09-22 22:36:53 +02: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
Fred KISSIE
97c91fbdc9
♻️ rename destinationDomain to destinationHost to include the Scheme 2026-09-18 23:55:51 +02:00
Fred KISSIE
57b80bf74e
♻️ Add ssl field to redirects and add traefik config to public file 2026-09-18 23:38:46 +02:00
Fred KISSIE
67f45023db
Merge branch 'dev' into feat/redirect-tables 2026-09-18 20:59:18 +02:00
Fred KISSIE
ec36317057
✨ finish redirect traefik config 2026-09-17 21:32:55 +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
Fred KISSIE
7ce2668b5b
🚧 redirect create form 2026-09-10 22:05:45 +02:00
Fred KISSIE
9e85b39fd5
🚧 wip 2026-09-10 20:08:47 +02:00
Fred KISSIE
ae7315244f 🗃️ create DB models 2026-09-10 00:17:36 +02:00
Fred KISSIE
241ecc13e2 🚧 wip 2026-09-09 01:43:14 +02: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