running_info.go persists the running database instance's password in plaintext on disk
running_info.go's Save() persists the running database instance's plaintext connection password to disk.
Where: pkg/db/db_local/running_info.go, RunningDBInstanceInfo.Save().
What happens today: the struct (including its Password field) is JSON-marshaled and written to filepaths.RunningInfoFilePath() in plaintext. This PR narrowed the file's permissions from 0644 to 0600 (world/group readable -> owner-only), but the password is still persisted in plaintext on disk.
What a fix would change for users: not persisting the password at all (e.g. deriving/regenerating it, or storing a reference/token instead) would be a design change to how the local database instance's running-state file works, out of scope for a permission-narrowing fix.
What analysis is needed before fixing: why the password needs to be on disk at all (what reads it back from this file, and whether that consumer could instead use a different secret-retrieval path).
Generated with Claude Code
Source: turbot/steampipe