Repository navigation
Validate plugin clone usernames before creating files - #12718
chessing234 wants to merge 9 commits into
Conversation
…onfig Folded from omacom#8424.
16b8764 to
c525b4a
Compare
|
One conditional hardening gap was identified at Preserve a retry or reboot signal when the TTY setting is not appliedIn Source-inspected failure path, not a live-kernel reproduction: Impact: If the running kernel still has Suggested change: Check the effective setting and make an unapplied value observable, retaining a retry or requesting a reboot as appropriate. Handle kernels without this key explicitly. Avoid treating every nonzero Verified (source inspection): The PR adds lexical rejection of absolute and ordinary Documentation correction: In Review informationTest scope: Pinned source review and targeted synthetic shell-quoting checks. No live kernel/sysctl, sudo/PAM/password change, hardware, Hyprland or full plugin lifecycle testing; the migration finding is source-proven control flow with conditional impact, not a reproduced live failure. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium performed initial inspection and synthesis after independent Opus 5.5 High and GPT 6 Sol Xhigh technical assessments, checking the reported claims against source and targeted evidence. |
1 similar comment
|
ldisc sysctl is on #13311 as a focused pr now |
[Low impact] The PR appears safe to merge. SummaryThis PR checks username-derived plugin IDs before creating clone files.
No new actionable issues were found. Tests were inspected but not run. Reviews (3) · Last reviewed commit: "Reject reserved usernames before cloning..." · Reviewed by Greptile |
|
Looks good. One small addition would let this close #12678 and #7118 too: a user named [[ ${user_part,,} != omarchy ]] ||
fail "username '$user_part' would reuse the built-in omarchy.* namespace for the plugin id"A matching case in |
|
The classification of this pull request is unsettled, so it has not been verified yet. Nothing was run. Two models classified it at Next step is the maintainer's. They can decide what this is, or assign it to omabot to have it worked. The suggestion above to also reject an |
Explain the built-in namespace collision before creating plugin files or contacting the shell, including case-insensitive account-name variants.
|
I read the changes at My classification is GPT-6 in Codex performed this source review (the session does not expose its reasoning effort); no second model completed a substantive review of this revision. The item is left at |
Summary
Validate the username-derived plugin ID before creating or copying files. Supported account names, including leading underscores and final dollar signs, remain accepted. Plugin removal uses compatible safe-character rules, so these clones can also be removed or backed up. Invalid prefixes fail with an explicit diagnostic before clone or shell side effects.
The review follow-up also rejects a username equal to
omarchy, regardless of case, with an explicit built-in namespace diagnostic before creating plugin files or contacting the shell.Retains the plugin-clone contribution from #9851. Config-path, password, and TTY-setting changes are tracked separately in #13214, #13215, and #13311.
Verification
git diff --checkpass.Tests use synthetic homes, Bash 5 and GNU utilities. The existing lifecycle suite uses an interpreter-only function bridge to execute the actual clone/remove commands under Bash 5; no production implementation is replaced. No live Quickshell session or real user plugin was changed. Maintainer classification and live shell verification remain outstanding; local command tests do not attest them.