Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cspm/bad_s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ resource "aws_s3_bucket_public_access_block" "sko_bucket" {
ignore_public_acls = false
restrict_public_buckets = false
}

25 changes: 25 additions & 0 deletions kspm/bad-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: insecure-nginx
labels:
app: insecure-nginx
spec:
replicas: 1
selector:
matchLabels:
app: insecure-nginx
template:
metadata:
labels:
app: insecure-nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
securityContext:
runAsUser: 0
allowPrivilegeEscalation: true
readOnlyRootFilesystem: false
2 changes: 2 additions & 0 deletions kspm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: security-playground
namespace: security-playground
labels:
student: salmon_shirt_40738
app: app
spec:
replicas: 1
Expand All @@ -30,3 +31,4 @@ spec:
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0