21 Commits

Author SHA1 Message Date
Jesse Peterson
9f3e04982e switch to smallstep/pkcs7 (#944) 2023-12-02 14:41:37 -08:00
Jesse Peterson
1f01f70dba Declarative Management hand-off (#882) 2023-05-02 08:54:04 -07:00
Kory Prince
3d0746f3e3 Add raw command and clear device queue endpoints (#864) 2023-04-23 14:47:42 -07:00
Jesse Peterson
ddcea1ad93 New inmem command queue (#736) 2021-10-10 12:45:09 -07:00
Kory Prince
fcf1d185fc Bootstrap Token (#781)
* Partial implementation of Bootstrap Token
Fetching the token from the db and sending it back to the client when the client asks for it ie sends the GetBootstrapTokenRequest is not implemented

Also earlier code for Bootstrap Token from commit 58c3782 "mdm: add SetBootstrapToken command." is removed

* implements rest of the bootstrap token feature - micromdm now sends bootstrap token back to the client, when client requests it

* regenerate some proto files

* use original proto generator versions
    checkin.pb.go: golang/protobuf@v1.2.0
    mdm.pb.go: gogo/protobuf@v1.3.2
    device.pb.go: golang/protobuf@v1.0.0

* cleanup syntax

* use more idiomatic naming

* clean up BootstrapToken storage

* add GetBootstrapToken test

* remove extra newline

Co-authored-by: Jesse Peterson <jessepeterson@users.noreply.github.com>

* add doc comments

Co-authored-by: Ilkka Vanhatalo <ilkka.vanhatalo@helsinki.fi>
Co-authored-by: Jesse Peterson <jessepeterson@users.noreply.github.com>
2021-10-05 10:43:46 -07:00
Jesse Peterson
4e684a40d2 Refactor MDM service to return a payload from check-ins (#764)
* Refactor MDM service to return a payload from check-ins

* Documented public methods, add documentation to main service interface

* Remove interface-implementing comments
2021-07-01 16:13:39 -07: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
Jesse Peterson
c6db60ce61 UDID Cert Auth warn only (#643) 2020-08-29 11:27:34 -07:00
Graham Gilbert
1b755888f4 Option to validate only CA and Issuer rather than entire SCEP cert (#700) 2020-08-13 18:30:27 -07:00
Jesse Peterson
9e65297e46 dynamic SCEP challenge support (#642) 2020-02-20 16:51:17 -08:00
Jesse Peterson
05af177cf6 Add option to opt out of saving device command history. (#640) 2020-01-10 10:55:07 -08:00
Brett Demetris
b50412f80a variable scep client validity (#577)
* variable scep client validity

* update changelog
2019-03-04 08:35:00 -05:00
Victor Vrantchan
1593659382 add proper logger to queue (#530) 2018-10-13 14:25:11 -04:00
Victor Vrantchan
b511b426e3 remove apns flags (#528)
Removed deprecated APNS flags from startup. The preferred method has been to use `mdmctl mdmcert upload`.

Closes #417
2018-10-12 08:19:34 -04:00
Danny Lockard
f45a0469f0 Some cleanup based on goreportcard linters (#517) 2018-10-02 14:54:10 -04:00
Jesse Peterson
d150d031e8 UDID/device certificate authentication (v.2) (#429)
udid-cert auth v.2. refactor udidauth and cert verification to be MDM service middleware
2018-09-11 20:25:49 -07: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
Jesse Peterson
72487f8c1e Remove SCEP CA certificate from both being stored on disk and being included in the enrollment profile (#490)
The SCEP CA certificate is not needed to establish trust between the client and MDM server. Thus including it in the enrollment profile is unnecessary. Separately, and since we don't need it, we can clean up the enrollment service a little by not reading the certificate from disk. Finally — just don't write it out to disk at all. Its usefulness on disk (for the sake of being in its own file) is debatable.
2018-08-23 10:20:47 -04:00
Jesse Peterson
d7fde4f891 Add back push worker init (#473) 2018-07-26 17:17:55 -07:00
Mike Arpaia
d7f07bb022 Move the server type to it's own package (#458) 2018-07-13 21:40:13 +00:00