Skip to content
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

refactor notification and enrollment ID capabilities #35

Merged
merged 7 commits into from
Jul 14, 2023

Conversation

jessepeterson
Copy link
Owner

Previously any change to a set, enrollment, or declaration would trigger a notification (which, in turn, sends out the MDMv1 DeclarativeManagement command). This PR introduces the capability to set a nonotify=1 URL param which defers notification for your actual changes. We also introduce a /v1/notify?... endpoint which allows specifying all changed items. To enable this the storage backends now "roll-up" all the enrollment IDs (to optimize the case of many overlapping set<->id<->declarations). It is hoped, in the end, that this reduces unnecessary notifications (MDMv1 command sends) and reduces load for both KMFDDM and e.g. NanoMDM.

With the above added support we introduce a new tool: ./tools/syncdir.py. From its docstring:

KMFDDM sync tool. This tool synchronizes declarations and sets from a directory and uploads them to a KMFDDM server. It tries to be smart about only notifying the changed items (declarations, sets) and only performing one set of notifications for all changed items.

@jessepeterson jessepeterson merged commit 066d9af into main Jul 14, 2023
3 checks passed
@jessepeterson jessepeterson deleted the storage-enrollment-ids branch July 14, 2023 15:51
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant