Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryThe PR sets owner-only permissions on
Reviews (13) · Last reviewed commit: "Merge quattro and retain shell.json prov..." · Reviewed by Greptile |
|
Important fix for #14748 — BLOCKING coordination: this PR and #14774 both introduce Minor NIT: |
e3d7a24 to
04df1a5
Compare
|
Retimestamped the migration to Regarding the chmod API: Quickshell's QML layer currently exposes |
|
@greptile review |
04df1a5 to
8fd22e6
Compare
8fd22e6 to
e0602fd
Compare
|
@greptile review |
|
+1, tested on my laptop (ASUS Vivobook, Intel Arc) at e0602fd, file-level tests only with a temporary HOME. With this PR's checks run against stock quattro:
On this PR, merged cleanly onto current quattro (84cfb93):
I didn't run the quickshell runtime part of |
|
Not reviewed yet, so this comment gives no verdict on the pull request. Before any work starts, two models classify each item independently, and only an agreement counts. Claude Opus 5.5 read this as a bug fix for the world-readable Next: the item is listed for the maintainer as unsettled at head e0602fd. The full review (reproducing the bug on a worker, running the suite, and a second opinion on the diff) happens when it is sent round again. Nothing is needed from you in the meantime. |
e0602fd to
4e33bee
Compare
f6458ae to
293737c
Compare
293737c to
d262c82
Compare
|
Reviewed at a25c99f against Reproduced on a worker (an Omarchy VM, with this branch merged into current
Pushed: a25c99f, Make shell.json private on fresh installs and config reinstalls. Two paths still left
Tests on the worker: CI: the Second opinion: Codex Medium and muse-wonder (via pi, thinking high) each reviewed the change twice. In the first round, both found the fresh-install and reinstall gaps above, and the commit fixes them. In the second round, both found nothing still open. Their independence is not guaranteed. They also noted the following, and I checked each point against the source:
For the author: the PR description still lists a Waiting on the maintainer. #12250 changes the same |
New users get shell.json from /etc/skel at 0644, and --first-install marks every shipped migration done, so the shell.json migration never runs for them. omarchy-reinstall-configs replays skel with cp -af, which puts 0644 back over a file the migration already tightened. Both now chmod it 0600 after the copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: muse-wonder High <noreply@meta.com>
a25c99f to
51fdfd8
Compare
|
Updated the PR description to match the current diff (reflecting the skel provisioning/reinstall paths and consolidated test coverage) and rebased onto latest quattro. |
|
Re-reviewed at 51fdfd8 after the rebase, against current Reproduced on a worker (an Omarchy VM, with this branch merged into current
Tests on the worker: Second opinion: Codex Medium and muse-wonder (via pi, thinking high) each reviewed this head. Neither found a defect that would affect a user, and their independence is not guaranteed. They confirmed every path that writes Waiting on the maintainer. The decisions from the last review still stand. #12250 rewrites the same |
Keep the shell.json permission coverage alongside the path traversal regression from omacom#10413. Both exercise omarchy-refresh-config and neither replaces the other. Co-Authored-By: GPT-6.2 (high) <noreply@openai.com>
|
Pushed 8d868f2 to bring this branch onto Reproduced on a disposable Omarchy worker under umask 022: creating, replacing and backing up
GPT-6.2 High in Codex reviewed the change. Opus 5.5 High and muse-wonder (via pi, thinking high) also reviewed this exact head and found no blocking runtime defect; both accepted the conflict resolution. Their independence is not guaranteed. I checked their findings: historical This waits on the maintainer's decisions about the call-site strategy and generic helper's error handling, coordination with #12250's mode-preservation policy, and whether the migration should also secure historical backups. #17552 still touches the same writer for its separate atomic-rename fix. |
|
CI now passes at unchanged head The classification refresh returned no usable answer from the second classifier, |
Keep the private shell.json regression alongside the renamed omarchy-diagnose-crash skill and current provisioning checks. Co-Authored-By: GPT-6 in Codex (effort not exposed) <noreply@openai.com>
|
Pushed On a disposable Omarchy worker under umask 022, creating, replacing and backing up
GPT-6 in Codex (effort not exposed) reviewed and tested this head. Opus 5.5 High and muse-wonder (via pi, thinking high) also reviewed it and found no blocking runtime defect; their agreement is not guaranteed independent. Both accepted the conflict resolution. I rejected their claim that the copy-failure test is ineffective: removing strict mode from this head makes it fail. The writer's mode assertion still passes on base because This remains with the maintainer for the call-site strategy, generic helper error-handling scope, redundant writer chmods/assertion, coordination with #12250's mode-preservation policy, and historical-backup scope. No further author action is requested while those choices are pending. |
Problem
shell.jsonholds plugin settings and credentials (such as IPTV provider URLs with embedded usernames/passwords or token parameters), but the file could arrive with mode0644(world-readable) and stay that way:omarchy-refresh-configcopies defaults withcp -f, inheriting the caller's umask (e.g.022->0644).FileView { atomicWrites: true }retains existing file permissions across writes.~/.config/~/.config/omarchyare accessible to other local users, sensitive settings could be read by other accounts.omarchy-reinstall-configscopyshell.jsonfrom/etc/skel, where it could also arrive at0644.Fixes #14748
Solution
bin/omarchy-refresh-config: when refreshingomarchy/shell.json, explicitly enforce mode0600on both the newly copied user config and any backup file created.bin/omarchy-shell-config: explicitly set mode0600on both the temporary staging file and$CONFIG_FILEincommit().bin/omarchy-provision-user: explicitly chmodshell.jsonto mode0600after copying/etc/skelduring first installs.bin/omarchy-reinstall-configs: explicitly chmodshell.jsonto mode0600immediately after copying from/etc/skel.migrations/1791834933.sh: one-time migration that tightens existing~/.config/omarchy/shell.jsonto mode0600.test/shell.d/refresh-config-test.sh,test/shell.d/provision-user-test.sh, andtest/shell.d/config-test.sh.Verification
test/shell.d/refresh-config-test.shpasses (verifies0600mode on created file, replaced file, and backup file).test/shell.d/provision-user-test.shpasses (verifies skel copy chmod to0600).test/shell.d/config-test.shpasses (verifiesomarchy-shell-config commit()keeps mode0600).