Skip to content

Align stats persistence path with service defaults#150

Draft
boeing23 wants to merge 1 commit into
runta-dev:mainfrom
boeing23:agent/stats-persist-path
Draft

Align stats persistence path with service defaults#150
boeing23 wants to merge 1 commit into
runta-dev:mainfrom
boeing23:agent/stats-persist-path

Conversation

@boeing23

Copy link
Copy Markdown

Summary

  • move generated and migrated stats persistence defaults to /var/lib/clawshell/stats.json
  • create and chown /var/lib/clawshell during onboarding
  • allow the hardened Linux systemd unit to write stats under /var/lib/clawshell
  • fix the DLP action default comment in the example config

Why

The README recommends /var/lib/clawshell/stats.json because /etc/clawshell is read-only under the hardened systemd unit, but generated and migrated configs still pointed stats persistence at /etc/clawshell/stats.json. On Linux, ProtectSystem=strict also requires an explicit ReadWritePaths entry for /var/lib/clawshell.

Validation

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant