-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orbit authentication with Fleet #7109
Comments
Hi @sharvilshah. We've discussed a way in which Fleet could match an Orbit instance and its child osqueryd instance (basically to determine if both instances are coming from the same host). Osquery enroll API is of the following form:
Fleet stores the Orbit always starts osqueryd with fleet/orbit/pkg/osquery/flags.go Lines 9 to 13 in acf6018
Such Proposal: Orbit could run the following command before starting the osqueryd daemon: # /opt/orbit/bin/osqueryd/macos-app/stable/osquery.app/Contents/MacOS/osqueryd -S --json "select uuid from system_info;"
[
{"uuid":"3EBADBB4-B0B1-4BB2-ADAB-E82A53D6045D"}
]
# (system_info.uuid is the hardware UUID.) Then, in the Orbit "enroll request", Orbit would send such hardware UUID + enroll secret. That way, Fleet has a way to match the two in MySQL. Let me know if it makes sense to you. |
Hey @lukeheath @mna, No this issue does not. This is a sub-issue of
This ticket only reflects the one-off work needed for orbit to authenticate and communicate with fleet server. A follow-on ticket will be created, when @sharvilshah starts working on it, to address the actual reading/updating of flags. Does that answer your question? |
@lukeheath @mna never mind! #7246 covers both the flags and the authentication piece. |
@sharvilshah @zwass Hey! has this been addressed and ready for release? Its sibling issues are, but this one is not marked. |
Yes, this was done as part of #7246. |
Goal
In order to us to remotely manage osquery flags (CLI flags in osquery which requires restarting osquery on the host), orbit should "enroll" and authenticate with Fleet
Parent Epic
How?
/orbit
endpoint on Fleet/orbit/enroll
,/orbit/<team|host>/flags
, etc)orbit_node_key
similar to osquery'snode_key
enroll_secret
to request an enrollment with Fleetnode_key
locally (initially on filesystem, later migrate to something like Pebble by CockroachDB (https://pkg.go.dev/github.com/cockroachdb/pebble)host
MySQL datastore to store the following: host_id, node_key, orbit_node_keyThe text was updated successfully, but these errors were encountered: