S SDDO Notes · IE BCSAI 2025
11 · DevOps

DevOps Security

Security isn't a stage after deploy. It's a property of the whole pipeline: secrets, dependencies, images, transport, runtime, and people. Shift it left so the cost of a fix stays small.

Secrets

API keys, DB passwords, signing keys. Rule: never in the repo. Never in environment variables checked into Docker images. Never logged.

Pre-commit scan: gitleaks, trufflehog. They catch the "oops, I committed AWS keys" before push.

Dependencies (supply chain)

Most production code is dependencies. A vulnerability in one library means a vulnerability in your app.

Container images

Transport

OWASP Top 10 (2021)

  1. Broken Access Control — users accessing what they shouldn't. Enforce on the server; never trust the client.
  2. Cryptographic Failures — passwords in plain text, weak hashes, missing TLS.
  3. Injection — SQL, NoSQL, OS command, LDAP. Use parameterised queries; validate inputs.
  4. Insecure Design — security flaws baked into requirements.
  5. Security Misconfiguration — default credentials, open S3 buckets, stack traces shown to users.
  6. Vulnerable & Outdated Components — see Dependencies above.
  7. Identification & Authentication Failures — weak passwords, no rate-limit on login, sessions that never expire.
  8. Software & Data Integrity Failures — trusting unsigned updates, deserialising untrusted data.
  9. Security Logging & Monitoring Failures — can't detect a breach because you didn't log the right things.
  10. SSRF — server-side request forgery. Validate that the URL your server fetches isn't pointing back at internal infrastructure.

Runtime & observability

People

"Security is not a product, it's a process." — Bruce Schneier. The pipeline is the product; security is what it does.

What to remember at exam time

Source · Slides
DevOps Security — main deck + slides
Open PDF