mirror of
https://github.com/kellymichels/zscripts-token-savers
synced 2026-10-07 07:18:18 +00:00
New tool for the leaked/overwritten prod .env case: -Rotate KEY regenerates a key ON THE SERVER (openssl rand -hex 32) so the value never leaves the box; -Set KEY takes an operator-known value from a masked prompt and streams it over SSH stdin (never a command arg, never echoed). Backs the server .env up to a timestamped .bak first, updates keys atomically (match-or-append), auto-detects backend/.env from deploy.preserve, restarts only with -Restart, and -WhatIf previews the plan. Docs added to README + CHANGELOG.
7 lines
279 B
Batchfile
7 lines
279 B
Batchfile
REM Evomedia.net Token Savers — https://github.com/kellymichels/zscripts-token-savers
|
|
REM Created by Kelly Michels · dev@evomedia.net
|
|
REM Licensed under the MIT License. See LICENSE.
|
|
|
|
@echo off
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0zec2_rotatekeys.ps1" %*
|