Skip to content

Instantly share code, notes, and snippets.

@r0binak
Last active March 21, 2024 17:49
Show Gist options
  • Save r0binak/cba5b26b3f2b38856e112bfefcc35e67 to your computer and use it in GitHub Desktop.
Save r0binak/cba5b26b3f2b38856e112bfefcc35e67 to your computer and use it in GitHub Desktop.
Payload for CTF
{
"kind": "AdmissionReview",
"apiVersion": "admission.k8s.io/v1",
"request": {
"uid": "4bf09ead-fbda-4fb7-a6d2-1b23823794a7",
"kind": {
"group": "",
"version": "v1",
"kind": "Pod"
},
"resource": {
"group": "",
"version": "v1",
"resource": "pods"
},
"requestKind": {
"group": "",
"version": "v1",
"kind": "Pod"
},
"requestResource": {
"group": "",
"version": "v1",
"resource": "pods"
},
"name": "nginx",
"namespace": "sensitive-ns",
"operation": "CREATE",
"userInfo": {
"username": "kube-review",
"uid": "780f588e-efb6-40d0-8f95-f08f13ecf0f8"
},
"object": {
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "nginx",
"namespace": "sensitive-ns",
"creationTimestamp": null
},
"spec": {
"containers": [
{
"name": "nginx",
"image": "nginx:1.14.2",
"ports": [
{
"containerPort": 80
}
],
"resources": {}
}
]
},
"status": {}
},
"oldObject": null,
"dryRun": true,
"options": {
"kind": "CreateOptions",
"apiVersion": "meta.k8s.io/v1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment