feat(lab7): trivy + PSS restricted + conftest gate#1173
Open
Troshkins wants to merge 14 commits into
Open
Conversation
feat(lab1): juice shop deploy + PR template + triage report
feat(lab2): Threagile threat model secure variant and auth flow
feat(lab3): secure git signing and secret scanning
feat(lab4): juice-shop SBOM and SCA comparison
feat(lab5): ZAP baseline + auth + Semgrep + correlation
feat(lab6): Checkov + KICS scans + custom policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Deliver Lab 7 container and Kubernetes security controls: Trivy scanning, a PSS-restricted Juice Shop deployment, and a Conftest policy gate.
Changes
Added
submissions/lab7.mdwith Trivy findings, Grype comparison, Kubernetes hardening analysis, and Conftest results.Added hardened Kubernetes manifests in
labs/lab7/k8s/:restrictednamespace labelsemptyDirmounts for Juice Shop writable pathsAdded
labs/lab7/policies/pod-hardening.regoConftest policy.Added
labs/lab7/.gitignoreto exclude regeneratable scan results.Testing
trivy image bkimminich/juice-shop:v20.0.0 --severity HIGH,CRITICALtrivy configagainst an intentionally insecure DockerfileDS-0002 (HIGH): finalUSERisroot.conftest test labs/lab7/k8s/deployment.yaml --policy labs/lab7/policies4 tests, 4 passed.conftest test /tmp/bad-pod.yaml --policy labs/lab7/policiesALLcapabilities drop.kubectl -n juice-shop wait --for=condition=Ready pod -l app=juice-shop1/1 Runningwith0restarts.curl http://127.0.0.1:3000/rest/products/search?q=HTTP 200.trivy k8s --include-namespaces juice-shop --disable-node-collector --severity HIGH,CRITICAL --report summaryArtifacts & Screenshots
submissions/lab7.mdlabs/lab7/k8s/labs/lab7/policies/pod-hardening.regolabs/lab7/results/and intentionally excluded from Git as regeneratable artifacts.Checklist
feat(lab7): trivy + PSS restricted + conftest gate)submissions/lab7.mdexists