Commit graph

26 commits

Author SHA1 Message Date
Owen
c5c4880342
Only trust cached org membership that belongs to the caller
Access middlewares cache the caller's org link on req.userOrg and
req.apiKeyOrg and skip their membership query when it is already set.
A value inherited from a polluted Object.prototype passed that check.

- Give every request its own undefined copy of the cached auth fields
  (userOrg, apiKeyOrg, userOrgRoleIds, userOrgId, userOrgIds,
  orgPolicyAllowed) before any route runs, on the API, integration,
  internal and AI gateway servers.
- Add ownUserOrg/ownApiKeyOrg, which return a cached value only if it is
  an own property for the signed-in user or calling key.
- Every user and API key access middleware now uses them and refuses
  when the cached org does not match the org of the object being
  accessed. verifyApiKeySiteAccess and verifyApiKeySiteResourceAccess
  had no org comparison at all once req.apiKeyOrg was set.

Defence in depth for PAN-1814 / GHSA-5fhj.
2026-11-25 18:38:16 -05:00
miloschwartz
7f5c164e16
change logging 2026-04-21 20:51:59 -07:00
Owen
8ad7bcc0d6
Adjust rate limiting position 2025-11-14 11:33:52 -05:00
Owen
a50c0d84e9
Make easier to run in dev - fix a couple of things 2025-10-12 16:23:38 -07:00
Owen
d92b87b7c8
Chungus 2.0 2025-10-10 11:27:15 -07:00
miloschwartz
956869ab58
add strip duplicate sesion middleware 2025-10-05 15:41:05 -07:00
Owen
c2c907852d
Chungus 2025-10-04 18:36:44 -07:00
Owen
9627dfa90c
Add ipKeyGenerator 2025-08-24 12:18:34 -07:00
miloschwartz
0646934c9d
add stores 2025-07-16 15:50:03 -07:00
miloschwartz
379d31aac6
Merge branch 'dev' of https://github.com/fosrl/pangolin into dev 2025-07-14 22:21:04 -07:00
miloschwartz
b7df0b122d
introduce strict rate limitso on auth router endpoints 2025-07-14 18:00:41 -07:00
Owen
98a261e38c
Pull up downstream changes 2025-07-13 21:57:24 -07:00
miloschwartz
97ae76e4e7
forward headers from server component and make trust_proxy config a number 2025-06-19 11:22:29 -04:00
miloschwartz
e7ca7fe89c
add toggle resource visibility closes #442 2025-03-31 10:10:54 -04:00
Milo Schwartz
1aec431c36
optionally generate traefik files, set cors in config, and set trust proxy in config 2025-01-15 23:26:31 -05:00
Milo Schwartz
ab18e15a71
allow controlling cors from config and add cors middleware to traefik 2025-01-13 23:59:10 -05:00
Milo Schwartz
235e91294e
remove base_url from config (#13)
* add example config dir, logos, and update CONTRIBUTING.md

* update dockerignore

* split base_url into dashboard_url and base_domain

* Remove unessicary ports

* Allow anything for the ip

* Update docker tags

* Complex regex for domains/ips

* update gitignore

---------

Co-authored-by: Owen Schwartz <owen@txv.io>
2025-01-07 22:41:35 -05:00
Milo Schwartz
3b4a993704
refactor and reorganize 2025-01-01 21:41:31 -05:00
Milo Schwartz
9732098799
make config class and separate migrations script 2025-01-01 17:50:12 -05:00
Milo Schwartz
e6263567a9
use bottom sheet instead of vaul drawer 2024-12-30 15:48:34 -05:00
Owen Schwartz
7d615d00d8
Remove credentials: true 2024-12-26 11:27:48 -05:00
Owen Schwartz
4e4b8744b5
CSRF prevention 2024-12-25 22:04:20 -05:00
Milo Schwartz
ce5df3b0b9
fix issues from test deploy 2024-12-21 21:01:12 -05:00
Milo Schwartz
d3d2fe398b
env context and refactor api support different ports 2024-12-12 22:46:58 -05:00
Owen Schwartz
516db54c72
Move websocket 2024-12-08 16:13:21 -05:00
Owen Schwartz
37f51bec9b
Seperate servers 2024-12-07 22:07:13 -05:00