Commit graph

808 commits

Author SHA1 Message Date
Owen
1351fb6689
Merge branch 'feature/form-signup-improvements' of github.com:adrianeastles/pangolin into adrianeastles-feature/form-signup-improvements 2025-08-12 21:40:55 -07:00
Owen Schwartz
e4fe601d9d
Merge pull request #1208 from adrianeastles/feature/setup-token-security
Add setup token security for initial server setup
2025-08-12 21:31:58 -07:00
Owen
4f3cd71e1e
Merge branch 'feature/setup-token-security' of github.com:adrianeastles/pangolin into adrianeastles-feature/setup-token-security 2025-08-12 21:12:55 -07:00
Owen Schwartz
9c0295db9f
Merge pull request #1246 from Lokowitz/update-express
Update express to version 5
2025-08-12 20:38:02 -07:00
Owen Schwartz
54b3c92953
Merge pull request #1262 from jackrosenberg/patch-1
fix: fixed api error message in createSite.ts
2025-08-12 20:36:26 -07:00
Owen
ae52fcc757
Merge branch 'dev' into clients-multi-pop 2025-08-12 15:01:00 -07:00
jack rosenberg
03c8d82471
fix: fixed api error message in createSite.ts 2025-08-12 17:34:40 +02:00
Marvin
a829eb949b modified: package-lock.json
modified:   package.json
	modified:   server/nextServer.ts
2025-08-10 19:02:50 +00:00
Owen
55b4a9eddb
Merge branch 'main' into dev 2025-08-10 10:16:47 -07:00
Owen
ea27075bab
Lint fix 2025-08-10 10:14:45 -07:00
Owen
e9e6b0bc4f
Merge branch 'main' into copilot/fix-1112 2025-08-10 10:10:10 -07:00
Owen
4701da201d
Fix a few consts to lets 2025-08-10 10:09:52 -07:00
Owen
d557832509
Send this right IP this time 2025-08-05 11:37:45 -07:00
Owen
fe5c91db29
Change how you send the desitnations 2025-08-05 11:25:54 -07:00
Owen
f6440753b6
Only update proxy mapping if there is an existing 2025-08-04 21:34:07 -07:00
Owen
17cf903804
publicKey optional 2025-08-04 21:29:40 -07:00
Owen
dcf530d237
Add backward compatability 2025-08-04 20:36:25 -07:00
Owen
6b1808dab1
Handle multiple hp messages 2025-08-04 20:34:27 -07:00
Owen
5889efd74a
Send all hp data now 2025-08-04 20:22:13 -07:00
Owen
1a9de1e5c5
Move endpoint to per site 2025-08-04 20:17:35 -07:00
Owen Schwartz
19902092ce
Merge pull request #1177 from Error-Gap/portbinding-fixes
Portbinding fixes
2025-08-03 11:37:30 -07:00
Adrian Astles
69baa6785f feat: Add setup token security for initial server setup
- Add setupTokens database table with proper schema
- Implement setup token generation on first server startup
- Add token validation endpoint and modify admin creation
- Update initial setup page to require setup token
- Add migration scripts for both SQLite and PostgreSQL
- Add internationalization support for setup token fields
- Implement proper error handling and logging
- Add CLI command for resetting user security keys

This prevents unauthorized access during initial server setup by requiring
a token that is generated and displayed in the server console.
2025-08-03 21:17:18 +08:00
miloschwartz
84268e484d
update docs links 2025-08-01 22:34:02 -07:00
miloschwartz
7402590f49
remove api-key-org association for root keys 2025-08-01 15:56:03 -07:00
Owen
6d359b6bb9
Add createdAt to org insert 2025-07-31 17:53:11 -07:00
Owen
ea6f803e78
Add createdAt to org 2025-07-31 17:51:30 -07:00
Owen
0151f8a6a9
Fix bad sourcePort 2025-07-31 15:57:30 -07:00
Owen
36d0b83ed3
Fix errors again 2025-07-31 15:00:17 -07:00
Owen
f0138fad4f
Improve gerbil logging 2025-07-31 14:25:22 -07:00
Owen
69802e78f8
Org is not optional 2025-07-31 11:06:07 -07:00
Owen
92e69f561f
Org is not optional 2025-07-31 11:05:24 -07:00
miloschwartz
b351520e92
add clients enabled middleware 2025-07-30 23:18:51 -07:00
T Aviss
481714f095 Fix for issues with binding ports other than 80/443
server/routers/badger/verifySession.ts : verifyResourceSession() updated code behind "cleanHost" var to a regex which strips the trailing :port for any port (rather than a string match for 80/443)
src/app/auth/resource/[resourceId]/page.tsx : ResourceAuthPage() added a secondary match for serverResourceHost and redirectHost that accounts for ports
server/routers/badger/exchangeSession.ts : Updated exchangeSession() to use the same "cleanHost" type var (with port-stripping) as in verifyResourceSession(), replaced references to "host" with "cleanHost"
2025-07-30 22:16:46 -07:00
miloschwartz
d38656e026
add clients to int api 2025-07-30 21:31:16 -07:00
Owen
35823d5751
Fix adding sites to client 2025-07-28 22:40:27 -07:00
Owen
d732c1a845
Clean up migrations 2025-07-28 17:32:15 -07:00
Owen
4d7e25f97b
Complete migrations 2025-07-28 17:22:53 -07:00
Owen
80656f48e0
Sqlite migration done 2025-07-28 17:18:51 -07:00
Owen
ebde149980
Merge branch 'main' into dev 2025-07-28 17:15:05 -07:00
miloschwartz
adc0a81592
delete org domains and resources on org delete 2025-07-28 15:34:56 -07:00
miloschwartz
494329f568
delete resources on delete org 2025-07-28 12:55:20 -07:00
Owen
a1e8211ba7
Dont send enableProxy 2025-07-28 12:53:13 -07:00
Milo Schwartz
bda2aa46b6
Merge pull request #1124 from adrianeastles/feature/member-resouce-landing-page
New Member Resource Landing Page
2025-07-28 14:33:09 -04:00
copilot-swe-agent[bot]
27ac204bb6 Fix variables incorrectly changed from let to const - revert to let where variables are reassigned
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-07-28 17:43:40 +00:00
copilot-swe-agent[bot]
a2526ea244 Revert mappings variable from const to let in getAllRelays.ts
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-07-28 17:30:21 +00:00
Owen
e105a523e4
Add log and fix default 2025-07-27 14:11:36 -07:00
Owen
28f8b05dbc
Basic clients working 2025-07-27 10:21:27 -07:00
Owen Schwartz
d95286db0e
Merge pull request #1139 from SigmaSquadron/push-xlmpuutwtnuy
add shebangs to migration and server scripts
2025-07-27 10:11:17 -07:00
Fernando Rodrigues
9e87c42d0c
add shebangs to migration and server scripts
In NixOS, we wrap these files in a bash script to allow users to just run them as normal executables, instead of calling them as arguments to Node.JS. In our build scripts, we just add the shebang after the files have been compiled, but adding it upstream will allow all Pangolin users to just run ./server.mjs to start their Pangolin instances.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-07-27 13:10:18 +10:00
Fernando Rodrigues
0b52cd002e
add an environment variable for the smtp_pass config option
The password for secure authentication may be sensitive, so it is best
to not leave it lying around in a config file. This commit introduces
the EMAIL_SMTP_PASS environment variable, which can be set to configure
the SMTP password without writing it to the configuration file.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-07-27 13:03:29 +10:00