Run Your First Security Pipeline
This tutorial will help you to run your first security pipeline. Before that, we will learn some terminologies.
🔓 A vulnerability is a weakness in a system or software that can be exploited by attackers to compromise security.
Let’s get started, Pre-Requisites required before running a pipeline, Let’s get started, Pre-Requisites required before running a pipeline, How to run your first pipeline: Link How to create a provider: Link
Hope you learned how to create a pipeline and run it! Let's go to the next step, In our task and pipeline catalog, we support many scanning tools such as trivy, sonarQube, snyk, and many more. To run a security pipeline integrate these tasks in your pipelines and run it. How simple is that? I will show how it is done in the next step with a detailed explanation. SCA (Software Composition Analysis): Identifies and manages open-source and third-party components in software to detect vulnerabilities and ensure compliance.
SAST (Static Application Security Testing): Analyzes source code without executing it to identify vulnerabilities and weaknesses in the early stages of development.
DAST (Dynamic Application Security Testing): Tests running applications for vulnerabilities by simulating attacks from outside the application.
IAC (Infrastructure as Code) Scanning: Reviews infrastructure code to identify security vulnerabilities and compliance issues before deployment.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F9vGTeQf2wuzOr6D56PyH%252Fimage-20240507-031429.png%3Falt%3Dmedia%26token%3Dafb0a22a-d457-4ecb-ac4e-7b3e1c37ac50&width=768&dpr=4&quality=100&sign=a155f1cd&sv=1)
In the security dashboard, we have scans that show all vulnerabilities and policies (Global level, Cluster level, Environment level, Microservice level) for setting up some predefined rules. Don’t worry we got your back, let me show you an example.
For example: After scanning we get vulnerabilities (i.e. critical, high, medium, and low). Let’s say we set permission for critical vulnerabilities as a block then in the future when we run the pipeline and if scanning tools find critical vulnerabilities in the pipeline then the pipeline fails. Suppose if we allow all the vulnerabilities then, even if scanning tools find all the vulnerabilities the pipeline will not fail because we have allowed them.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FrdIwXvQieinjlJssZlFD%252Fimage-20240507-050159.png%3Falt%3Dmedia%26token%3D40e19637-4bbd-4ad0-9776-26606eed8d31&width=768&dpr=4&quality=100&sign=3ace68de&sv=1)
Now we have covered all the terminologies in the aspect of security. good work till now. let's move to the next step.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FegBpKy6t3X4O5WrKjzVH%252Fimage-20240507-073127.png%3Falt%3Dmedia%26token%3D8c789871-4a01-47e6-9625-a096da5ee3b2&width=768&dpr=4&quality=100&sign=c1f74016&sv=1)
As you can see in pipeline templates, there is a pipeline template called to build and deploy with DevSecOps. If we open that we can see all categories here from SAST, SCA, DAST to IAC at various stages. How cool is this! you don't even have to create a pipeline we have covered most of the use cases in our catalog. If you still want to create a pipeline then we have these scanning tools in the form of tasks you can use them
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FoYxgylkNI098NZL8nnPK%252Fimage-20240507-073655.png%3Falt%3Dmedia%26token%3D7efd1ad2-72ff-41bc-9a78-fc6d8a9c52a9&width=768&dpr=4&quality=100&sign=aff4d85e&sv=1)
Run the above pipeline. That’s it done ✅ great job…👏
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FbitNf84vHA2kfsMcbKDL%252Fimage-20240507-075657.png%3Falt%3Dmedia%26token%3Dad795b61-4b1d-43f8-ac8e-2f214cbdf91b&width=768&dpr=4&quality=100&sign=63bac59a&sv=1)
Now click on build and deploy with devsecops. Checkout Logs, Results for SBOM’s, and the Security section for vulnerabilities.
SBOM, or Software Bill of Materials, is a detailed inventory listing of all components used in a software product.
( spdx and cyclonedx are formats )SPDX is a standard for documenting and exchanging software package metadata, while CycloneDX is a lightweight SBOM specification designed for easy integration into modern CI/CD pipelines. LOGS: In logs, you can check for the vulnerability list as shown below. Even you can check if scanned by sonarQube.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F7oYPDSIxsYBXMqEuUNY9%252Fimage-20240507-080453.png%3Falt%3Dmedia%26token%3D65441ae2-f01f-4ae0-9bfd-b5cd76b38517&width=768&dpr=4&quality=100&sign=154e0c20&sv=1)
RESULTS: In results, you can check for SBOM reports.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FT2mulHWaBWbKiqTrR6PM%252Fimage-20240507-085512.png%3Falt%3Dmedia%26token%3Da7cff037-15ed-40f4-b3d9-99cc679d8fb3&width=768&dpr=4&quality=100&sign=5a306a76&sv=1)
SECURITY: In security, you can see all information regarding vulnerabilities such as vulnerabilityID, severity, package, microservices etc.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F120b7CXU7Nuon1gqM4Iu%252Fimage-20240507-085601.png%3Falt%3Dmedia%26token%3D3e8b439e-7a05-423e-a63e-afe74f2890ee&width=768&dpr=4&quality=100&sign=60d9f82d&sv=1)
You can just click on the links of vulnerability to fix it as shown below.
![](https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FrDWJaiAMaep2veu60lyD%252Fimage-20240507-090001.png%3Falt%3Dmedia%26token%3D4f6536f9-bcf4-4b6e-bd73-f254be223035&width=768&dpr=4&quality=100&sign=441b238b&sv=1)
Wow 🤩, you made it. you not only learned how to run a pipeline with security Integration but also learned the core concept of DevSecOps.
Last updated