Skip to content

Lesson 01 β€” DevSecOps Fundamentals

Learning Path

☁️ Phase 02 – AWS Cloud Security

πŸ“˜ Module 11 – DevSecOps & Infrastructure as Code (IaC) Security


By the end of this lesson, you will be able to:

  • Understand DevOps and DevSecOps.
  • Explain the Secure Software Development Lifecycle (Secure SDLC).
  • Understand Shift Left Security.
  • Identify DevSecOps roles and responsibilities.
  • Design enterprise DevSecOps workflows.
  • Explain Continuous Integration and Continuous Delivery.
  • Build a security-first software delivery mindset.

πŸ“š Lesson Information

Estimated Time: 3 Hours

Difficulty: Intermediate

Prerequisites: Module 10 – Backup, Disaster Recovery & Business Continuity

Hands-on Labs: Yes


CloudNova Technologies develops cloud-native applications for thousands of enterprise customers.

The company has:

  • 350 Software Developers
  • 60 DevOps Engineers
  • 25 Cloud Security Engineers
  • Multiple Scrum Teams
  • Hundreds of Git Repositories
  • Production deployments every day

Historically, CloudNova followed a traditional software delivery process.

Unfortunately, recent security incidents exposed several weaknesses:

  • Developers committed AWS Access Keys to GitHub.
  • Terraform templates deployed public S3 buckets.
  • Vulnerable Docker images reached production.
  • Security reviews delayed every release.
  • Manual penetration testing found issues after deployment.
  • Production rollbacks increased significantly.

Management realised that security was being treated as the final checkpoint instead of being integrated throughout development.

The CTO asks:

β€œHow can we deliver software faster while making security an automatic part of the development process?”

As the Cloud Security Engineer, your responsibility is to transform CloudNova into a modern DevSecOps organisation.


Modern software is released continuously.

Traditional security approaches cannot keep pace.

Without automation:

  • Developers wait for security reviews.
  • Security teams become bottlenecks.
  • Vulnerabilities reach production.
  • Releases become slower.

DevSecOps enables organisations to build security into every stage of software delivery.


DevOps combines Development and Operations to deliver software faster through collaboration and automation.

Traditional model:

Developers
↓
Throw code over the wall
↓
Operations
↓
Deploy

Problems:

  • Slow releases
  • Communication gaps
  • Manual deployments
  • Frequent failures

DevSecOps extends DevOps by integrating Security throughout the Software Development Lifecycle.

Instead of security occurring only before production, security becomes continuous.

Development
↓
Security
↓
Operations
↓
Continuous Delivery

Everyone shares responsibility for security.


Requirements
↓
Development
↓
Testing
↓
Deployment
↓
Security Review
↓
Production

Problems:

  • Vulnerabilities discovered late.
  • Expensive remediation.
  • Delayed releases.
  • Increased business risk.

CloudNova adopts a Secure Software Development Lifecycle.

Plan
↓
Design
↓
Develop
↓
Build
↓
Security Scan
↓
Testing
↓
Approval
↓
Deploy
↓
Monitor
↓
Improve

Security exists in every phase.


One of the most important DevSecOps principles is Shift Left Security.

Instead of finding vulnerabilities after deployment, they are identified much earlier.

Traditional
Production
← Security Testing

↓

DevSecOps
Planning
↓
Coding
↓
Build
↓
Security Testing
↓
Production

The earlier a vulnerability is found, the cheaper it is to fix.


DevSecOps is a shared responsibility.

Team Responsibilities
Developers Secure code, peer reviews
DevOps Engineers Secure CI/CD pipelines
Cloud Engineers Secure infrastructure
Security Engineers Security automation, policies
Operations Monitoring and incident response
Leadership Governance and compliance

Security is no longer owned by one team.


CloudNova follows this workflow.

Business Requirements
↓
Architecture
↓
Coding
↓
Git Repository
↓
Pull Request
↓
Automated Security Scans
↓
Build
↓
Testing
↓
Approval
↓
Deployment
↓
Monitoring
↓
Continuous Improvement

Continuous Integration automatically validates code after every change.

Typical CI activities:

  • Compile Code
  • Run Unit Tests
  • Static Code Analysis
  • Secret Detection
  • Dependency Scanning
  • Infrastructure Validation

Developers receive immediate feedback.


Continuous Delivery automates software deployment.

Pipeline stages include:

Build
↓
Package
↓
Security Validation
↓
Deployment Approval
↓
Production Release

Every release should be:

  • Repeatable
  • Automated
  • Secure

Developer
↓
Git Commit
↓
Pull Request
↓
Code Review
↓
Static Code Analysis
↓
Secret Scanning
↓
Dependency Scan
↓
Infrastructure Scan
↓
Container Scan
↓
Build
↓
Testing
↓
Deployment
↓
Cloud Monitoring

Developers
β”‚
Git Repository
β”‚
Pull Request
β”‚
Code Review
β”‚
CI/CD Pipeline
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ β”‚ β”‚
Secret Scan SAST Scan IaC Validation
β”‚ β”‚ β”‚
Dependency Container Policy Check
Scanning Scanning
β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
Deployment Approval
β”‚
AWS Production
β”‚
CloudWatch β€’ CloudTrail β€’ Security Hub

CloudNova prevents insecure software from reaching production.

Every deployment must pass:

βœ” Code Review

βœ” Unit Testing

