Skip to content

fix: render secret-bearing service configs with 0600 permissions - #28

Merged
rafa-stacks merged 2 commits into
nextfrom
codeql-fixes
Aug 17, 2026
Merged

fix: render secret-bearing service configs with 0600 permissions#28
rafa-stacks merged 2 commits into
nextfrom
codeql-fixes

Conversation

@rafa-stacks

Copy link
Copy Markdown
Collaborator

No description provided.

@rafa-stacks
rafa-stacks requested a lite review from Copilot August 17, 2026 20:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the config rendering logic to ensure rendered files that contain secrets are written with owner-only permissions (0600), and adds a test to validate those permissions.

Changes:

  • Replace std::fs::write with secrets::write_0600 for secret-bearing rendered files.
  • Add a unit test asserting that selected rendered secret files have 0600 permissions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/config/render.rs
Comment thread src/config/render.rs
Comment thread src/config/render.rs
@rafa-stacks
rafa-stacks merged commit 34be5cc into next Aug 17, 2026
2 checks passed
@rafa-stacks
rafa-stacks deleted the codeql-fixes branch August 17, 2026 21:14
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.

2 participants