From b8a9cbd576ccf953130d07ef4c585e617bede115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 10 Sep 2026 15:23:25 +0300 Subject: [PATCH] every deploy re-asserts config 0600 and drops secret-bearing editor debris. toml and keys files are held to 0600; *.bak* and *.pre-* next to live config are deleted. The SHA healthz rollback is unchanged. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3693286..1697c4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -162,6 +162,9 @@ jobs: echo "no listen address in $deploy_path/config/iz.toml" >&2 exit 1 fi + chmod 0600 -- "$deploy_path/config/"*.toml 2>/dev/null || true + chmod 0600 -- "$deploy_path/config/"*.keys 2>/dev/null || true + find "$deploy_path/config" -maxdepth 1 -type f \( -name '*.bak*' -o -name '*.pre-*' \) -delete chmod +x -- "$deploy_path/current.new/iz-web" rm -rf -- "$deploy_path/current.previous" if [ -e "$deploy_path/current" ]; then