-
Notifications
You must be signed in to change notification settings - Fork 450
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
#23235 API docs: Add certificates to host vitals for macOS, iOS, iPadOS #25317
Conversation
"certificates": [ // Available for macOS/iOS/iPadOS hosts | ||
{ | ||
"id": 3, | ||
"not_valid_after": "2021-08-19T02:02:17Z", | ||
"not_valid_before": "2021-08-19T02:02:17Z", | ||
"certificate_authority": true, | ||
"common_name": "FleetDM", | ||
"key_algorithm": "rsaEncryption", | ||
"key_strength": 2048, | ||
"key_usage": "CRL Sign, Key Cert Sign", | ||
"serial": 1, | ||
"signing_algorithm": "sha256WithRSAEncryption", | ||
"subject": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, | ||
"issuer": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, | ||
} | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev note:
Omitted from response if platform is not macOS, iOS, or iPadOS.
"certificates": [ // Available for macOS/iOS/iPadOS hosts | ||
{ | ||
"id": 3, | ||
"not_valid_after": "2021-08-19T02:02:17Z", | ||
"not_valid_before": "2021-08-19T02:02:17Z", | ||
"certificate_authority": true, | ||
"common_name": "FleetDM", | ||
"key_algorithm": "rsaEncryption", | ||
"key_strength": 2048, | ||
"key_usage": "CRL Sign, Key Cert Sign", | ||
"serial": 1, | ||
"signing_algorithm": "sha256WithRSAEncryption", | ||
"subject": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, | ||
"issuer": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, | ||
} | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev note:
Omitted from response if platform is not macOS, iOS, or iPadOS.
"subject": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, | ||
"issuer": { | ||
"country": "US", | ||
"organization": "Fleet Device Management Inc.", | ||
"organizational_unit": "Fleet Device Management Inc.", | ||
"common_name": "FleetDM" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev note:
subject
and issuer
data from osquery looks like this:
/C=US/O=Fleet Device Management Inc./OU=Fleet Device Management Inc./CN=FleetDM
C
→ country
O
→organization
OU
→ organizational_unit
CN
→ common_name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the number of potential certs on a device I don't think we should stuff all of this into host details.
My recommendation is that we have the list with total count and the first 5 name expiry and id.
Then a separate paginated response for full cert details.
For #23235
Add
certificates
to "Get host" and "Get host by device token" endpoints.This list will be available for macOS, iOS, and iPadOS hosts. It will be omitted for other platforms.