Skip to content

fix: minor review findings (tool file checks, config_arrays repair) - #81

Merged
somethingwithproof merged 2 commits into
mainfrom
fix/minor-review-findings
Nov 20, 2026
Merged

somethingwithproof merged 2 commits into
mainfrom
fix/minor-review-findings

Conversation

@somethingwithproof

Copy link
Copy Markdown
Owner

Both items of the minor findings checklist.

  • Tool files: a tool in a compliant directory that is not root-owned, is group/other-writable, or is set-ID is now a sweep refusal, not a health warning. An absent tool is still not a refusal. A symlinked tool is judged by its target. ADR 0009 is amended; the health warnings stay.
  • config_arrays: fabric_config_arrays repairs the install (migration, template import) only when $_SESSION['sess_user_id'] is set, since core fires the hook before auth.php checks the session. Anonymous requests leave it to the next page load.

Verification: Pest unit suite 201 passed (php:8.2-cli), with new tests for the tool checks and the session gate; locales/build_gettext.sh --check passes. Lifecycle, PHPStan and e2e run in CI only.
Risk: a root-run sweep with a tool owned by another account now stops until the owner is fixed. The other open PR also edits the catalogs; rerun sh locales/build_gettext.sh on conflict.

Fixes #79

…user

Core fires config_arrays before include/auth.php checks the session, so
an anonymous request to a plugin page could start the schema migration
and template import. Leave them to the next request that carries a user.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
A tool inside a compliant directory that was not root-owned, was writable
by group or others, or was set-ID only raised a health warning, and the
sweep still ran it. Treat each as a refusal, like the directory checks
(ADR 0009).

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7db2c87c-a422-44ad-a68f-bd81df7d1cae
Commits

Reviewing files that changed from the base of the PR and between 0270f41 and 7111b9a.

Files selected for processing: 17

  • docs/decisions/0009-command-allowlist-and-privileges.md
  • lib/PrivilegeProbe.php
  • lib/ToolDirectory.php
  • locales/LC_MESSAGES/ar-SA.mo
  • locales/LC_MESSAGES/es-419.mo
  • locales/LC_MESSAGES/es-ES.mo
  • locales/LC_MESSAGES/hi-IN.mo
  • locales/LC_MESSAGES/zh-CN.mo
  • locales/po/ar-SA.po
  • locales/po/cacti.pot
  • locales/po/es-419.po
  • locales/po/es-ES.po
  • locales/po/hi-IN.po
  • locales/po/zh-CN.po
  • setup.php
  • tests/Unit/BootTest.php
  • tests/Unit/ValueTest.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@somethingwithproof
somethingwithproof merged commit ab03a71 into main Nov 20, 2026
19 checks passed
@somethingwithproof
somethingwithproof deleted the fix/minor-review-findings branch November 20, 2026 06:27
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.

Minor review findings

1 participant