Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogomonica/actuary
An actuary is a business professional who analyzes the financial consequences of risk.
https://github.com/diogomonica/actuary
Last synced: 30 days ago
JSON representation
An actuary is a business professional who analyzes the financial consequences of risk.
- Host: GitHub
- URL: https://github.com/diogomonica/actuary
- Owner: diogomonica
- Created: 2016-02-12T01:00:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T17:12:16.000Z (about 7 years ago)
- Last Synced: 2024-08-04T01:13:25.545Z (4 months ago)
- Language: Go
- Homepage:
- Size: 22 MB
- Stars: 76
- Watchers: 8
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-eks - actuary
README
# Actuary
[![Circle CI](https://circleci.com/gh/diogomonica/actuary.svg?style=svg)](https://circleci.com/gh/diogomonica/actuary)
> An actuary is a professional who analyzes the financial consequences of risk.
Docker's Actuary is an application that checks for dozens of common best-practices around deploying Docker containers in production. Actuary takes in a checklist of items to check, and automates the running, inspecting and aggregation of the results.
Actuary is an evolution of DockerBench, with a focus on the creation, sharing and reuse of different security profiles by the Docker security community.
Go to dockerbench.com, if you wish to view, share or create your own profiles.
To run Actuary, you simple have to provide a checklist file, or hash, and it will do the rest:
`actuary ` or `actuary -f `
Here is an example of running actuary with a checklist identified by the hash `472fd39b84593700bd27c7aa0564c72e6d321253`
```bash
# actuary 472fd39b84593700bd27c7aa0564c72e6d321253
------------------------------------------------------------------------------
Docker Actuary v1.0.0
------------------------------------------------------------------------------[INFO] 1.7 - Only allow trusted users to control Docker daemon
[INFO] * docker:x:999:diogo
[INFO] 1.11 - Audit Docker files and directories - docker-registry.service
[INFO] * File not found
[INFO] 1.14 - Audit Docker files and directories - /etc/sysconfig/docker
[INFO] * File not found
[INFO] 3.4 - Verify that docker-registry.service file permissions are set to 644
[INFO] * File not found
[PASS] 3.5 - Verify that docker.socket file ownership is set to root:root
[PASS] 3.6 - Verify that docker.socket file permissions are set to 644
```When passing a `` as input, Actuary will access dockerbench.com, download the checklist requested, and validate locally, to see if the hash of the file downloaded matches the hash provided by the console. This avoids compromise of dockerbench.com from ever providing altered profiles, as long as the `hash` that gets passed is trusted.
When using the `-f` flag, Actuary will attempt to run a local file, which should be a valid TOML file that includes the Actuary checlist you wish to run.
## Running a remote check
Actuary has the ability of running against a remote Docker api. You will need to point Actuary to the remote API, and provide your TLS credentials, in case you are using them for Authentication:
`# actuary --tlspath= --server=tcp://: `
## Running a local check
We provide convenience Dockerfiles for Actuary. You can simply checkout this directory and run:
`# docker build -t actuary .`
Running it against your Docker instance by mounting in the Docker socket:
`# docker run -v /var/run/docker.sock:/var/run/docker.sock actuary `
## Machine readable output
By default, Actuary outputs the results to the console. If you wish to parse the results using any kind of program or script, you can tell Actuary to output the results in either XML or JSON:
`# actuary --output= `