CLI based tools to find the secrets in docker Images
This tool use detect-secrets to find the secrets in the docker Image file system
- detect-secrets Installed
- Image that need to be scanned on your local system
- Download the binary from the release page here and put it the path
- To build locally
- Clone the repository
git clone https://github.com/JOSHUAJEBARAJ/docker-secrets.git
Build the binary
go build .
Export the Docker API Version
export DOCKER_API_VERSION=1.39
docker pull imagename:tag
docker-secrets scan <image=name>:tag
By default the below command will be executed for detect-secrets.
detect-secrets scan --all-files output
If you want to make change to the command , You can change it here
- Ability to pull the image if it is not present in the local system
- Resolve the symlink error while extracting