coguard-cli
hadolint
coguard-cli | hadolint | |
---|---|---|
10 | 25 | |
84 | 9,793 | |
- | 1.7% | |
7.8 | 7.3 | |
1 day ago | 23 days ago | |
Python | Haskell | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
coguard-cli
-
Updates to OpenTelemetry Collector Security scanner
We have recently put in an update: https://github.com/coguardio/coguard-cli
- Support for OpenTelemetry Security Configurations added to free CoGuard CLI
- Open Source Python Project to find configurations in Docker images and scan them available in PIP
-
Are there tools that tell you if you can optimize your dockerfiles?
That and even the configurations of the software installed inside the image: https://github.com/coguardio/coguard-cli
- CoGuard CLI Docker Image scanner published as Open Source
-
Configurations inside Docker images: The next (lower) level of IAC scanning we need
We published an open source CLI tool to scan configurations inside Docker images in its initial version 0.1.5: https://github.com/coguardio/coguard-cli . A more detailed blog article about it was published here: https://www.coguard.io/post/coguard-cli-docker-image-security
- Open Source CLI to scan configurations inside Docker containers.
- CoGuard CLI is published as open source to discover configurations in Docker images and scan them
-
Join our open source coguard-cli project for Docker image auto discovery and security
We discovered that many tools are not catching common vulnerabilities, so we developed CoGuard. From there, we discovered that many people did not know a) if they had a specific configuration file or not and b) where to find it . So we realized pretty quickly, that we needed to back peddle from our big dream and work on a smaller, open source project that focuses on auto discovery. We chose Docker images as a starting point, because our software has uncovered a vast amount of vulnerabilities in out of the box Docker images-showing us that this area is largely underserved by current tools. Why open source? Because we want to build a community and build many more products with community input that help us all build stronger, more stable infrastructures. Too often we are fighting fires, that we don't even have the time to build new solutions or innovate-so we have gotten this project started and are looking for others to join in and contribute! https://github.com/coguardio/coguard-cli
-
Published the CoGuard CLI as Open Source
Link to repo: https://github.com/coguardio/coguard-cli
hadolint
-
Cloud Security and Resilience: DevSecOps Tools and Practices
3. Hadolint: https://github.com/hadolint/hadolint Hadolint is a Dockerfile linter that helps you build best practice Docker images, reducing vulnerabilities in your container configurations.
- Dockerfile Linter
-
Writing a Minecraft server from scratch in Bash (2022)
To skip the "move your scripts to standalone files" step some devs don't like, consider something like https://github.com/hadolint/hadolint which runs Shellcheck over inline scripts within Containerfiles.
-
I reduced the size of my Docker image by 40% – Dockerizing shell scripts
This is neat :)
I love going and making containers smaller and faster to build.
I don't know if it's useful for alpine, but adding a --mount=type=cache argument to the RUN command that `apk add`s might shave a few seconds off rebuilds. Probably not worth it, in your case, unless you're invalidating the cached layer often (adding or removing deps, intentionally building without layer caching to ensure you have the latest packages).
Hadolint is another tool worth checking out if you like spending time messing with Dockerfiles: https://github.com/hadolint/hadolint
-
Top 10 common Dockerfile linting issues
With Depot, we make use of two Dockerfile linters, hadolint and a set of Dockerfile linter rules that Semgrep has written to make a bit of a smarter Dockerfile linter.
-
hadolint - Dockerfile linter
# Download hadolint wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 # Download SHA256 checksum wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64.sha256 # Validate the checksum sha256sum -c hadolint-Linux-x86_64.sha256 # Make the file executable chmod + ./hadolint-Linux-x86_64 # Rename the file mv hadolint-Linux-x86_64 hadolint
- Haskell Dockerfile Linter
-
Is adding a USER best practice?
The most common linter I've seen and used it Hadolint, which does: https://github.com/hadolint/hadolint/wiki/DL3002 I didn't bother checking to see if alternatives also support this as well though.
-
Checkmake: Experimental Linter/Analyzer for Makefiles
Some discussion on that here:
https://github.com/koalaman/shellcheck/issues/58
The hadolint project does shell checking for Dockerfiles and it uses shellcheck:
https://github.com/hadolint/hadolint
So the approach is definitely feasible, but you do need a new project and probably it needs to be written in Haskell.
-
Dokter: the doctor for your Dockerfiles
how does this compare to something like hadolint?
What are some alternatives?
Lean and Mean Docker containers - Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
trivy - Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
dive - A tool for exploring each layer in a docker image
dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
docker-bench-security - The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production.
stan - 🕵️ Haskell STatic ANalyser
hlint - Haskell source code suggestions
grype - A vulnerability scanner for container images and filesystems
ormolu - A formatter for Haskell source code
leksah - Haskell IDE
bisect-binary - Tool to determine relevant parts of binary data
podman - Podman: A tool for managing OCI containers and pods.