Zack Mullaly
08541a35f5
Fixed a couple translation errors
2018-07-25 12:19:08 -04:00
Zack Mullaly
f43e411de0
Run tests with Go 1.10
2018-07-25 12:02:32 -04:00
Zack Mullaly
35e2852a3c
Verify the contents of /etc/os-release and return a suitable ident
2018-07-25 12:02:19 -04:00
Zack Mullaly
a6f4686ce5
Merge branch 'master' into os-release-ident
2018-07-24 15:47:18 -04:00
Zack Mullaly
75d9d12113
Merge pull request #457 from tristanweir/remove-mig-ninja
...
Replace mig.ninja references and import statements
2018-07-24 15:43:51 -04:00
Tristan Weir
3f41dd9a47
Merge branch 'master' into remove-mig-ninja
2018-07-18 16:51:53 -07:00
Zack Mullaly
dc31522066
Fixing some compilation errors that didn't show up in 'make test' for some reason
2018-07-18 16:10:19 -04:00
Zack Mullaly
bb9abd0fe1
We want to return the first ident we find, not fail at the first failure
2018-07-18 15:58:46 -04:00
Zack Mullaly
cf84449682
We need a default return case in the case that none of the ident methods work
2018-07-18 15:56:25 -04:00
Zack Mullaly
575571615e
Whoops; Go functions don't have implicit returns
2018-07-18 15:50:34 -04:00
Zack Mullaly
7c02b046ef
Merge branch 'master' into os-release-ident
2018-07-18 15:15:37 -04:00
Zack Mullaly
a83b0cf290
Merge pull request #456 from mozilla/client-error
...
We had two error handlers for checking if a request to the MIG API fa…
2018-07-16 13:10:27 -04:00
Zack Mullaly
713688dcf3
We had two error handlers for checking if a request to the MIG API failed but were losing information in the first case, so I removed it
2018-07-16 13:00:01 -04:00
Tristan Weir
c46b0d0926
Update scripts and docs to point to github.com/mozilla/mig
2018-07-11 10:23:51 -07:00
Tristan Weir
0a8c838856
Update occurrences outside of import statement
2018-07-11 10:14:54 -07:00
Tristan Weir
8c24601740
Update import statements to point to github.com/mozilla/mig/
2018-07-11 10:11:22 -07:00
Zack Mullaly
7ee3870d89
Forgot to add a struct field; not sure why builds don't seem to fail
2018-07-10 13:43:12 -04:00
Zack Mullaly
7b2fa59905
Cleaning up the functions we use to populate an agent context with the host's ident and init method
2018-07-10 13:41:25 -04:00
Zack Mullaly
705acd954f
Log errors calling getOSRelease()
2018-07-10 13:14:01 -04:00
Zack Mullaly
2471c40785
Add a check to the ident finder to read /etc/os-release in case /etc/issue only contains \S on the first line
2018-07-06 15:59:52 -04:00
Zack Mullaly
e8eb90a137
Manually add the extra information to action expiration timestamps that get formatted into strings
...
This makes the action signing code work with older and newer versions of
the Go compiler.
2018-04-06 10:49:13 -04:00
Zack Mullaly
38b3279af0
Revert "Use CheckArmoredDetachedSignature to successfully verify signatures"
...
Doing this caused new errors to crop up in other places.
Investigating the possibility that this might be a GPG version thing.
This reverts commit b79e52c8c6
.
2018-03-26 18:14:47 -04:00
Zack Mullaly
b79e52c8c6
Use CheckArmoredDetachedSignature to successfully verify signatures
2018-03-26 17:30:06 -04:00
Zack Mullaly
9947461750
Since we want two newlines being printed here, let's use fmt.Printf so the compiler doesn't complain abpout 'redundant newlines'
2018-02-28 09:23:00 -05:00
Zack Mullaly
7c929b22fa
Fixed format string errors that were blocking make test
2018-02-27 15:15:02 -05:00
Aaron Meihm
895c61045a
Merge pull request #420 from bjstrange/patch-1
...
[minor] corrected windows path display
2018-01-12 16:51:00 -06:00
bjstrange
7f500f5c42
[minor] corrected windows path display
2018-01-12 10:06:47 -05:00
Julien Vehent [:ulfr]
a8508ed9a2
Merge pull request #413 from netantho/patch-2
...
Delete deprecated mailing list from README
2017-11-28 11:45:11 -05:00
Anthony VEREZ
35218939a8
Delete deprecated mailing list from README
...
http://list.mig.ninja/listinfo/list
Service Unavailable
2017-11-28 10:52:56 +08:00
Aaron Meihm
431b3a536b
Merge pull request #412 from ameihm0912/makefile-clean
...
remove nonexistent clean-agent dependency from clean target
2017-11-06 16:06:54 -06:00
Aaron Meihm
6fcfc93764
remove nonexistent clean-agent dependency from clean target
2017-11-06 16:05:44 -06:00
Aaron Meihm
c5a5dc38a1
Merge pull request #411 from ameihm0912/remove-additional-render
...
remove geo-ip and compliance report modes
2017-10-26 16:48:01 -05:00
Aaron Meihm
347cd476cd
remove geo-ip and compliance report modes
...
This functionality is not extensively used.
2017-10-26 16:32:13 -05:00
Aaron Meihm
910338e57d
Merge pull request #410 from ameihm0912/mig-pkg-style
...
style related code cleanup in mig top-level package
2017-10-26 16:19:34 -05:00
Aaron Meihm
034de6f3da
style related code cleanup in mig top-level package
...
Fix a bunch of godoc issues, removes exchange and queue names which were
no longer being utilized, and the GenB32ID function which was also not
being used. Renames some constant values to remove mixture of all caps
and underscores in constants.
2017-10-26 15:55:48 -05:00
Aaron Meihm
d4edb097d7
Merge pull request #409 from ameihm0912/readme-testing
...
update README, remove references to standalone install script
2017-10-25 16:36:04 -05:00
Aaron Meihm
b9cbbe1d77
update README, remove references to standalone install script
...
The standalone install script is no longer present in the repository and
has been replaced by the docker image; also update the docker section.
2017-10-25 16:24:54 -05:00
Aaron Meihm
bf45a6e56f
Merge pull request #366 from stephenma064/patch-1
...
Fix client.go to throw real error when configuration file is incorrect format
2017-10-25 16:00:30 -05:00
Aaron Meihm
78e95353d1
Merge branch 'master' into patch-1
2017-10-25 15:15:21 -05:00
Aaron Meihm
01999c0727
Merge pull request #408 from ameihm0912/issue-394-acl
...
simplify ACL type and remove Permission, fix authorization bypass
2017-10-25 15:13:15 -05:00
Aaron Meihm
1aef3caaa5
add tests around Action.VerifyACL
2017-10-25 14:19:07 -05:00
Aaron Meihm
be74b4d61d
return error in Action.VerifySignatures if action contains no signatures
2017-10-25 14:19:07 -05:00
Aaron Meihm
8a1194722d
simplify ACL type and remove Permission, fix authorization bypass
...
This change removes the Permission type, and modifies ACL to simply be a
map of a given module name and the authorization specification.
It was previously stored as a list of ACL types, with each type being a
map which was not required.
This also fixes a bug in authorization, where an action would be
authorized if the first operation validated against the ACL. This means,
it was possible if an action contained more than one operation, an
investigator could be authorized for execution if the first module
matched the ACL. Note that for this to happen, the first operation
checked would need to be authorized and in general deployments this does
not have a significant impact.
Resolves #394
2017-10-25 14:19:07 -05:00
Aaron Meihm
d39d7435f8
Merge pull request #407 from ameihm0912/remove-worker
...
remove remaining worker related code
2017-10-17 15:06:11 -05:00
Aaron Meihm
83bd3ee7f6
remove remaining worker related code
...
Removes remaining code related to MIG worker components, including the
exchange elements in the scheduler and event submission. The worker
functionality is no longer supported.
2017-10-17 14:48:07 -05:00
Aaron Meihm
fca3af3a49
Merge pull request #406 from ameihm0912/multidemo
...
docker compose configuration
2017-10-16 16:42:07 -05:00
Aaron Meihm
8c53240bb9
add docker-compose based demo environment
...
The existing MIG docker image can be used as a standalone demo; this
change extends the image to be used in a compose configuration, creating
separate containers for each component.
The compose environment is intended to potentially be used for
deployments other than a demo, by selecting individual components
intended for execution and configuring these components using the
environment.
2017-10-16 16:30:08 -05:00
Aaron Meihm
097d405e06
update gitignore, no need to explicitly ignore cfg files
2017-10-15 22:30:20 -05:00
Aaron Meihm
497c5b687e
Merge pull request #404 from ameihm0912/agtid-path
...
agent: use path.Join instead of string concat to construct agtid/ok
2017-10-15 15:57:17 -05:00
Aaron Meihm
05d2e2ccdf
agent: use path.Join instead of string concat to construct agtid/ok
2017-10-15 15:47:56 -05:00