Skip to content

Move node-level data to .node/ subdirectory#30

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
fix/node-data-dir
Mar 20, 2026
Merged

Move node-level data to .node/ subdirectory#30
jonathonbyrdziak merged 1 commit intomasterfrom
fix/node-data-dir

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Adds NODE_DATA_DIR constant in bootstrap.php pointing to {WEBROOT_DIR}/.node/
  • Moves all node-level data out of the repo root into .node/:
    • key (encryption key)
    • deployments.log (audit log)
    • cloudflare-deploy.log
    • plugins.json
    • nodes/*.json (node configs)
    • incidents/ (snapshots and reports)
    • background_process.log
    • config.php (env settings from config:env)
  • Adds .node/ to .gitignore so the repo stays clean
  • Updates all docs to reference the new paths

Depends on #29 (install dir change to ~/.protocol)

Test plan

  • Run protocol secrets:setup — key should be created at .node/key
  • Run protocol config:env production — config should be at .node/config.php
  • Run protocol plugin:enable cloudflare — stored in .node/plugins.json
  • Verify git status in ~/.protocol stays clean after all operations

🤖 Generated with Claude Code

Protocol now installs to ~/.protocol (a git repo). Node-level data
like encryption keys, audit logs, plugins config, incident snapshots,
and node configs was previously written directly into ~/.protocol/,
making the repo dirty. All node data now lives under .node/ via the
NODE_DATA_DIR constant defined in bootstrap.php. Added .node/ to
.gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit 5ec9d11 into master Mar 20, 2026
6 of 8 checks passed
@jonathonbyrdziak jonathonbyrdziak deleted the fix/node-data-dir branch March 20, 2026 19:28
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