Enhance security by ensuring unique SSH host keys for VMs and protecting registry credentials. Update documentation to reflect changes in SSH key management and improve state file permissions.

This commit is contained in:
kstyagi@brahmai.in
2026-09-04 21:31:54 +00:00
parent 1022f24c34
commit a8dbc704e9
7 changed files with 147 additions and 16 deletions
+2
View File
@@ -94,6 +94,8 @@ class StateStore:
if not path.exists():
return State()
try:
if path.stat().st_mode & 0o077:
os.chmod(path, 0o600)
with path.open(encoding="utf-8") as state_file:
raw = json.load(state_file)
except (OSError, json.JSONDecodeError) as error: