Skip to content

feat: add config option to allow symlinks#1372

Merged
ozgb merged 5 commits into
mainfrom
ozgb-safe-read-allow-symlinks
Apr 21, 2026
Merged

feat: add config option to allow symlinks#1372
ozgb merged 5 commits into
mainfrom
ozgb-safe-read-allow-symlinks

Conversation

@ozgb

@ozgb ozgb commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Overview

The new unsafe_allow_symlinks config option permits the use of symlinks when loading configuration files on node boot. Disabled by default to prevent symlink attacks.

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible): Added new unit tests

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

ozgb added 2 commits April 21, 2026 09:49
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
@ozgb ozgb requested a review from a team as a code owner April 21, 2026 08:54
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

@cosmir17 cosmir17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

Comment thread node/src/cfg/validated_file.rs

@gilescope gilescope left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, but I think if someone can set your config file contents then you've already lost.

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
@ozgb ozgb enabled auto-merge April 21, 2026 13:27
@ozgb ozgb added this pull request to the merge queue Apr 21, 2026
Merged via the queue into main with commit bf1a3c9 Apr 21, 2026
33 checks passed
@ozgb ozgb deleted the ozgb-safe-read-allow-symlinks branch April 21, 2026 14:39
gilescope added a commit that referenced this pull request Apr 21, 2026
m2ux added a commit that referenced this pull request Apr 23, 2026
* feat: add UNSAFE_ALLOW_SYMLINKS option for safe-read function

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* docs: add change file

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* chore: add pr link to change file

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* chore: ignore clippy warn

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* test: add another symlink test

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

---------

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
* feat: add UNSAFE_ALLOW_SYMLINKS option for safe-read function

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* docs: add change file

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* chore: add pr link to change file

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* chore: ignore clippy warn

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

* test: add another symlink test

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>

---------

Signed-off-by: Oscar Bailey <79094698+ozgb@users.noreply.github.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants