We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d3ede commit b88ca54Copy full SHA for b88ca54
1 file changed
src/lib/gcp.ts
@@ -995,8 +995,8 @@ echo "✓ Frontend service started on port 3000" >> /var/log/startup.log
995
# Start ttyd web terminal service
996
echo "Starting ttyd web terminal..." >> /var/log/startup.log
997
998
-# Generate a random password for ttyd authentication
999
-TTYD_PASSWORD=$(openssl rand -base64 12 | tr -dc 'a-zA-Z0-9' | head -c 16)
+# Generate a random password for ttyd authentication (use more bytes to ensure 16 chars after filtering)
+TTYD_PASSWORD=$(openssl rand -base64 24 | tr -dc 'a-zA-Z0-9' | head -c 16)
1000
1001
# Store the password in VM metadata for the dashboard to retrieve
1002
curl -X PUT "http://metadata.google.internal/computeMetadata/v1/instance/attributes/ttyd-password" \\
0 commit comments