Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on sh.itjust.works

5 replies

lemmy.world

Read the article so you don't have to:

Unlike the title suggests, the docker images they found won't leak your credentials when you use them, but already contain the credentials of whoever created the image (p.e. through .env files that were accidentally added to the image).

While it contains the valuable reminder to avoid long lived credentials (like API - keys) or use secrets-stores, this "leak" is on the same level as accidentally pushing confidential information to github IMHO.

Fix: have both .gitignore and .dockerignore files and make sure they both contain .env. You use .env and don't hardcode your secrets, right?

12

This 100%. For a little extra help, there are tools such as gitleaks to help. I suggest setting one up in a pre commit hook.

4

Also, don't rawdog publicly available docker images and make sure image scanning and vulnerability scans are part of your SDLC.

3

You reached the end

Over 10,000 Docker Hub images found leaking credentials, auth keys | Spyke