Commit Graph

103 Commits

Author SHA1 Message Date
Mosen
79acadd3a2 Fix unique constraint in query fetchDevicesDEP 2016-06-24 14:32:37 +10:00
Victor Vrantchan
4356d9e053 update deps 2016-06-23 08:29:52 -04:00
Mosen
2d08b9388e This time with the correct underlying Response struct in the connect endpoint. 2016-06-23 22:00:37 +10:00
Mosen
80aedab989 Converting request to mdm.Response was a bad idea. panic.
Update statement to reflect new composite key of udid and serial_number.
2016-06-23 17:33:14 +10:00
Mosen
3da3a3555e Remove unused packages. 2016-06-23 14:09:10 +10:00
Mosen
5f73d44d8e Cast request object to mdm.Response in connect endpoint.
use devices.Save in ackQueryResponses
Remove methods UpdateDeviceQueryResponseByUDID and UpdateDeviceCheckinByUDID
Add message to devices.Save switch block for updating Query Responses.
2016-06-23 14:08:34 +10:00
Mosen
a89efaa2c0 Ditch checkin middleware.
Add QueryResponses to Device struct.
Move checkin update to ackQueryResponses.
2016-06-23 13:55:39 +10:00
Mosen
985db5752e Fix declaration of err variable in connect.Service.Acknowledge 2016-06-23 13:46:24 +10:00
Mosen
7ec8f51f70 Fix wrong method signature in connect.Service, thanks groob. 2016-06-23 13:40:51 +10:00
Mosen
bc3cded620 Add device name to result in devices list.
Fix default and not null constraints on device_name field.
2016-06-22 20:09:52 +10:00
Mosen
5c6daeda6e Add device name field to Device struct. 2016-06-22 20:02:48 +10:00
Mosen
3d08a855e8 Add migrations for fields last_checkin and device_name. 2016-06-22 20:01:42 +10:00
Mosen
68e86c16b4 Devices endpoint reports field last_checkin for each device. 2016-06-22 19:25:00 +10:00
Mosen
4d744fef03 Go fmt
Add fields returned by the management devices endpoint.
2016-06-22 19:13:14 +10:00
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