Skip to content

feat(lab7): trivy + PSS restricted + conftest gate#1412

Open
ashuno wants to merge 1 commit into
inno-devops-labs:mainfrom
ashuno:feature/lab7
Open

feat(lab7): trivy + PSS restricted + conftest gate#1412
ashuno wants to merge 1 commit into
inno-devops-labs:mainfrom
ashuno:feature/lab7

Conversation

@ashuno

@ashuno ashuno commented Jul 3, 2026

Copy link
Copy Markdown

Summary

Lab 7 — Container Security: Trivy image/config scans, hardened Juice Shop Kubernetes deployment (PSS restricted), and a Conftest Rego policy gate.

  • Task 1: Trivy image + config scans on Juice Shop v20.0.0; severity/CVE triage; Grype vs Trivy comparison (Lab 4 baseline regenerated locally with CycloneDX 1.6).
  • Task 2: Four K8s manifests (namespace, serviceaccount, deployment, networkpolicy) with digest-pinned image, full securityContext hardening, NetworkPolicy, and initContainer + emptyDir mounts for readOnlyRootFilesystem; pod verified Running 1/1; Trivy k8s scan documented.
  • Bonus: pod-hardening.rego — Conftest PASS on hardened deployment, FAIL on intentionally bad manifest.

Checklist

  • Task 1 — Trivy image + config scans + Grype comparison
  • Task 2 — Hardened K8s deployment with PSS restricted + NetworkPolicy
  • Bonus — Conftest policy passing on hardened + failing on bad manifest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant