24 Commits

Author SHA1 Message Date
Victor Vrantchan
524f9384f5 update dependencies. 2021-02-20 17:23:58 -05:00
Victor Vrantchan
bd0ffcb59f Update dependencies. 2020-11-26 14:37:14 -05:00
Victor Vrantchan
7d75f581ec Added users sessions (#696)
Added login/logout pages and respective database methods for handling users sessions.
2020-08-08 17:15:34 -04:00
Victor Vrantchan
1d698cd23e Add account management web pages (#694)
Added internal/frontend/account to implement account management code. 
Added user registration templates and handlers.
Set up a sqlite and postgres database in package main.
2020-07-25 20:34:59 -04:00
Victor Vrantchan
a8dc606beb Add CSRF middleware to all pages
The frontend server now runs a CSRF middleware on all paths except
/assets/. To enable CSRF the -csrf_key flag must be set. Instead of
enforcing the flag is set, I opted to log that CSRF is disabled. Not
running CSRF means I can test with curl.

In the future I might enforce that the flag must be set in release builds.
2020-07-22 23:22:03 -04:00
Victor Vrantchan
7e811b8e56 Added data layer.
Initial structure for database clients. Exposes a user package with
SQLite and PostgreSQL implementations.
2020-07-15 10:17:00 -04:00
Victor Vrantchan
4dfecb7113 add version package
Added version info to binary.
Added the go version dependency to read executable info.
Original version package from 654e10aaab/version
2020-07-06 07:16:17 -04:00
Victor Vrantchan
a53efd9c37 add cmd/micromdm
Added initial structure for package main.
2020-07-05 18:26:42 -04:00
Victor Vrantchan
d3aadc271d log: add trace id and http request logs.
- Added the concept of a "trace id", a unique ID which gets associated
with every log/request by default. Will eventually use
opentelemetry/opentracing, or perhaps something better... Still very
alpha quality + lots of dependencies/API surface to bring in. For the
purpose of MicroMDM, a unique identifier per request is fine.

- Added HTTP logging middleware.
2020-07-05 15:04:00 -04:00
Victor Vrantchan
8763577922 add initial structure
The main change here is initializing micromdm.io as the module. That
allows micromdm to decouple from GitHub in the long run. It also means
I'll have to set up Go vanity URLs and move or modify the website
directory.

Other changes:
- WIP logging package
- Package id with ulid
- Tools repo
2020-06-27 22:57:10 -04:00
Victor Vrantchan
9c82771e0e init v2dev 2020-06-22 13:01:31 -04:00
Jesse Peterson
2b6639093f Marshal InstallEnterpriseApplication embedded manifest (#669)
Marshal Assets of InstallEnterpriseApplication embedded manifest

Update to support SHA256, Metadata, and other related fields. Update tests to use and test for new fields.

Match JSON field names to the plist field names. The manifest field names don't follow typical CamelCase key names like normal Plists. It looks more like JSON. To avoid confusion just make them match. This makes it simpler to follow along with Apple's documentation when composing commands in JSON for the MicroMDM API. Otherwise we have to use our Go struct field names which are specific to us and nobody should need to figure that out (or really have to translate between the two). Update the test case to match.
2020-06-21 13:36:28 -04:00
Will Lewis
cdd3e3a3af upgrade go4 dependency to fix https://github.com/micromdm/go4/issues/10 (#673) 2020-06-03 09:44:59 -07:00
Victor Vrantchan
39230bbdfe replace UUID dependency (#665)
replaced the satori/uuid package which was no longer maintained

Closes #664
2020-04-23 20:00:18 -04:00
Victor Vrantchan
ea393e9804 add new values for AccountConfiguration (#627)
Updates the AccountConfiguration command with options for 10.15.
Had to update protobuf to a newer version too.
2019-11-26 15:01:49 -05:00
Victor Vrantchan
8e4e58356a deps update 2019-06-23 11:29:09 -04:00
Vinrobot
577e4c9538 Add multi-stage docker build (#587) 2019-05-31 08:47:28 -04:00
Victor Vrantchan
a230831725 update dependencies for scep (#534) 2018-10-14 13:08:21 -04:00
Victor Vrantchan
17bce22e95 add postgres device store (#531) 2018-10-13 21:05:19 -04: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
Victor Vrantchan
a1872909d1 update dep 2018-09-07 11:26:11 -04:00
Victor Vrantchan
32e0711cab update dep 2018-09-06 21:25:53 -04:00
Victor Vrantchan
87c7ced066 support Go 1.11, disallow older versions. (#499)
Updates for Go versions with module support, deprecating the need for GOPATH, and removing dep as a tool for managing dependencies.
2018-09-07 01:03:51 +00:00