Commit Graph

8 Commits

Author SHA1 Message Date
CptOfEvilMinions
626429c38e
Added support to read jwt and mysql password from a file (#141)
The current implementation of FleetDM doesn't support Docker secrets for supplying the MySQL password and JWT key. This PR provides the ability for a file path to read in secrets. The goal of this PR is to avoid storing secrets in a static config or in an environment variable. 

Example config for Docker:
```yaml
mysql:
  address: mysql:3306
  database: fleet
  username: fleet
  password_path: /run/secrets/mysql-fleetdm-password
redis:
  address: redis:6379
server:
  address: 0.0.0.0:8080
  cert: /run/secrets/fleetdm-tls-cert
  key: /run/secrets/fleetdm-tls-key
auth:
  jwt_key_path: /run/secrets/fleetdm-jwt-key
filesystem:
  status_log_file: /var/log/osquery/status.log
  result_log_file: /var/log/osquery/result.log
  enable_log_rotation: true
logging:
  json: true
```
2021-01-04 07:58:43 -08:00
CptOfEvilMinions
f735317f07
Updated .dockerignore and added non-root user to Dockerfile (#143)
Running applications as root (default Docker user) is not a good security practice. The goal of this PR is to run the Fleet application as a non-root user. 

For development you can still access the container as root with the following command: `docker run -it --user=0 <fleetdm container ID> bash`
2020-12-22 08:23:17 -08:00
Zachary Wasserman
386bb8a9b9
Add fleetctl to generated Docker images (#1896) 2018-08-08 16:21:49 -07:00
Zachary Wasserman
69a36a6190
Fix .dockerignore file (#1567)
An incorrect entry in the dockerignore file led to the build context not
including the necessary binary.
2017-10-17 17:23:25 -06:00
Mike Arpaia
80b082ea26 Renaming CI/Packaging things to Fleet (#1556) 2017-10-04 15:28:11 -06:00
Victor Vrantchan
a3e26b6b9a build all branches, using master as latest (#226)
* build all branches, using master as latest
Split devs and build step to cache dependencies on CI
Add dockerignore to speed up docker build
2016-09-21 20:43:48 -04:00
Mike Arpaia
2d2d667f4a Attempt to clean the codebase (#53) 2016-08-09 10:24:29 -07:00
Jason Meller
5ad7c07e0c Dockerize app (#32)
This commit adds both a Dockerfile and updates the docker-compose.yml with local mounting so that you can standup a consistent dev environment. Please view the project README for more information.
2016-08-04 11:41:18 -04:00