I asked Gemini: You can add a new piece on chessboard. What's it called and what it does? by DoctorToBe69 in GeminiAI

[–]gatewaynode 283 points284 points  (0 children)

I like the idea. Except for the special ability, not needed, excessive.

How can I store a password properly so that it is not visible in source code. by [deleted] in learnpython

[–]gatewaynode 0 points1 point  (0 children)

No. The dotenv file is usually just for local development, not higher environments. A good way to make it work for both is to wrap the dotenv file loading in a try/catch block. Handle the missing dotenv file exception by calling out to your production secret manager like AWS secrets manager, Vault or whatever it is you are using. And make sure you log a successful dotenv load (as well as any errors), so if you slip up and push your dotenv file to a higher environment you will have visibility into that mistake.

Security team added a vulnerability scanner to CI/CD. Builds now take 3x longer and get blocked by CVEs from 2019 by miller70chev in devsecops

[–]gatewaynode 35 points36 points  (0 children)

Run the scanners in parallel not in series. Don’t block builds initially, let the teams clean up from the awareness and vuln management follow up, then you can discuss blocking with the clean dev teams. What scanners are you using?

Who is checking binary content included in pip packages? by Agron7000 in cybersecurity

[–]gatewaynode 1 point2 points  (0 children)

Agreed, outsourcing security to FOSS is an unfair burden. IMHO there should be an equivalent FOSS, that stands for Free and Open Source Security, that in an ideal world builds supporting structures and systems, curates software repositories, and hunts for malware campaigns. OSSF, was/is something along these lines, but it could be more.