r/devops • u/Elegant-Rhubarb8628 • Jul 06 '26
Security Help with Devsecops pipeline setup
I am a pentester. My manager had given me a task for cicd integration with checkmarx. I can understand the basic stuff but I am unable to come up with material for the following:
1. How do manage secrets in the pipeline (someone suggested me aws kms)
2. How to run authenticated scans (apps using okta) using pipeline
3. Capturing traffic to run the scans on them.
I would appreciate if someone can help me in this scenario as my job depends on it.
0
Upvotes
View all comments
Show parent comment
1
u/ArieHein Jul 06 '26
Please read how the github action azure login step works, which is the context i mentioned oidc for. You have to supply tenantid, subid and clientid on which the oidc was configured. I didnt say the oidc configuration itself needed secrets .
Not everything needs a 3rd party secrets management system especially for values that dont change. If you need description for a secret called TenantID, you have a different probelm that extra metadata will not solve.
You can always use azure keyvault to store the secrets and have a step in your workflow to read via permissions you gave to the oidc identity but i would actually argue that it has different other operational complexities of its own.
So its not abiut agreeing or disagreeing. Its about keeping things secure with min friction, not being holier than the pope. For the purposes of the OP, repo secrets are good enough. The ability to scope secrets and the builtin rbac model gives you ample control, though i wish the secrets had their own 'restore' option, but that a people issue, not the tech.
I have a system that keeps my secrets and a connector to github and to azure keyvault so we can manage secrets from one place, removing the friction but thats not cheap and overkill to what OP asked.
Complexity doesnt mean more secure. It usualy means more breakable surfaces.