Micromanage
Micromanage is an open source MDM platform for Apple devices. It aims to be simple to run and easy to extend.
try out a (very very staged and fake) demo version here
The data is just randomly generated automatically, so if this was a real company they’d be totally screwed
since they have hundreds of errors.
Micromanage at its heart is built off of the NanoMDM project, and is designed to be an orchestration layer and interface
on top of their work. They originally started with MicroMDM, which is where the Micro- in Micromanage is from.
This is a rewrite from a version that used MicroMDM, and Nanomanage does not have as good of a ring to it…
I have spent a good deal of effort getting things to the state they are in now, but I am just one person. I
do not have the budget or time of a commercial team to dedicate to this project. Micromanage is and will always be free and
open-source software with no expectation of payment. However, should you want to support me and this project, I have
a Ko-fi page here if you would like to donate. Also, anyone that happens to be decommissioning
devices and aren’t sure what to do with them, I would be interested in some more testing devices 👀
Micromanage began as a personal project a few years back because I was working for a school that didn’t have management
on their Apple TVs and did not have the budget to pay an MDM license. I did not want to have to manually go and update
each one slowly, so I started writing a simple MDM. It never actually ended up being used on those Apple TVs though.
Most of my time still goes into the project rather than the docs, because writing documentation is really boring.
DEPLOY.md has some instructions on how to deploy Micromanage, but it is only a starting point for
your own deployment. Better documentation is something that will be coming soon™️
- I am not responsible for any damage or data loss that may occur from using this software. Use at your own risk.
- Should your iPhone turn into an evil dragon which then snatches your wig in front of someone you’re trying to impress,
I will not be here to provide emotional support or give you a new wig unless the story is particularly funny.
- Read “What it does not do yet” before you use this for anything more important.
What it does
- Over-the-air enrollment, with device identity certificates issued over SCEP by the bundled step-ca.
- Automated Device Enrollment (ADE/DEP) against Apple Business Manager or Apple School Manager.
- Declarative device management on the OS versions that support it.
- Profiles, apps, groups and tags, authored as YAML you can keep in git.
- App packages in S3, handed to devices as presigned manifests.
- Flows: a node editor for what happens to a device at enrollment.
- A compliance dispatcher that watches device state, remediates, and can POST a signed webhook.
- Break-glass escrow for managed admin, firmware and recovery lock passwords, FileVault recovery keys, and Activation
Lock bypass codes for supervised devices (with audited reveal).
- Break-glass is a hidden secret that creates an obvious flag when it is used, similar to the mechanism in EPIC
- FileVault recovery key escrow: a per-tenant keypair, the escrow payload served beside any FileVault profile, and the
key decrypted out of the device’s SecurityInfo report. A rotate command re-keys a Mac whose current recovery key is
escrowed or typed in; an already-encrypted Mac whose key nobody holds bootstraps with one local rotation.
- Bootstrap token status, and whether the Mac allows it for authentication.
- OS update enforcement over DDM
- Clear passcode on iPhone and iPad, using the UnlockToken read from NanoMDM’s store.
- An audit log that keeps every admin action.
- Two roles, member and admin, split on who authors configuration.
- A REST API, and a CLI that talks to it.
- Scoped service tokens for external integrations and an Ansible dynamic inventory endpoint.
- Enrollment profile CMS/PKCS#7 signing using enterprise or public CA certificates.
What it does not do yet
I plan to get to these in the future, but keep in mind we do not do these things yet.
- No VPP or App Store app assignment. App deployment is macOS
.pkg only, so an iPad fleet gets no app management at
all.
- This should come soon; however, it is just a lot of work and cost on my end to test.
- OS update enforcement is DDM-only, so it needs macOS 14 or iOS 17 and later. There is no
ScheduleOSUpdate fallback
for older devices.
- Clear passcode is iPhone and iPad only. Apple’s
ClearPasscode is n/a on macOS and tvOS, so a Mac cannot have its
FileVault or login password cleared this way.
- No user channel. A user-channel enrollment gets an empty declaration set, so Shared iPad is not really managed.
- No local daemon (yet), however, I plan to work on one soon. I have some existing work for a local daemon for macOS
that handles app installations and updates more gracefully, so I could extend upon that work easily.
- The daemon would also integrate JIT admin access, so users can stay at the minimum privilege level needed.
- Also, no local self-service app features yet.
Some future integrations I would like to implement
These aren’t in the app yet, but are things I would like to implement in the future and would be able to do easily
with what I own.
- Unifi integration
- Unifi has a REST API that can be used for visibility on devices and clients, so we could integrate some
information like getting device AP, site locations based off that, etc etc
- Tailscale integration
- Tailscale has a lot of features that I think could be used for remote triage without needing to worry about
certain firewall rules or security implications.
- I think the daemon would also be able to integrate with the Tailscale daemon, to collect some extra
stats
- The compliance and flows system could integrate nicely to allow/disallow connection to privileged services
based on device posture etc.
- There is existing device posture support in Tailscale for some commercial VPNs
Requirements for app packages
macOS installs packages (InstallApplication with a manifest URL) only when it is a product archive:
build it with productbuild and sign it with a Developer ID Installer certificate.
At the moment, packages have to be signed as Micromanage cannot sign them itself.
Micromanage IAC Controller
- At the center of Micromanage is the IAC controller.
- This parses YAML configuration files with expected state for devices and attempts to bring the devices into that
state.
- Devices are managed declaratively, so the same YAML fits into an existing CI/CD pipeline.
- Keeping configuration in version control makes rollback and incremental changes straightforward.
- Past the basic profile/app/group management, it also handles zero-touch enrollment through Apple Business/School
Manager (DEP/ADE), Apple’s newer declarative device management (DDM) on OS versions that support it, a small
node-based flow editor for scripting what happens at enrollment (tag the device, install stuff, wait for it to check
in, branch on OS version), and a compliance/dispatcher layer that watches for things like FileVault being off or a
device going into Lost Mode and can auto-remediate or fire a webhook.
Micromanage WebUI
The WebUI is based on Next.JS and Mantine. By default, the WebUI hides the YAML configuration given to the IAC
controller, but has a toggle in settings to enable it. I decided on that until I could get a better idea of how
YAML configuration errors could manifest themselves on the actual devices.
Deployment
See DEPLOY.md for deployment instructions. However, obtaining the actual MDM push certificate from Apple is
difficult and relatively expensive, as it needs a Vendor CSR. I have access to the necessary resources so I might be
able to see what I can do to help provide something to interested users.
However, I won’t guarantee anything since I want to make sure I stay within Apple’s rules. They don’t seem to be
particularly fond of an MDM outside of business or education uses.
I’m also working on a little hosted version of Micromanage, but this is nowhere near ready for public use. In the
future, I plan to slowly roll out the hosted version to people that are interested in testing it out.
License
Micromanage is licensed under the GNU AGPL, version 3
See the LICENSE file for more details.
bla bla bla this is not legal advice
GNU AGPL means that modified versions of the project must be open source under AGPL as well. So, if you were to make
changes to Micromanage, they would have to be public. Doing this prevents a commercial entity from using the hard work
of us and our contributors for financial gain without contributing anything back to the project.
However, our CLA allows Micromanage, LLP (us) to maintain our own private fork of the project. This was
decided
to simplify our development process and not for commercial reasons, Micromanage is and will always be an open source
project first.
评论