Flag to bypass end user auth - #49683
Conversation
|
@coderabbitai full review |
|
/agentic_review |
✅ Action performedFull review finished. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughAdds Possibly related issues
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Code Review by Qodo
1. Bypass ignores EUA token
|
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Pull request overview
Adds support for a new --bypass-end-user-auth option to generated fleetd (Orbit) installers, intended to skip end-user authentication during enrollment by omitting the end_user_auth capability when creating the Orbit client.
Changes:
- Added
--bypass-end-user-authtofleetctl packageand plumbed it into packaging options/templates for Linux (env file), macOS (launchd plist), and Windows (MSI service args). - Added an Orbit runtime flag/env var (
ORBIT_BYPASS_END_USER_AUTH) and forwarded it intofleetclient.NewOrbitClient. - Updated
NewOrbitClientto optionally removefleet.CapabilityEndUserAuth, with new unit tests for both packaging templates and Orbit client capabilities behavior.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| orbit/pkg/packaging/windows_templates.go | Appends --bypass-end-user-auth to Orbit service arguments when enabled. |
| orbit/pkg/packaging/packaging.go | Adds BypassEndUserAuth to packaging Options. |
| orbit/pkg/packaging/macos_templates.go | Emits ORBIT_BYPASS_END_USER_AUTH=true in launchd env when enabled. |
| orbit/pkg/packaging/linux_shared.go | Emits ORBIT_BYPASS_END_USER_AUTH=true in the Linux env file when enabled. |
| orbit/pkg/packaging/bypass_end_user_auth_test.go | Tests that the bypass option is present/absent across platform templates. |
| orbit/cmd/orbit/orbit.go | Adds runtime flag/env var and passes it into NewOrbitClient (and checker client). |
| cmd/osquery-perf/agent.go | Updates NewOrbitClient call site for the new parameter. |
| cmd/fleetctl/fleetctl/package.go | Adds --bypass-end-user-auth to fleetctl package. |
| client/orbit_client.go | Deletes CapabilityEndUserAuth from advertised capabilities when bypass enabled. |
| client/orbit_client_test.go | Adds unit tests verifying capability omission when bypass is enabled. |
Files excluded by content exclusion policy (1)
- changes/46644-bypass-end-user-auth
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49683 +/- ##
=======================================
Coverage 67.89% 67.89%
=======================================
Files 3890 3890
Lines 248437 248451 +14
Branches 13022 13022
=======================================
+ Hits 168679 168691 +12
- Misses 64543 64549 +6
+ Partials 15215 15211 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Files excluded by content exclusion policy (1)
- changes/46644-bypass-end-user-auth
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Files excluded by content exclusion policy (1)
- changes/46644-bypass-end-user-auth
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Pull request overview
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Files excluded by content exclusion policy (1)
- changes/46644-bypass-end-user-auth
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Pull request overview
Copilot reviewed 10 out of 11 changed files in this pull request and generated no new comments.
Files excluded by content exclusion policy (1)
- changes/46644-bypass-end-user-auth
Related issue: Resolves #46644
Demo video: https://www.youtube.com/watch?v=svCaA-820yc
Docs: https://github.com/fleetdm/fleet/pull/49713/changes
Checklist for submitter
If some of the following don't apply, delete the relevant line.
changes/,orbit/changes/oree/fleetd-chrome/changes.See Changes files for more information.
Testing
fleetd/orbit/Fleet Desktop
runtime.GOOSis used as needed to isolate changesSummary by CodeRabbit
--bypass-end-user-authtofleetctl packageand Orbit.ORBIT_BYPASS_END_USER_AUTHfor environment-based configuration.