Commit Graph

  • 7afb826135 add get command to fetch resources Victor Vrantchan 2017-03-18 20:05:34 +00:00
  • 5754f9e77b Rename “apes-certificate" to "apns-cert" to both make it shorter to type and to be consistent with the "tls-cert" switch Jesse Peterson 2017-03-18 14:00:37 -07:00
  • ac46c3c56b add depsync package Victor Vrantchan 2017-03-18 04:52:04 +00:00
  • 1345bfe4f9 verify that path to save token exists Victor Vrantchan 2017-03-18 17:01:17 +00:00
  • 4dcc18907d Implement deptoken sub-command helper. Generates self-signed cert for working with DEP & decrypts deploy.apple.com tokens. Jesse Peterson 2017-03-18 02:18:39 -07:00
  • 952fd560df Rename attribute to cover both HTTPS and HTTP (with different behavior for HTTP) Jesse Peterson 2017-03-17 21:01:13 -07:00
  • 3b98596655 Add listen address options for both HTTPS and HTTP redirect servers Jesse Peterson 2017-03-17 20:50:37 -07:00
  • f9752ffcc3 graceful Victor Vrantchan 2017-03-17 20:13:42 +00:00
  • e6fa0b464f update to go-kit 0.4.0 Victor Vrantchan 2017-03-17 19:10:32 +00:00
  • 75cc15e787 set default le cert cache path Victor Vrantchan 2017-03-17 18:37:23 +00:00
  • 336c8fbf92 refactor main to use subcommands Victor Vrantchan 2017-03-17 18:25:21 +00:00
  • 860a85f3d6 add scep logger Victor Vrantchan 2017-03-17 16:21:31 +00:00
  • af8e19aeac add ACME certificate support Victor Vrantchan 2017-03-16 05:51:42 +00:00
  • 3caac17a66 Read me cleanup (#67) v0_archive Elliot Jordan 2017-02-07 06:08:53 -08:00
  • 28219fcec2 first commit in new package Victor Vrantchan 2017-01-25 13:30:53 -05:00
  • 986922aa90 move DEP enrollment to new service (#61) Victor Vrantchan 2016-11-19 18:43:31 -05:00
  • 0dc1a18eea Allow passing in PEM MDM cert and key (#60) Jesse Peterson 2016-11-16 15:38:45 -08:00
  • 4b867f1d04 Allow passing in PEM MDM cert and key (#60) Jesse Peterson 2016-11-16 15:38:45 -08:00
  • fe50027f15 refactor command service (#50) Victor Vrantchan 2016-11-13 22:26:42 -05:00
  • 0c92a4ad8b add utility package for establishing db driver connections (#51) Victor Vrantchan 2016-11-13 20:02:54 -05:00
  • 08528c207e refactor package main (#49) Victor Vrantchan 2016-11-13 15:50:36 -05:00
  • 2751a79c86 refactor package main (#49) v0.1.2.0-dev Victor Vrantchan 2016-11-13 15:50:36 -05:00
  • 8e3331f7eb add dependencies for scpe/bolt (#48) v0.1.0.2-dev Victor Vrantchan 2016-11-11 19:03:58 -05:00
  • fef7b6ec00 SCEP request subject is configurable and you can use it with templated SCEP variables like %SerialNumber% etc. (#45) mosen 2016-11-11 14:00:08 +11:00
  • 7b11aa8994 SCEP request subject is configurable and you can use it with templated SCEP variables like %SerialNumber% etc. (#45) mosen 2016-11-11 14:00:08 +11:00
  • 9792031ef3 Feature/dep optional (#44) mosen 2016-11-11 13:59:44 +11:00
  • ab68bddbaf update vendor dependencies (#46) Victor Vrantchan 2016-11-10 21:47:29 -05:00
  • c5530f2053 Remove totally unused service test. (#43) mosen 2016-11-06 21:38:46 +11:00
  • 8c42e2d7e1 Response testing 1 (#42) mosen 2016-11-06 21:15:46 +11:00
  • dfb757db8a FIX: CA roots are not correctly being verified in main.go. Left the warning in but removed os.Exit until we can determine a cross-platform method of evaluating certificate trust. (#41) mosen 2016-10-25 21:59:25 +11:00
  • c006f9cc75 SCEP Subject had incorrect nesting of arrays, which allowed macOS to ignore it, but iOS would refuse enrolment. (#40) mosen 2016-10-25 17:21:32 +11:00
  • 4742bb7bb3 SCEP Subject had incorrect nesting of arrays, which allowed macOS to ignore it, but iOS would refuse enrolment. (#40) mosen 2016-10-25 17:21:32 +11:00
  • 8072ae8c9d Empty consent text in enroll profile was generating an invalid plist key. (#39) mosen 2016-10-25 14:08:45 +11:00
  • d56e06f992 Empty consent text in enroll profile was generating an invalid plist key. (#39) mosen 2016-10-25 14:08:45 +11:00
  • 58c44cd7f3 Feature/certificate expiry warnings (#29) mosen 2016-10-25 14:08:29 +11:00
  • 1a42fda576 Add new travis CI configuration (#38) mosen 2016-10-25 14:07:58 +11:00
  • 3552628379 Update missing time.Time from pointer to value fields. (#37) Victor Vrantchan 2016-10-13 10:07:35 -04:00
  • e4ab7e0b17 Hotfix/last check in (#34) mosen 2016-10-12 16:20:48 +11:00
  • 1cd3a459eb update deps (#32) Victor Vrantchan 2016-10-11 23:28:09 -04:00
  • d698a96259 Hotfix/enroll payloadscope (#31) mosen 2016-10-12 12:07:52 +11:00
  • 3991374503 Hotfix/enroll payloadscope (#31) mosen 2016-10-12 12:07:52 +11:00
  • 8c192d456d Feature/authenticate model update (#30) mosen 2016-10-12 11:52:51 +11:00
  • 30b658f497 Clean up on the read me file (#27) Elliot Jordan 2016-10-10 16:28:18 -07:00
  • 25dd485b13 update dependencies to latest version (#26) Victor Vrantchan 2016-10-07 10:41:39 -04:00
  • bfdbc77a3a Non plural packages (#25) mosen 2016-10-07 12:35:06 +11:00
  • 66dc2beb7f Certificates statements (#24) mosen 2016-10-07 12:26:05 +11:00
  • 4f02ef4e22 Fix comma in mdmEnrollResponse (#23) mosen 2016-10-07 12:20:16 +11:00
  • aa0a31bec2 Fix comma in mdmEnrollResponse (#23) mosen 2016-10-07 12:20:16 +11:00
  • 487f6826b0 Items that were omitted from cherry picking of installed_certificates_list (#22) mosen 2016-10-07 11:57:04 +11:00
  • 9d970ce039 installed_certificates #14 plus conflict resolution (#21) mosen 2016-10-07 11:34:50 +11:00
  • b3e97c53b2 installed_certificates #14 plus conflict resolution (#21) mosen 2016-10-07 11:34:50 +11:00
  • bd5d996d73 Commands management plus fixes (#20) mosen 2016-10-07 11:17:47 +11:00
  • ca80a23a2a Installed application list (#18) mosen 2016-10-07 10:55:12 +11:00
  • 397087a800 Installed application list (#18) mosen 2016-10-07 10:55:12 +11:00
  • 85fff70046 Enrollment (#13) mosen 2016-10-07 10:13:26 +11:00
  • 2015126c65 Enrollment (#13) mosen 2016-10-07 10:13:26 +11:00
  • 8b526c6aaa Add column unlock_token (#19) mosen 2016-10-07 10:00:00 +11:00
  • a332f3cb75 Add warning when CORS feature is disabled. (#17) mosen 2016-10-07 09:59:15 +11:00
  • a9959f7e30 Add depsim/vppsim containers. (#15) mosen 2016-10-07 09:58:40 +11:00
  • c15d7a9611 Make public facing URL and SCEP server URL configurable. Degrade gracefully to disabling enrollment endpoint if either URL or SCEP url are not provided. Mosen 2016-07-01 10:24:44 +10:00
  • 98df3c11a9 Make public facing URL and SCEP server URL configurable. Degrade gracefully to disabling enrollment endpoint if either URL or SCEP url are not provided. Mosen 2016-07-01 10:24:44 +10:00
  • 445f4d2e70 Add cli flag tls-ca-cert and environment var MICROMDM_TLS_CA_CERT to specify a CA certificate which will be included in the enrollment profile. This is handy if you are using self signed certificates and you need to establish a CA trust. Mosen 2016-06-29 16:29:19 +10:00
  • 49fa779d1c Add cli flag tls-ca-cert and environment var MICROMDM_TLS_CA_CERT to specify a CA certificate which will be included in the enrollment profile. This is handy if you are using self signed certificates and you need to establish a CA trust. Mosen 2016-06-29 16:29:19 +10:00
  • 7c61d86534 Parse APNS Topic from push certificate in enroll service constructor. Mosen 2016-06-28 22:41:00 +10:00
  • 3ca4e954e8 Newer clients provide DeviceName in their checkin message, so this has been added to the checkin service. Mosen 2016-06-29 16:06:35 +10:00
  • cb9bdcae37 Fix error with plist encoding by dereferencing nested payloads. Add correct header for enrollment profile. Enrollment works with micromdm/scep server! Mosen 2016-06-28 22:03:45 +10:00
  • e2492daddc Parse APNS Topic from push certificate in enroll service constructor. Mosen 2016-06-28 22:41:00 +10:00
  • a87a84b525 More consistent naming of Payloads. Mosen 2016-06-28 21:17:47 +10:00
  • 82f657ef6a Fix error with plist encoding by dereferencing nested payloads. Add correct header for enrollment profile. Enrollment works with micromdm/scep server! Mosen 2016-06-28 22:03:45 +10:00
  • de3726baad Fix several compilation errors regarding syntax. Mosen 2016-06-28 20:32:30 +10:00
  • 2cac88f6e4 More consistent naming of Payloads. Mosen 2016-06-28 21:17:47 +10:00
  • d1718b85de Add endpoint and transport for Enroll service. Mosen 2016-06-28 19:41:28 +10:00
  • a68c3e0014 Fix several compilation errors regarding syntax. Mosen 2016-06-28 20:32:30 +10:00
  • 8c6a5a489a Fleshed out a bit more of the enroll service. Mosen 2016-06-27 21:03:51 +10:00
  • 19de87db9a Add endpoint and transport for Enroll service. Mosen 2016-06-28 19:41:28 +10:00
  • 31cb8f47cf Add MDM payload Add NewPayload method Profiles and payloads created by their factory methods automatically generate a UUID Add go-kit service for enroll. Mosen 2016-06-26 23:44:06 +10:00
  • 9ee2d63ded Fleshed out a bit more of the enroll service. Mosen 2016-06-27 21:03:51 +10:00
  • a745a7596f Begin adding /mdm/enroll service. Mosen 2016-06-26 23:10:32 +10:00
  • afa4cac017 Add MDM payload Add NewPayload method Profiles and payloads created by their factory methods automatically generate a UUID Add go-kit service for enroll. Mosen 2016-06-26 23:44:06 +10:00
  • 948a1d2e6b Begin adding /mdm/enroll service. Mosen 2016-06-26 23:10:32 +10:00
  • 61509d7e75 Handle errors when scanning serial number and udid for insertion when device checks in. Update udid when device checks in. Mosen 2016-06-29 20:09:50 +10:00
  • 198b3b4720 Create type JsonNullString to allow NullString marshalling to JSON value. Mosen 2016-06-29 19:44:37 +10:00
  • ee6107b52f Use sql.NullString where possible to allow us to put unique constraints on both UDID and SerialNumber Remove default of empty string '' from udid column. Mosen 2016-06-29 19:01:26 +10:00
  • b35d697ad9 Add a few more statements to the up and down migrations for the new unique constraints so that the data will fit the constraints if up or downgraded. Use sql.NullString for UDID and SerialNumber. Mosen 2016-06-28 20:08:49 +10:00
  • 2c388edc11 Go back to unique indexes on serial number and udid. Will use NullString on those struct columns. Mosen 2016-06-28 19:59:35 +10:00
  • 0bbdb50415 Change type assertion in DEPProfileStatus.Scan() to string. Mosen 2016-06-26 23:11:36 +10:00
  • 80eacdbfac Add parameter "separator" to addWhereFilters() Mosen 2016-06-26 23:05:34 +10:00
  • 586ba922b3 Do not capitalize errors. Mosen 2016-06-26 22:51:54 +10:00
  • 9a364d5c86 Use device datastore .Devices() method instead of GetDeviceByUDID. Query by both device.SerialNumber and device.UDID join WHERE conditions using the OR logical operator. I can't determine whether this has an impact elsewhere. Mosen 2016-06-25 22:19:39 +10:00
  • d69becfd53 Add UDID as a filter to device datastore Devices() so that we can hopefully combine UDID with SerialNumber and abandon GetDeviceByUDID in Acknowledge. Mosen 2016-06-25 22:09:53 +10:00
  • e0aa275058 Actually include some fields in ackQueryResponses when fetching a Device to fix device query response update. Mosen 2016-06-25 22:02:47 +10:00
  • 00c8c9247f Set LastQueryResponse to byte slice. Marshal LastQueryResponse to JSON in connect.Service Mosen 2016-06-24 16:26:20 +10:00
  • 0c7a80b720 Omit last_query_response from changes. Mosen 2016-06-24 15:31:49 +10:00
  • 7388e1c9be Add update statements so existing devices dont break the not null constraints. Mosen 2016-06-24 15:02:34 +10:00
  • 85ba80a03f Add default values for several new fields added to devices. Mosen 2016-06-24 14:59:18 +10:00
  • 79acadd3a2 Fix unique constraint in query fetchDevicesDEP Mosen 2016-06-24 14:32:37 +10:00
  • 4356d9e053 update deps Victor Vrantchan 2016-06-23 08:29:52 -04:00
  • 2d08b9388e This time with the correct underlying Response struct in the connect endpoint. Mosen 2016-06-23 22:00:37 +10:00
  • 80aedab989 Converting request to mdm.Response was a bad idea. panic. Update statement to reflect new composite key of udid and serial_number. Mosen 2016-06-23 17:33:14 +10:00
  • 3da3a3555e Remove unused packages. Mosen 2016-06-23 14:09:10 +10:00