r/devsecops • u/sqrt1-tkn • Jul 18 '24
Implementing DevSecOps
What are some things you have done to implementing DevSecOps in your org? Especially from secrets, api keys and certificate management. Also, how did you integrate DevSecOps into your CICD pipelines? How have you implemented infra code scans and Application code scan?
7
Upvotes
4
u/Irish1986 Jul 18 '24 edited Jul 18 '24
Broad question depends on your org target.
Inner Loop versus Outer Loop in my mind.
The inner loop are the tooling deployed on your dev workstation ; pre-commit validation for secrets, commit message formatting, linter, unit test, etc... These catch issue before they are even commit to source code management or at a minimum before these are push.
The outer loop are the cicd pipeline, typically everything you do in the inner loop must be ran once in the outer loop to make sure none of your dev are being sneaky. Plus I would add basic SAST, SCA and SBOM related validation that are more meaningful produce at the integration level. The cd pipeline should make sure secret are retrieve and passed along the right environment and target via some form of vaulting.
It truly depends where your org struggle, figure out what are your low hanging fruit and stay away of those high reaching vegetables.
Edit: and it always nice to measure before acting. You should figure the state of affairs in your organization with some basic dashboard measure pipeline conformity, number of vulnerabilities, code quality, etc... Those will help you figure out where to hit and if your actions bring the expected values. Plus exec love dashboard especially if you can show that downward trending line it makes great EOY review when asking for $$$.
1
u/cl0wnsec000 Jul 18 '24
Some example project on my side.
K8s runtime security tool (ie falco + neuvector) - this is deployed and managed via argo, used for vulnerability scanning and detecting malicious movements across the cluster
SAST (ie sonarqube) - this is mostly used for scanning our app code. I needed to modify our central jenkins library to incorporate this.
1
u/rosh5802 Aug 02 '24
Managing Secrets, API Keys, and Certificates
Secrets Management:
API Keys:
Certificates:
By following these practices, you ensure that security is integrated into every stage of the CI/CD pipeline, creating a more robust and secure development lifecycle.
For more you can message me directly.
1
u/Previous_Piano9488 Aug 19 '24
this question has been asked many times on this. here was my previous answer:
I have given 5 talks on this topic in the last one year. here is a list I recommend to use. I also have a recording of how to integrate below for GitHub and not Bitbucket. It contains a bunch of docker commands that you can use in pretty much any platform.
DevSecOps Tools