forge
Explore
Log in

Don't you dare go Hollow

every deploy re-asserts config 0600 and drops secret-bearing editor debris.

Browse files at this commit

c6102af0f089099ef30c379ca26216def69de844Ahmet Kaan GümüşParent: b743a9d
toml and keys files are held to 0600; *.bak* and *.pre-* next to live config are deleted. The SHA healthz rollback is unchanged. Local config/in.toml is left unstaged.
.github/workflows/main.ymlmodified+3 -0
@@ -162,6 +162,9 @@ jobs:
162162 echo "no listen address in $deploy_path/config/in.toml" >&2
163163 exit 1
164164 fi
165+ chmod 0600 -- "$deploy_path/config/"*.toml 2>/dev/null || true
166+ chmod 0600 -- "$deploy_path/config/"*.keys 2>/dev/null || true
167+ find "$deploy_path/config" -maxdepth 1 -type f \( -name '*.bak*' -o -name '*.pre-*' \) -delete
165168 chmod +x -- "$deploy_path/current.new/in-web"
166169 rm -rf -- "$deploy_path/current.previous"
167170 if [ -e "$deploy_path/current" ]; then