-
Notifications
You must be signed in to change notification settings - Fork 644
NM-304: MDM posture check integration #4064
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
Open
abhishek9686
wants to merge
13
commits into
develop
Choose a base branch
from
NM-304
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
265a3f7
NM-304: add MDM posture integration
abhishek9686 20060c1
Merge branch 'develop' of https://github.com/gravitl/netmaker into NM…
abhishek9686 54cf6fa
NM-304: merge mdm settings
abhishek9686 36c4f27
NM-304: resolve merge conflicts
abhishek9686 1621daa
NM-304: add jumpcloud to mdm providers, check device policy status fo…
abhishek9686 57f4076
NM-304: resolve merge conflicts
abhishek9686 1ca2f08
Merge branch 'develop' of https://github.com/gravitl/netmaker into NM…
abhishek9686 67db38a
Merge branch 'develop' of https://github.com/gravitl/netmaker into NM…
abhishek9686 c00cf18
NM-304: fix intune mdm checks
abhishek9686 7fb9fe3
NM-304: add iru mdm
abhishek9686 2a9aea0
NM-304: rm user email usage
abhishek9686 0cb9a5d
NM-304: resolve pr issues
abhishek9686 43bc372
NM-304: fix integration tests
abhishek9686 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| package models | ||
|
|
||
| import ( | ||
| "time" | ||
|
|
||
| "github.com/gravitl/netmaker/schema" | ||
| ) | ||
|
|
||
| // HostPostureStatus is the netclient-facing summary of a host's last evaluated | ||
| // posture state. Returned by GET /api/v1/host/{hostid}/posture_status. | ||
| type HostPostureStatus struct { | ||
| HostID string `json:"host_id"` | ||
| EvaluatedAt time.Time `json:"evaluated_at"` | ||
| MDM *HostMDMStatus `json:"mdm,omitempty"` | ||
| Networks []NetworkPostureStatus `json:"networks"` | ||
| } | ||
|
|
||
| // HostMDMStatus is the current MDM sync snapshot for the host's configured | ||
| // MDM provider (if any). | ||
| type HostMDMStatus struct { | ||
| Provider string `json:"provider"` | ||
| MatchedBy string `json:"matched_by"` | ||
| Enrolled bool `json:"enrolled"` | ||
| Compliant bool `json:"compliant"` | ||
| LastSyncedAt time.Time `json:"last_synced_at"` | ||
| } | ||
|
|
||
| // NetworkPostureStatus describes posture state for a single (host, network). | ||
| type NetworkPostureStatus struct { | ||
| NetworkID string `json:"network_id"` | ||
| NodeID string `json:"node_id"` | ||
| Severity schema.Severity `json:"severity"` | ||
| Status string `json:"status"` // pass | warn | fail | ||
| Violations []Violation `json:"violations"` | ||
| } | ||
|
|
||
| // Network posture status values. | ||
| const ( | ||
| PostureStatusPass = "pass" | ||
| PostureStatusWarn = "warn" | ||
| PostureStatusFail = "fail" | ||
| ) |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.