Tristan Weir
8c24601740
Update import statements to point to github.com/mozilla/mig/
2018-07-11 10:11:22 -07:00
Aaron Meihm
160387b885
loader: support loading keyring from configuration directory
2017-09-12 09:56:55 -05:00
Aaron Meihm
82fff4644a
loader: remove unused getLoggingConf()
2017-09-12 09:56:55 -05:00
Aaron Meihm
40b8bf25a1
loader: load configuration from external configuration file
2017-09-12 09:56:55 -05:00
Aaron Meihm
f8ce1c0b6d
mig-loader: cleanup built-in config and add a config parser
...
Add suitable defaults to loader built-in configuration and add a
configuration parser for upcoming changes to remove compile time
configuration requirement.
2017-09-12 09:56:55 -05:00
Aaron Meihm
de9f9f0a7a
[minor] update comments for loader TAGS value
2017-07-06 16:10:16 -05:00
Aaron Meihm
3ef62f8dc9
Merge pull request #345 from rezen/master
...
[minor] Adding option to set agent tags in external config file
2017-07-06 15:57:00 -05:00
Aaron Meihm
7a0dba62cb
[minor] add check option to loader to only validate agent is running
2017-05-26 10:23:41 -05:00
Andres Hermosilla
4cd3867cc9
[minor] Added option to set tags in mig-agent config file, contributes to #237
2017-04-27 10:07:22 -07:00
Aaron Meihm
41cb64ee21
[minor] brief startup delay on loader processing
2017-04-19 14:54:52 -05:00
Aaron Meihm
721e444a51
[minor] windows: on loader failure sleep briefly and retry
2017-04-19 13:57:02 -05:00
Aaron Meihm
c65b6049c8
[minor] add serviceTriggers stub for linux and darwin
2017-04-19 10:47:43 -05:00
Aaron Meihm
ce22ce0c64
[major] Windows support in mig-loader
2017-04-19 10:38:07 -05:00
Aaron Meihm
dcb89d9ad6
[minor] remove vendored service-go and just include this package in mig
...
service-go is being imported as a vendor package. It was originally more
generic but over time has been tweaked in a few ways for its use within
MIG. Rather then manage it as a separate package, just include it.
2017-03-27 13:19:23 -05:00
Aaron Meihm
620b1dba4c
[minor] remove symlinks from repo and replace with copies
...
The repository symlinks are not compatible if cloned to Windows devices,
just replace them with a copy.
Resolves #277
2016-11-08 13:43:12 -06:00
Aaron Meihm
32ff87d0fc
[minor] add manifest signature tests
2016-08-18 19:37:27 -05:00
Aaron Meihm
ffc302fc64
[minor] pass manifest keyring as slice to simplify testing
2016-08-18 16:17:41 -05:00
Aaron Meihm
4330cf6212
[minor] update Darwin default launchd RunInterval
...
Update from 15 minutes to 2 hours between runs.
2016-08-17 08:05:06 -05:00
Aaron Meihm
cb2a333c73
[minor] include tags with submitted loader environment
2016-08-08 13:07:56 -05:00
Aaron Meihm
e70bb04105
[major] hashed storage of api loader keys and format standardization
2016-07-10 16:24:53 -05:00
Aaron Meihm
eccd18d21f
[medium] remove transform on amqp credentials in agent configuration
2016-06-15 08:11:56 -05:00
Aaron Meihm
92ecd5eb29
[minor/bug] don't exit if file does not exist on rename
2016-04-29 16:20:22 -05:00
Aaron Meihm
aa3319211a
[medium] add loader to update manifest
2016-04-28 12:54:05 -05:00
Aaron Meihm
4ecec68909
[minor] improve validation of loader key on read
2016-04-25 16:44:17 -05:00
Aaron Meihm
12765044c4
[minor] update numeric HTTP status codes to use values from net/http
...
had a mix of both, this should clean the rest of them up.
2016-04-20 16:47:47 -05:00
Aaron Meihm
038ddc2623
[minor] set correct file mode on loader installed files
...
Closes #196
2016-04-18 21:59:28 -05:00
Aaron Meihm
cb4fdac8d7
[minor] add log file rotation for file output mode
...
Closes #204
2016-04-18 21:59:28 -05:00
Aaron Meihm
82230198ed
[minor] add better logging for loader operations
...
This just uses the mig logging framework, as a second part to this we
need to implement rotation for file output in the logging framework.
Related to #204
2016-04-18 21:59:28 -05:00
Aaron Meihm
2007961ce4
[minor] deploy interval based launchd service in loader (darwin)
...
Rather then have the installer create the launchd interval job, just do
it in the loader which simplifies the installation process and makes the
job installation operate similar to other mig components.
2016-04-18 21:59:28 -05:00
Aaron Meihm
4e7fda4c30
[minor] remove some debug lines that shouldnt be here
2016-03-24 17:08:14 -05:00
Aaron Meihm
02fa5e746d
[minor] do some basic path initialization in the loader
...
Service initialization depending on the operating system may call
programs such as initctl and expect them to be in the path.
2016-03-24 17:08:14 -05:00
Aaron Meihm
ea4cb57e6d
[minor] validate loadername is present in manifest response
2016-03-24 17:08:14 -05:00
Aaron Meihm
dfceec521e
[minor] remove agt serviceInstall flag and add agent check in loader
...
Remove the service install flag to the agent as it's not really
neccessary; the standard daemon invocation will achieve the same result.
Also add a check in loader runs to see if the agent is running even if
no changes were needed. If not, try to start the agent. This handles
cases where the loader doesnt need to make changes, but the agent is not
running for some reason, and prior the loader would not attempt to
recover this scenario.
2016-03-24 17:08:14 -05:00
Aaron Meihm
cae93f70d7
[medium] transform agent configuration with relay credentials
2016-03-24 17:08:14 -05:00
Aaron Meihm
1266188bbe
[minor] use loader key on file system if present
2016-03-24 17:08:14 -05:00
Aaron Meihm
c7d2350208
[minor] authenticate loader requests using path similar to standard api
2016-03-24 17:08:13 -05:00
Aaron Meihm
7a494e1d05
[medium] validate manifest signatures on loader
2016-03-24 17:08:13 -05:00
Aaron Meihm
eb69b2a316
[minor] update loader based on changes to manifest/api endpoint
2016-03-24 17:08:13 -05:00
Aaron Meihm
93d4adec9f
[minor] correctly handle invalid loader key indications from api
2016-03-24 17:08:13 -05:00
Aaron Meihm
d77e0707ef
[minor] use a dedicated configuration input for the loader
2016-03-24 17:08:13 -05:00
Aaron Meihm
7c897edc06
[major] Initial code for mig-loader
...
Checkpoint commit for initial revision of mig-loader related code. This
change adds functionality supporting agent auto-update using manifests
stored in the API.
2016-03-24 17:08:13 -05:00