feat(lab7): trivy + PSS restricted + conftest gate#8
Open
StefFashka wants to merge 1 commit into
Open
Conversation
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
Scan OWASP Juice Shop v20.0.0 with Trivy, harden the Kubernetes deployment with Pod Security Standards, NetworkPolicy, and securityContext, and add a Conftest policy gate.
Changes
submissions/lab7.mdβ added the Lab 7 submission with Trivy image results, Lab 4 Grype comparison, Kubernetes hardening evidence, Trivy K8s scan summary, and Conftest outputs.labs/lab7/k8s/namespace.yamlβ added thejuice-shopnamespace with PSSrestrictedlabels for enforce, warn, and audit.labs/lab7/k8s/serviceaccount.yamlβ added a dedicated ServiceAccount with token automount disabled.labs/lab7/k8s/deployment.yamlβ added a digest-pinned hardened Juice Shop Deployment with non-root execution, read-only root filesystem, dropped capabilities, RuntimeDefault seccomp, resource limits, probes, and writableemptyDirmounts.labs/lab7/k8s/networkpolicy.yamlβ added ingress and egress restrictions for the Juice Shop workload.labs/lab7/policies/pod-hardening.regoβ added a Conftest policy that rejects pods missing required hardening controls.Testing
Artifacts & Screenshots
Submission report: lab7.md
Kubernetes manifests: labs/lab7/k8s/
Conftest policy: pod-hardening.rego
Required checklist: