88 Commits

Author SHA1 Message Date
Jesse Peterson
da16c24036 switch to micromdm/plist and update jessepeterson/cfgprofiles 2025-01-17 00:13:33 -08:00
Jesse Peterson
90831d0c4b mdmcert: display reason in body output error 2025-01-16 23:37:07 -08:00
Jesse Peterson
9f3e04982e switch to smallstep/pkcs7 (#944) 2023-12-02 14:41:37 -08:00
Jim Zajkowski
7a3715454a Chore: tidy for go 1.20 (#902)
Tidy code for Go 1.20 and update Go version for Docker and CI

---------

Co-authored-by: Kory Prince <korylprince@gmail.com>
2023-07-11 17:28:26 -05:00
Kory Prince
3d3a51b8e8 add missing step in "Generate MDM CSR" workflow (#823) 2022-05-20 11:00:33 -07:00
Brandon Kurtz
13b6a440e5 typo in cmd/mdm/mdmctl/mdmcert.download.go flDecrypt (#817) 2022-05-05 00:51:13 -07:00
Kory Prince
5495df8c15 implement mdmctl apply app -sign-identity (#785)
* implement mdmctl apply app -sign-identity

* update go-cpio-odc for macOS compatibility

* update go-cpio-odc for windows compatibility

* update go-cpio-odc to satisfy builder
2022-04-14 13:09:47 -04:00
Martin Friedrich
d31ccc6f8e fix typo (#799) 2022-02-04 08:53:22 -08:00
William Theaker
be0157a044 Show mdmctl config switch usage if no server -name passed (#791) 2021-12-20 11:40:20 -08:00
Martin Friedrich
7abe02999d Golang updates (#783) 2021-10-29 19:57:49 -04:00
Jesse Peterson
4d5fbf5fd1 scep v2, Mozilla PKCS7 fork, cleanup (#737)
- Upgrade to micromdm/scep v2 & updated API usage
  - Use interfaces rather than concrete types in a few places
- Switch to Mozilla's PKCS7 fork (actually @omorsi's fork of that fork)
- Import order: stdlib, project/self, 3rd party
2021-06-09 15:44:58 -07:00
William Theaker
45fc658d70 Correct mdmctl dep-profiles flag (#748) 2021-04-29 20:49:02 -07:00
William Theaker
00a4a57b03 Add auto_advance_setup to DEP profile template (#749) 2021-04-29 20:47:45 -07:00
Jesse Peterson
ef5d879d27 CircleCI→GitHub Actions (#740)
* CircleCI→GitHub Actions
* Fix gofmt files
2021-04-21 20:51:39 -07:00
Dan Lamppa
7da51da605 Updated mdmctl to allow base server URL to have a path (#683)
Updated mdmctl to allow server-url to have a path.

For example: "https://www.example.com/test". Prior to this, any path component was removed. The example url would have been modified to "https://www.example.com/".
2020-07-09 14:48:57 -04:00
Ryunosuke Sato
1d712f01b6 Fix a typo in command usage (#667)
"a MDM" -> "an MDM".
2020-05-20 10:06:11 -07:00
Victor Vrantchan
39230bbdfe replace UUID dependency (#665)
replaced the satori/uuid package which was no longer maintained

Closes #664
2020-04-23 20:00:18 -04:00
tperfitt
e03e73c542 Add local-only flag and tweak makefile to support notarization.
Co-authored-by: tperfitt <tperfitt@twocanoes.com>
2020-03-13 10:46:22 -04:00
Nate Felton
77d46f93d7 Fixes serial[s] flag to match other commands (#621)
Fixes serial[s] flag to match other commands

Fixes #618
2019-10-30 09:47:01 -04:00
Nate Felton
19ba30018b Adding usages for mdmctl remove devices (#620)
Resovles #619
2019-10-29 10:50:56 -04:00
Victor Vrantchan
e54ae2d2fb add options for signing a profile (#602) 2019-07-13 21:38:58 -04:00
Zack McCauley
d6e4afe4d7 Added DeviceFamily to get dev-devices output, Fixes #81 (#599)
Added additional column for DeviceFamily in output of mdmctl get dev-devices -serials=SERIALNUMBER
2019-07-01 14:49:33 -07:00
Jesse Peterson
7d65dd8898 By default, switch to the new config (#567)
* By default, switch to the new config

* Update CHANGELOG
2019-02-15 12:09:14 -08:00
Jesse Peterson
9eec556ea0 Initialize empty server config map (#566) 2019-02-15 12:08:26 -08:00
Emmanuel Goh
ca95cc11f3 Allow singulars for devices (#540)
Allow singulars for devices (also sort imports)

Signed-off-by: Emmanuel Goh <emmanuel.goh.7@gmail.com>
2018-10-25 11:56:21 -04:00
Danny Lockard
f45a0469f0 Some cleanup based on goreportcard linters (#517) 2018-10-02 14:54:10 -04:00
Victor Vrantchan
93fb332b84 Depsync cleanup (#505)
Closes #302

This package still needs a lot of work, but I feel like this is a good stopping point.
In a follow up, I plan on writing some tests, and refactoring some of the ways the sync.Watcher goroutines are managed.
2018-09-11 02:01:25 +00:00
Victor Vrantchan
ef127f9aad move the dep library into the core repo (#504)
The dep library was initially a self contained project, but doesn't have a community of users.
Keeping it in the main repo should reduce the maintenance burden and simplify dependency management for the project.
2018-09-08 18:39:31 +00:00
Scott Knight
8a941542f7 Support device removal by serial number (#484)
The remove devices command now supports taking a list of udids and list of serials. You can provide list or the other or both. The remove command will simply loop through all devices passed in and attempt to delete.
2018-08-23 14:58:41 -04:00
Jesse Peterson
e26bc2c19c Use config for block push (#480)
Fixes #479
2018-08-08 10:26:59 -07:00
Scott Knight
529860bf15 Allow removal of device records (#444)
The new remove devices command takes a UDID or list of UDIDs
as input and calls the devices delete endpoint. Since serial number
isn't strictly required by the spec it seemed to make more sense
to keep the remove working with only UDIDs. The get devices command
with a serial number filter can always be used to look up a UDID
from a serial number.
2018-06-21 11:43:16 -04:00
Clayton Burlison
08aa5151dc fix: Smallest typo in the world (#439) 2018-06-14 11:17:50 -04:00
Jesse Peterson
8bdc5e3ffe Don't hide error (#435) 2018-06-13 21:43:35 -04:00
Scott Knight
be837649b3 Do not allow mdmctl config set without args (#421) 2018-05-27 13:08:14 -04:00
Jesse Peterson
10d6d99f9b DEP auto-assignment (v2) (#405)
Support DEP auto-assignment in MicroMDM.

Resolves #227.
Resolves #178.
2018-05-11 13:52:06 -07:00
Brett Demetris
9d15fff516 search a serial out of all serials (#363)
* search a serial out of all serials

* clean up usage

* roll back development code, cleanup

* pull changes to mdmctl and decode url params

* wire up List to accept opts with debugging

* implement forEach without filtering opt

* implement filtering for multiple inbound serials

* drop gorilla/schema in favor of json body

* address comments

* tighten up return

* remove device.Store ref and make use of httputil pkg
2018-05-07 10:22:54 -07:00
Jesse Peterson
5661b62021 Implement mdmcert.download support in mdmctl (#401) 2018-05-02 22:05:32 -07:00
thepriefy
ced71b4e38 fix: Get devices (and most other successful commands) should output to Stdout, not Stderr (#360)
Closes #356
2017-12-13 22:47:03 -05:00
Victor Vrantchan
6e561224d0 refactor dep api endpoints (#355)
Closes #331
Closes #329
Closes #323
2017-12-12 08:31:35 -05:00
Victor Vrantchan
1d8f75e290 refactor device api (#354) 2017-12-10 10:01:03 -05:00
Victor Vrantchan
431a09998c refactor app upload APIs (#353)
Closes #296
2017-12-10 01:21:59 -05:00
Victor Vrantchan
5ff82344be refactor config api (#352)
Closes #300
Closes #303
2017-12-10 00:39:04 -05:00
Victor Vrantchan
c5b1e8ccce refactor user api (#351)
Closes #307
2017-12-09 22:42:03 -05:00
Victor Vrantchan
5ff0a2f7f3 refactor block service for HA (#349) 2017-12-09 19:04:06 -05:00
Victor Vrantchan
c87bca7116 refactor blueprint service for HA (#348)
Cleanup blueprints by moving the service into its own package.

Closes #297
2017-12-09 18:09:06 -05:00
Victor Vrantchan
83ea8491aa reorganize profile service (#347)
Moved all the endpoints into the profile package.
Defined a Store interface which includes all the used BoltDB methods.
Moved the BoltDB implementation into a subpackage.
2017-12-09 16:50:10 -05:00
Victor Vrantchan
ce6e18f18d add checkout middleware (#342)
Implement a connect service middleware which allows an operator to forcefully un-enroll a device. 

Documentation: https://github.com/micromdm/micromdm/wiki/Terminating-a-Management-Relationship-with-a-device-block
2017-11-30 23:17:51 -05:00
Victor Vrantchan
49d2e582d2 move apiserver into api/server. (#340)
re-did the folder structure for the API. The client still lives in the server
packages, but will be gradually moved into api/client to remove coupling and make the APIs clearer.
2017-11-24 11:00:35 -05:00
Victor Vrantchan
91c236c8c3 organize essential APIs into platform, workflow and pkg folders (#337)
Add more logic to the way code is organized.

	/pkg -- library code not directly connected to micromdm
	/mdm -- packages meant for the services devices interract with. The MDM protocol.
	/dep -- DEP API and related packages.
	/platform -- Core APIs the server provides. Commands API, Devices API, queue, pubsub etc.
	/workflow -- Packages/API that build on top of platform. Today that's the webhook package.
		     Depending on what ends up here, the workflow folder might become its own repository.
2017-11-23 22:07:57 -05:00
Nate Walck
a3e228fbbe Added ability to store multiple servers and switch between them (#275)
Added ability to store multiple servers, switch between them and migrate old config format to new config format.

Closes #189
2017-10-30 23:37:12 -04:00