feat: implement player editing, security hardening, and director proxy
- Add 7 player-edit endpoints: faction, XP, tech knowledge, currency, item edit/delete/add - Password hashing with Argon2 (setup.ps1, setup.sh, auth.py, config.py) - Rate limiting on all sensitive endpoints (Flask-Limiter) - IP validation for ban/unban/kick operations - Audit logging for admin actions - File browser path traversal protection - Login_required on all debug endpoints - Director API proxy via NodePort with _director_request helper - SSH tunnel includes director port forward in start.ps1 - Currency editing now sets exact balance instead of delta - Fix undefined values in success alert messages
This commit is contained in:
1 parent
6c77512470
commit
99864b4d8f
13 files changed
+630
-69
No files matched your search
@@ -40,6 +40,7 @@ $SSHUser = $settings.server.user
|
||||
$LocalPort = [int]$settings.database.port
|
||||
$Namespace = $settings.kubernetes.namespace
|
||||
$DashboardPort = [int]$settings.dashboard.port
|
||||
$DirectorPort = [int]$settings.director.port
|
||||
|
||||
# Find SSH key (prefer project-local for portability)
|
||||
$SSHKeySrc = $settings.server.ssh_key
|
||||
@@ -105,6 +106,7 @@ $sshArgs = @(
|
||||
"-o", "ServerAliveInterval=30",
|
||||
"-o", "ServerAliveCountMax=3",
|
||||
"-L", "${LocalPort}:localhost:${LocalPort}",
|
||||
"-L", "${DirectorPort}:${SSHHost}:${DirectorPort}",
|
||||
"-N", "${SSHUser}@${SSHHost}"
|
||||
)
|
||||
$sshTunnel = Start-Process ssh -ArgumentList $sshArgs -PassThru -WindowStyle Hidden
|
||||
|
||||
Reference in new issue
Block a user