security: restrict bootstrap state permissions

This commit is contained in:
lunanting 2026-09-12 16:58:00 +08:00
parent 3229c2a1c3
commit 86ab958911

View File

@ -1,5 +1,6 @@
#!/bin/sh
set -eu
umask 077
ca_key=${BOOTSTRAP_SSH_CA_KEY:-/var/lib/cangku-bootstrap/ssh_user_ca}
if [ ! -f "$ca_key" ]; then