29 Commits

Author SHA1 Message Date
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
Martin Friedrich
d31ccc6f8e fix typo (#799) 2022-02-04 08:53:22 -08: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
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
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
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
1d8f75e290 refactor device api (#354) 2017-12-10 10:01:03 -05:00
Victor Vrantchan
5ff82344be refactor config api (#352)
Closes #300
Closes #303
2017-12-10 00:39:04 -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
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
Victor Vrantchan
43d026c970 Add users (#258)
For #248 

Added a User DB similar to the Device DB. 
The user specification be added with the API/mdmctl commands and then referenced with a blueprint. 
If added to the blueprint, the user will be installed as an administrator during the AccountConfiguration step.
2017-10-24 20:34:41 -04:00
Victor Vrantchan
4b9b004d39 mdmctl dep-tokens provide defaults (#241)
Adds default paths to save the DEP token and public key for the
dep-tokens commands.
2017-10-15 21:44:04 -04:00
Victor Vrantchan
d352d6cc95 add package and manifest file uploads (#204)
Add support to manage package imports and generating/editing appmanifest files. 

Closes #93
2017-06-05 00:27:14 -07:00
Jesse Peterson
3bceb796c7 Adjust profiles and blueprints CLIs for get/apply commands to have consistent argument names and usage conventions (#193) 2017-05-30 06:34:19 -04:00
Victor Vrantchan
b96c506dce support writing file to stdout (#186) 2017-05-29 21:17:53 -04:00
Victor Vrantchan
e0efa31d28 implement mdmctl dep commands (#161)
adds subcommands for endpoints implemented in #160
   mdmctl get dep-devices
   mdmctl get dep-account
   mdmctl get dep-profiles
   mdmctl apply dep-profiles
  
Closes #154
2017-05-27 23:22:32 -04:00
Jesse Peterson
284f368353 Blueprint profile integration (#163)
* Integrate Profiles into Blueprints
* Listen for events and deploy blueprints for new enrollments
* Track enrolled status of (re-)enrolling devices and re-issue the Check-In Event under a different topic
* Added references to #149 and #110 for direction/conceptual background
* Closes #149 (largely implemented here)
2017-05-21 22:12:42 -07:00
Jesse Peterson
670b4399db Profile service/store, API, and mdmctl management (#156)
* Profile service/store, API, and mdmctl management
* Group methods with their types
* Centralize error checking and remove profile ID specification on upload (unnecessary)
* Move more error checking into methods
2017-05-17 00:19:26 -07:00
Jesse Peterson
ce1cb87152 Past-due reorganization of some crypto helpers into the crypto package (#148) 2017-05-01 10:14:52 -07:00
Jesse Peterson
6d5fd5e97a Blueprints apply and list/get (#145) 2017-04-26 09:56:32 -07:00
Jesse Peterson
2d90d3b69b Allow self-signed certificates with configuration option in mdmctl (#147) 2017-04-26 09:36:34 -07:00
Jesse Peterson
ad22a7a932 Move dep-token sub-command to mdmctl (#141) 2017-04-19 09:13:27 -07:00
Victor Vrantchan
0b83c65939 add config set command (#130)
update the params of ~/.micromdm/default.json using the CLI
2017-03-27 23:50:06 -04:00
Victor Vrantchan
ab5b25dd63 rename list command to get (#129)
Introduce generic "mdmctl get" subcommand which allows getting
various resource types from the server.
2017-03-27 22:46:15 -04:00