Harden FIDO2 setup against cached sudo reuse - #11037
Open
ErikMelton wants to merge 3 commits into
Open
Conversation
Contributor
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
Reported-by: Sean https://github.com/shuber Huber