Repository navigation
Harden FIDO2 setup against cached sudo reuse - #11037
ErikMelton wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Pre-setup presentation helpers can still execute binaries from a user-controlled PATH while cached sudo credentials remain live.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Hardens FIDO2 enrollment by isolating privileged credentials and using trusted executable paths.
Changes:
- Invalidates cached sudo credentials around FIDO2 operations.
- Preserves atomic credential staging and failure cleanup.
- Adds PATH-poisoning and presentation callback tests.
File summaries
| File | Description |
|---|---|
bin/omarchy-setup-security-fido2 |
Hardens FIDO2 setup and credential staging. |
bin/omarchy-launch-floating-terminal-with-presentation |
Resolves presentation scripts through Omarchy paths. |
test/shell.d/security-fido2-test.sh |
Tests sudo invalidation, PATH isolation, and cleanup. |
test/shell.d/floating-terminal-test.sh |
Tests fixed presentation callback paths. |
test/shell.d/plymouth-set-test.sh |
Adapts presentation-wrapper fixtures. |
Review details
- Files reviewed: 3/5 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
#9873 has merged into Scope checked by GPT-6 in Codex and Codex Medium against the current diffs and landed fix; independence is not guaranteed. No runtime tests were rerun for this reconciliation. |
|
Thanks for the cold-sudo / fixed-path hardening — direction looks right for FIDO2 setup. Two blockers before review can finish:
Happy to re-review after those land. |
|
Superceded by #16810 |
Summary
Tests
Reported-by: Sean https://github.com/shuber Huber