βœ” Static Code Analysis

βœ” Secret Detection

βœ” Dependency Scan

βœ” IaC Scan

βœ” Container Scan

βœ” Compliance Validation

Only successful builds proceed to deployment.


SDLC Phase Security Activity
Planning Security Requirements
Design Threat Modelling
Development Secure Coding
Build Static Code Analysis
Test Vulnerability Assessment
Deploy Security Validation
Operate Monitoring
Improve Lessons Learned

CloudNova uses the following tools.

Function Example Tools
Source Control GitHub, AWS CodeCommit
CI/CD AWS CodePipeline, GitHub Actions
Build AWS CodeBuild
Containers Docker
Orchestration Kubernetes, Amazon EKS
Infrastructure Terraform, CloudFormation
Secrets AWS Secrets Manager
Monitoring CloudWatch
Security Amazon Inspector, Security Hub

Technology alone does not create DevSecOps.

Successful organisations encourage:

  • Collaboration
  • Automation
  • Continuous Learning
  • Secure Coding
  • Frequent Feedback
  • Shared Ownership
  • Continuous Improvement

CloudNova standards include:

  • Shift security left.
  • Automate every security check.
  • Treat infrastructure as code.
  • Never hardcode credentials.
  • Review every Pull Request.
  • Scan every dependency.
  • Secure every pipeline.
  • Continuously monitor production.
  • Train developers regularly.
  • Measure and improve continuously.

Objective:

Understand a modern DevSecOps pipeline.

Tasks:

  • Identify each pipeline stage.
  • Explain its purpose.
  • Determine where security checks occur.
  • Identify manual approval points.

Deliverable:

Pipeline workflow diagram.


Review the following SDLC phases:

  • Planning
  • Design
  • Development
  • Testing
  • Deployment
  • Operations

For each phase identify:

  • Security Risks
  • Security Controls
  • Responsible Teams

Scenario:

A developer commits new application code.

Create a deployment checklist that includes:

  • Code Review
  • Unit Tests
  • Secret Scan
  • Dependency Scan
  • Infrastructure Scan
  • Container Scan
  • Security Approval

Explain why each gate is important.


πŸ›  Lab 04 β€” DevSecOps Team Responsibilities

Section titled β€œπŸ›  Lab 04 β€” DevSecOps Team Responsibilities”

Create a RACI matrix for:

  • Developers
  • DevOps
  • Security
  • Cloud Engineers
  • Operations

Document who is:

  • Responsible
  • Accountable
  • Consulted
  • Informed

Verify your development environment.

Terminal window
aws --version

Terminal window
aws sts get-caller-identity

Terminal window
aws ec2 describe-regions

Terminal window
aws iam list-users

Terminal window
aws iam list-roles

Terminal window
aws codecommit list-repositories

(If using AWS CodeCommit in your environment.)


Verify that you can:

βœ” Explain DevSecOps.

βœ” Differentiate DevOps from DevSecOps.

βœ” Describe the Secure SDLC.

βœ” Explain Shift Left Security.

βœ” Identify security gates.

βœ” Describe CI/CD workflows.

βœ” Explain shared security responsibilities.


Developers bypass security reviews.

Verify:

  • Pull Request policies.
  • Branch protection rules.
  • Required approvals.
  • Automated security checks.

Security delays software releases.

Review:

  • Manual approvals.
  • Automated testing.
  • Pipeline optimisation.
  • Security tooling integration.

Credentials appear in source code.

Review:

  • Secret scanning.
  • Git history.
  • Developer training.
  • Secrets Manager usage.

❌ Treating security as the responsibility of only the security team.

❌ Performing security testing only before production.

❌ Skipping code reviews.

❌ Ignoring dependency vulnerabilities.

❌ Hardcoding credentials.

❌ Manual deployments.

❌ Not monitoring deployed applications.


CloudNova is launching a new cloud-native banking platform.

Design a secure DevSecOps workflow that includes:

  1. Secure SDLC.
  2. CI/CD Pipeline.
  3. Security Gates.
  4. Code Reviews.
  5. Secret Management.
  6. Automated Security Testing.
  7. Deployment Approvals.
  8. Continuous Monitoring.

Prepare:

  • DevSecOps Architecture
  • Secure SDLC Diagram
  • Pipeline Workflow
  • Team Responsibility Matrix
  • Security Control Checklist

  1. What is DevSecOps?
  2. How does DevSecOps differ from traditional DevOps?
  3. What is the Secure SDLC?
  4. What is Shift Left Security?
  5. Why is Continuous Integration important?
  6. Why should security be automated?
  7. What are security gates?
  8. Why is shared responsibility important?
  9. Which AWS services support DevSecOps?
  10. Why should security be integrated into every stage of software development?

After completing this lesson, you should understand:

  • DevSecOps integrates security into every stage of the Software Development Lifecycle rather than treating it as a final review.
  • Shift Left Security enables organisations to identify and fix vulnerabilities earlier, reducing cost and improving software quality.
  • Secure CI/CD pipelines rely on automated security gates such as code reviews, secret detection, dependency scanning and infrastructure validation.
  • DevSecOps is built on collaboration between developers, operations, cloud engineers and security teams, with shared ownership of application security.
  • Modern cloud organisations use automation, continuous monitoring and continuous improvement to deliver software rapidly without compromising security.

➑️ Lesson 02 β€” Secure Infrastructure as Code (IaC)