Commit Graph

89 Commits

Author SHA1 Message Date
Mosen
15b5ec5cef Add service middleware for Connect service to record last_checkin each time a device contacts the MDM
Add method UpdateDeviceCheckinByUDID to device.Datastore which updates the current checkin timestamp for a given device.
Middleware set up in main.go
2016-06-22 19:10:38 +10:00
Mosen
621f5faf02 connect service Acknowledge updates information in devices table for QueryResponses
devices datastore updates QueryResponses into json column `last_query_response`, and some other main attributes into the devices table.
add migration to support column `last_query_response`.
2016-06-22 18:46:16 +10:00
Mosen
92dbc339b3 Change function signature of connect service Acknowledge/NextCommand to thread the Context and mdmConnectRequest through. 2016-06-22 17:39:32 +10:00
Mosen
fca17af118 Drop index on serial_number, create unique constraint on both serial_number and udid to cover both DEP and OTA enrollment scenarios. 2016-06-22 17:12:39 +10:00
Mosen
2af4e101a9 Add unique constraint to devices.udid 2016-06-21 23:58:36 +10:00
Mosen
6178326b84 Support for devices with IOS <9, changed authenticate query from serial_number to udid. 2016-06-21 23:53:28 +10:00
Mosen
15b08d4a78 Remove UDID length checking as iOS devices report a different UDID format than macOS devices. 2016-06-21 23:14:38 +10:00
Victor Vrantchan
473b19f57b update dependencies 2016-06-20 09:41:20 -04:00
Mosen
a09ddfca97 Remove unnecessary comments. 2016-06-18 15:21:37 +10:00
Mosen
454ce1bcdd Fix glide lock empty name for buford. No idea why it was made empty. 2016-06-18 15:18:09 +10:00
Mosen
0633aeafef Remove migrate functions from device/datastore and workflow/datastore
Add migrations into main (very messy indeed)
Fix bizarre glide dependency disappearing.
2016-06-18 15:05:38 +10:00
Mosen
5896d8ca90 Provide down migrations. 2016-06-17 23:30:48 +10:00
Mosen
678ef99ce2 Add dependency gomigrate.
Extract create statements into individual migrations.
2016-06-17 23:09:54 +10:00
Victor Vrantchan
9e56e1254a pin bufford until I find the time to update it 2016-06-14 10:30:15 -04:00
Victor Vrantchan
0de69beb54 update dependencies 2016-06-14 10:15:47 -04:00
Mosen
25b75878a7 docker-compose-v2 uses dev Dockerfile (testing CORS middleware)
glide update
2016-06-14 10:15:47 -04:00
Mosen
a634e8c111 Add dependency on CORS middleware.
Add flag --cors-origin (MICROMDM_CORS_ORIGIN) for specifying a single CORS domain.
Add CORS middleware to mux handlers.
2016-06-14 10:15:47 -04:00
Mosen
7515607c5c Update postgres connection URL 2016-06-12 14:13:14 +10:00
Mosen
4ffac44686 Add Docker Compose v2 format for local micromdm containers 2016-06-12 13:48:15 +10:00
Victor Vrantchan
38fe930f30 check vendor folder in 2016-06-07 15:18:07 -04:00
Victor Vrantchan
5ba8ef5e42 add release to dockerfile 2016-05-23 20:30:49 -04:00
Victor Vrantchan
46fe874292 bump version v0.1.0.1-dev 2016-05-23 20:21:00 -04:00
Victor Vrantchan
30e1880cd8 add static build tag to release script 2016-05-23 20:17:51 -04:00
Victor Vrantchan
2a592078aa remove extra arg 2016-05-20 16:23:15 -04:00
Pepijn Bruienne
e92dfc6cd3 Add env var key for DEP_USE_DEPSIM and correct DEP_ACCESS_SECRET. 2016-05-20 14:58:06 -04:00
Victor Vrantchan
275f22549e typoo 2016-05-19 22:30:09 -04:00
Victor Vrantchan
4560f1b5ea is not 2016-05-19 21:48:18 -04:00
Victor Vrantchan
d73c7859fd words 2016-05-19 21:46:18 -04:00
Victor Vrantchan
157f1dba47 whitespace 2016-05-19 21:44:42 -04:00
Victor Vrantchan
2de3a89a8a add more verbose build instructions 2016-05-19 21:42:05 -04:00
Victor Vrantchan
0c124a96a7 update readme and dockerfile v0.1.0.0-dev 2016-05-18 09:51:18 -04:00
Victor Vrantchan
f980bf1658 update readme 2016-05-18 08:56:40 -04:00
Victor Vrantchan
ec29b04eec clear empty flags 2016-05-18 08:30:45 -04:00
Victor Vrantchan
0de875ed56 add release script 2016-05-18 00:28:27 -04:00
Victor Vrantchan
7ce47606a2 update deps 2016-05-18 00:12:00 -04:00
Victor Vrantchan
dd303eb798 add package repo flag 2016-05-17 23:55:12 -04:00
Victor Vrantchan
6367ee2367 add dep endpoint 2016-05-17 23:42:22 -04:00
Victor Vrantchan
ce131abf52 add push endpoint 2016-05-17 17:37:52 -04:00
Victor Vrantchan
d2589d60c9 update gitignore 2016-05-17 14:13:42 -04:00
Victor Vrantchan
1141ef3f80 connect service 2016-05-17 14:11:59 -04:00
Victor Vrantchan
ce0f988b95 clean up checkin service 2016-05-17 12:12:50 -04:00
Victor Vrantchan
405fbdc68e add save method 2016-05-17 10:39:21 -04:00
Victor Vrantchan
f81bc3c0c2 clean up command service 2016-05-17 09:46:01 -04:00
Victor Vrantchan
4b1d989357 return device by uuid 2016-05-17 08:47:23 -04:00
Victor Vrantchan
7137542840 filter results by UUID 2016-05-17 08:24:23 -04:00
Victor Vrantchan
e6abf1f3c4 update main 2016-05-16 18:25:00 -04:00
Victor Vrantchan
58df4a958d add list devices endpoint 2016-05-16 17:37:28 -04:00
Victor Vrantchan
4103418f55 update device datastore 2016-05-16 15:40:41 -04:00
Victor Vrantchan
9ab4fdd2e0 add delete profile endpoint 2016-05-16 11:14:39 -04:00
Victor Vrantchan
85f5270acd add some comments 2016-05-16 10:10:45 -04:00