mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 13:19:07 -05:00
[PR #1208] [MERGED] Add setup token security for initial server setup #9255
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1208
Author: @adrianeastles
Created: 8/3/2025
Status: ✅ Merged
Merged: 8/13/2025
Merged by: @oschwartz10612
Base:
dev← Head:feature/setup-token-security📝 Commits (10+)
b5afd73Initial plan4f5091eInitial commit: Document plan to fix ESLint issues2259879Fix ESLint issues: prefer-const warnings and missing semicolons39c43c0modified: .github/workflows/cicd.ymla2526eaRevert mappings variable from const to let in getAllRelays.ts27ac204Fix variables incorrectly changed from let to const - revert to let where variables are reassigned481714fFix for issues with binding ports other than 80/443961008bfix: adapt nix run command07b8652Merge pull request #1196 from confusedalex/fix-nixf75169fAdd missing langs📊 Changes
95 files changed (+4323 additions, -3201 deletions)
View changed files
📝
.github/workflows/linting.yml(+1 -1)📝
.github/workflows/test.yml(+1 -1)📝
.nvmrc(+1 -1)📝
Dockerfile.dev(+1 -1)📝
Dockerfile.pg(+2 -2)📝
Dockerfile.sqlite(+2 -2)📝
README.md(+1 -1)➕
cli/commands/resetUserSecurityKeys.ts(+67 -0)📝
cli/index.ts(+2 -0)📝
esbuild.mjs(+1 -1)📝
install/config/docker-compose.yml(+1 -1)📝
install/input.txt(+1 -0)📝
install/main.go(+165 -3)➕
messages/bg-BG.json(+1327 -0)📝
messages/cs-CZ.json(+6 -1)📝
messages/de-DE.json(+67 -62)📝
messages/en-US.json(+4 -1)📝
messages/es-ES.json(+6 -1)📝
messages/fr-FR.json(+6 -1)📝
messages/it-IT.json(+6 -1)...and 75 more files
📄 Description
🛡️ Security Enhancement: Setup Token for Initial Server Setup
Problem
When spinning up a new Pangolin server, anyone in the world could potentially access the initial setup page and create the first admin account before the legitimate administrator, posing a security risk.
Solution
Implemented a setup token system that requires a secure token to be entered during the initial server setup process. The token is generated and displayed in the server console on startup until the token is used.
Initial Setup Page
http://localhost:3002/auth/initial-setup.Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.