every deploy re-asserts config 0600 and drops secret-bearing editor debris.
Browse files at this commitc6102af0f089099ef30c379ca26216def69de844Parent: b743a9d1 changed file +3 -0
.github/workflows/main.ymlmodified+3 -0
| @@ -162,6 +162,9 @@ jobs: | ||
| 162 | 162 | echo "no listen address in $deploy_path/config/in.toml" >&2 |
| 163 | 163 | exit 1 |
| 164 | 164 | 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 | |
| 165 | 168 | chmod +x -- "$deploy_path/current.new/in-web" |
| 166 | 169 | rm -rf -- "$deploy_path/current.previous" |
| 167 | 170 | if [ -e "$deploy_path/current" ]; then |