Skip to content

fix(dex): restrict GitHub auth to maintainers - #2709

Merged
devantler merged 12 commits into
mainfrom
codex/assess-vulnerability-in-actual-budget-oidc
Aug 17, 2026
Merged

fix(dex): restrict GitHub auth to maintainers#2709
devantler merged 12 commits into
mainfrom
codex/assess-vulnerability-in-actual-budget-oidc

Conversation

@devantler

Copy link
Copy Markdown
Contributor

Motivation

  • A recent change enabled Actual Budget to authenticate directly against Dex using a shared public-client, which allowed any member of the devantler-tech GitHub org to log in and potentially become the first-owner, creating an authorization risk.
  • The intent is to narrow the authorization boundary so native-OIDC apps that bypass oauth2-proxy cannot be claimed by non-maintainer org members.

Description

  • Narrow Dex's GitHub connector by adding teams: - maintainers under the orgs: - name: devantler-tech entry in k8s/bases/infrastructure/controllers/dex/helm-release.yaml so only devantler-tech/maintainers can authenticate.
  • Preserve oauth2-proxy's allowed_groups as defense-in-depth by clarifying its comment in k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml.
  • Update the Crossview security note in k8s/bases/apps/crossview/helm-release.yaml to reflect that Dex is now maintainer-scoped for native-OIDC apps.

Testing

  • Parsed the modified YAML files with Ruby using ruby -e 'require "yaml"; ...' which succeeded.
  • Ran the naming validator with python scripts/validate-naming.py which succeeded.
  • Ran git diff --check which reported no whitespace/merge issues.
  • Did not run kubectl kustomize or ksail workload validate because kubectl and ksail are not installed in this environment (not run).

Codex Task

@devantler

Copy link
Copy Markdown
Contributor Author

Requested by the 🤖 Daily AI Engineer — CI is green at the current head and this draft carries no qualifying review, so requesting the lane-priority reviewer. Hygiene only: this is a sibling lane's draft and its owner promotes it.

@devantler

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor

cursor Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_a0ff91ea-8114-4f41-934b-e36674aabd9e)

@devantler

Copy link
Copy Markdown
Contributor Author

Requested by the 🤖 Daily AI Engineer — the previous Cursor Bugbot run returned conclusion: neutral with Bugbot failed to run, i.e. the review never happened. Re-requesting at a slower pace.

@devantler

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor

cursor Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_65bc499d-e68b-47e3-aa67-ab59ba018341)

@devantler devantler left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Generated by the Agentic Engineer

Static exact-head review of 900256b826f19d776149ec8a66064a7222588723.

Comment thread k8s/bases/infrastructure/controllers/dex/helm-release.yaml
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

⚠️MegaLinter analysis: Success with warnings

⚠️ BASH / bash-exec - 4 errors
Results of bash-exec linter (version 5.3.9)
See documentation on https://megalinter.io/10.0.0/descriptors/bash_bash_exec/
-----------------------------------------------

✅ [SUCCESS] .github/scripts/setup-ksail.sh
✅ [SUCCESS] scripts/check-megalinter-version-drift.sh
✅ [SUCCESS] scripts/dr-rebuild-supersession-guard.sh
❌ [ERROR] scripts/ghcr-auth-lib.sh
    Error: File:[scripts/ghcr-auth-lib.sh] is not executable

✅ [SUCCESS] scripts/guard-cilium-homogeneous-device-rollout.sh
✅ [SUCCESS] scripts/guard-kubescape-gate-frameworks.sh
✅ [SUCCESS] scripts/guard-shared-publish-workflow-pin.sh
✅ [SUCCESS] scripts/megalinter-scan-counts.sh
✅ [SUCCESS] scripts/normalize-sarif-paths.sh
❌ [ERROR] scripts/refresh-flux-ghcr-auth-safety.sh
    Error: File:[scripts/refresh-flux-ghcr-auth-safety.sh] is not executable

✅ [SUCCESS] scripts/refresh-flux-ghcr-auth.sh
✅ [SUCCESS] scripts/report-cilium-rollout-gate-suppression.sh
✅ [SUCCESS] scripts/run-ksail-prod-with-pull-auth.sh
✅ [SUCCESS] scripts/summarize-sarif-findings.sh
✅ [SUCCESS] scripts/tests/test-actual-budget-auth-route.sh
✅ [SUCCESS] scripts/tests/test-check-megalinter-version-drift.sh
✅ [SUCCESS] scripts/tests/test-cilium-bandwidth-manager-component.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-activation.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-autoscaler-gate.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-flux-wait.sh
✅ [SUCCESS] scripts/tests/test-cilium-mutual-auth-policy-regressions.sh
✅ [SUCCESS] scripts/tests/test-cilium-mutual-auth-policy.sh
✅ [SUCCESS] scripts/tests/test-cilium-rollout-gate-suppression-signal.sh
✅ [SUCCESS] scripts/tests/test-cnpg-degraded-alert.sh
✅ [SUCCESS] scripts/tests/test-coroot-postgres-scrape-policy.sh
✅ [SUCCESS] scripts/tests/test-crossplane-egress-policy.sh
✅ [SUCCESS] scripts/tests/test-crossplane-sync-exporter.sh
✅ [SUCCESS] scripts/tests/test-dr-rebuild-supersession-guard.sh
✅ [SUCCESS] scripts/tests/test-github-config-role-activation-parity.sh
❌ [ERROR] scripts/tests/test-headlamp-plugin-removal.sh
    Error: File:[scripts/tests/test-headlamp-plugin-removal.sh] is not executable

✅ [SUCCESS] scripts/tests/test-kubescape-gate-frameworks-guard.sh
✅ [SUCCESS] scripts/tests/test-kyverno-admission-vpa.sh
❌ [ERROR] scripts/tests/test-kyverno-umami-mutation-rbac.sh
    Error: File:[scripts/tests/test-kyverno-umami-mutation-rbac.sh] is not executable

✅ [SUCCESS] scripts/tests/test-megalinter-scan-counts-ignorefile.sh
✅ [SUCCESS] scripts/tests/test-normalize-sarif-paths.sh
✅ [SUCCESS] scripts/tests/test-openbao-oidc-role.sh
✅ [SUCCESS] scripts/tests/test-opencost-usage-scraper.sh
✅ [SUCCESS] scripts/tests/test-pvc-prune-safety.sh
✅ [SUCCESS] scripts/tests/test-refresh-flux-ghcr-auth-safety.sh
✅ [SUCCESS] scripts/tests/test-restrict-homepage-service-groups.sh
✅ [SUCCESS] scripts/tests/test-restrict-tenant-secret-stores.sh
✅ [SUCCESS] scripts/tests/test-setup-ksail.sh
✅ [SUCCESS] scripts/tests/test-shared-publish-workflow-pin-guard.sh
✅ [SUCCESS] scripts/tests/test-summarize-sarif-findings.sh
✅ [SUCCESS] scripts/tests/test-tenant-route-hostname-boundary.sh
✅ [SUCCESS] scripts/tests/test-umami-provisioning-bootstrap.sh
✅ [SUCCESS] scripts/tests/test-use-prod-stable-api-endpoint.sh
✅ [SUCCESS] scripts/tests/test-validate-image-verifier-liveness.sh
✅ [SUCCESS] scripts/tests/test-verify-published-evidence.sh
✅ [SUCCESS] scripts/update-vendored-operators.sh
✅ [SUCCESS] scripts/use-prod-stable-api-endpoint.sh
✅ [SUCCESS] scripts/validate-alert-coverage.sh
✅ [SUCCESS] scripts/validate-image-verifier-liveness.sh
✅ [SUCCESS] scripts/verify-published-evidence.sh
✅ [SUCCESS] scripts/wait-for-platform-flux-revision.sh
⚠️ REPOSITORY / checkov - 2 errors
2026-08-17 21:23:30,614 [MainThread  ] [ERROR]  YAML error parsing k8s/bases/infrastructure/controllers/kubevirt/kubevirt-operator.yaml: expected a single document in the stream
  in "<unicode string>", line 2, column 1
but found another document
  in "<unicode string>", line 9, column 1
cloudformation scan results:

Passed checks: 0, Failed checks: 0, Skipped checks: 0, Parsing errors: 1

kubernetes scan results:

Passed checks: 2167, Failed checks: 2, Skipped checks: 36

Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
	FAILED for resource: CronJob.openbao.vault-snapshot
	File: /k8s/bases/infrastructure/vault-backup/cron-job.yaml:23-197
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
	FAILED for resource: Job.openbao.vault-snapshot-init
	File: /k8s/bases/infrastructure/vault-backup/job.yaml:23-191
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
github_actions scan results:

Passed checks: 156, Failed checks: 0, Skipped checks: 0
⚠️ SPELL / cspell - 3564 errors
edocs",
        "homelab",
        "hostnames",
        "httproute",
        "httproutes",
        "idempotently",
        "ignorefile",
        "imagevalidatingpolicy",
        "imranismail",
        "injective",
        "inspectable",
        "iscsi",
        "italicise",
        "ivpol",
        "jobif",
        "journalled",
        "keylessly",
        "keypair",
        "kprobes",
        "kptr",
        "krew",
        "ksail",
        "ksail's",
        "ksailcd",
        "kubeconfig",
        "kubeconfig's",
        "kubeconform",
        "kubeconform's",
        "kubelet",
        "kubelet's",
        "kubelets",
        "kubescape",
        "kubescape's",
        "kubespan",
        "kubevirt",
        "kubevuln",
        "kustomization",
        "kustomizations",
        "letsencrypt",
        "libc",
        "libgnutls",
        "lintable",
        "livez",
        "loadtester",
        "locationless",
        "logfile",
        "lookarounds",
        "lrwxrwxrwx",
        "lserror",
        "lsfail",
        "luks",
        "lycheeignore",
        "machineconfig",
        "materialise",
        "materialised",
        "materialises",
        "maxage",
        "maxbackup",
        "maxsize",
        "maxx",
        "microtime",
        "mikefarah",
        "misconfig",
        "misconfigs",
        "misordered",
        "mistargeted",
        "mitrelike",
        "mktemp",
        "mlock",
        "mutatingpolicies",
        "mutatingwebhookconfigurations",
        "myapp",
        "najsk",
        "neighbour",
        "nenv",
        "netlink",
        "netpol",
        "netpols",
        "neutralises",
        "neutralising",
        "nextjs",
        "nftables",
        "nilnil",
        "nobuckets",
        "nodepod",
        "nodeport",
        "nolabel",
        "nolint",
        "nonexec",
        "nonroot",
        "normalisation",
        "normalise",
        "normalised",
        "normalises",
        "normalising",
        "nosec",
        "nsalike",
        "nullglob",
        "ocirepository",
        "onlycri",
        "onlysystem",
        "openbao",
        "opencost",
        "openfeature",
        "oras",
        "otherplugin",
        "overclaimed",
        "overprovisioning",
        "parallelised",
        "partialgroup",
        "pasteable",
        "permissioning",
        "persistentvolumeclaims",
        "phaseless",
        "pipefail",
        "policyreports",
        "portforward",
        "preemptible",
        "preservingly",
        "prioritisable",
        "prioritisation",
        "prioritised",
        "privesc",
        "probeerror",
        "providerconfigs",
        "pseudonymization",
        "pseudonymized",
        "pseudonymizes",
        "publishapp",
        "publishprovider",
        "pushsecret",
        "pushsecrets",
        "qrbvrml",
        "randomises",
        "rdqwpktr",
        "readyz",
        "reassertions",
        "recognisable",
        "recognisably",
        "recognise",
        "recognised",
        "recolour",
        "reconverges",
        "referencegrants",
        "refreshfluxghcrauth",
        "regenerable",
        "releaserc",
        "rematerialise",
        "rematerialised",
        "replicaset",
        "repoint",
        "repointed",
        "repoints",
        "repositoryrulesets",
        "resizer",
        "restrictor",
        "retabbed",
        "retarget",
        "rmem",
        "rolebindings",
        "rollouts",
        "rshared",
        "rwxr",
        "sanitised",
        "sanitiser",
        "sanitising",
        "sarif",
        "scheckov",
        "schedulability",
        "schedulable",
        "scopeable",
        "scopeless",
        "seccomp",
        "secretbox",
        "secretstore",
        "seedable",
        "serialise",
        "serialised",
        "serverside",
        "serviceaccount",
        "serviceaccounts",
        "sgdisk",
        "shellcheck",
        "shfmt",
        "shopt",
        "shortsha",
        "siderolabs",
        "siderolink",
        "sigstore",
        "skmde",
        "slurpfile",
        "sngle",
        "specnull",
        "spiffe",
        "sprintf",
        "srole",
        "stakater",
        "startswith",
        "statefulset",
        "statemanager",
        "stdlib",
        "stepif",
        "storageclass",
        "strenv",
        "subshell",
        "subtest",
        "summarised",
        "surfaceless",
        "syft",
        "syscall",
        "sysctls",
        "syste",
        "systembare",
        "tagliteral",
        "tagonly",
        "talosconfig",
        "talosctl",
        "tanzu",
        "tcproutes",
        "templatesyncignore",
        "thresholded",
        "tlsroutes",
        "tlsv",
        "tmpl",
        "toplevel",
        "tostring",
        "tracepoints",
        "travelled",
        "trixie",
        "trueish",
        "trustd",
        "ture",
        "udproutes",
        "uids",
        "umami",
        "umami's",
        "unablated",
        "unclickable",
        "uncompilable",
        "unconfigured",
        "uncordon",
        "uncordoned",
        "uncordoning",
        "uncordons",
        "undecoded",
        "undercounts",
        "undispositioned",
        "unenforcing",
        "unevidenced",
        "unexcepted",
        "unfiled",
        "ungated",
        "ungenerated",
        "unifi",
        "uninspected",
        "uninvoked",
        "unioned",
        "unmarshalling",
        "unmarshals",
        "unmodelled",
        "unparseable",
        "unprovisioned",
        "unrecognisable",
        "unrecognised",
        "unrepresentable",
        "unreviewed",
        "unroutable",
        "unrun",
        "unshippable",
        "unskipped",
        "untrackable",
        "unvalidated",
        "unwaited",
        "unwired",
        "upbound",
        "updatekeys",
        "upjet",
        "upstreaming",
        "urlencode",
        "userinfo",
        "userns",
        "ushfn",
        "validatable",
        "validatealertcoverage",
        "validatingwebhookconfigurations",
        "vcunav",
        "velero",
        "virt",
        "volumesnapshot",
        "vpas",
        "vulnerabilitymanifests",
        "vulnerabilitymanifestsummary",
        "vulns",
        "vxlan",
        "wffc",
        "wgpolicyk",
        "wildcarded",
        "wlid",
        "wmem",
        "workloadconfigurationscans",
        "workloadconfigurationscansummary",
        "worktrees",
        "xpkg",
        "yannh",
        "yubikey",
        "yzwvjjmcyfnl",
        "zizmor"
    ]
}


You can also copy-paste megalinter-reports/.cspell.json at the root of your repository

(Truncated to last 6666 characters out of 642772)
⚠️ COPYPASTE / jscpd - 147 errors
ts/test-crossplane-egress-policy.sh [260:25 - 268:19] (9 lines, 52 tokens)
   scripts/tests/test-crossplane-egress-policy.sh [280:24 - 288:19]
Clone found (bash)
 - scripts/tests/test-crossplane-egress-policy.sh [260:25 - 268:18] (9 lines, 51 tokens)
   scripts/tests/test-crossplane-egress-policy.sh [305:31 - 313:18]
Clone found (bash)
 - scripts/tests/test-crossplane-egress-policy.sh [291:13 - 299:8] (9 lines, 52 tokens)
   scripts/tests/test-crossplane-egress-policy.sh [370:18 - 378:14]
Clone found (bash)
 - scripts/tests/test-crossplane-egress-policy.sh [369:22 - 378:15] (10 lines, 63 tokens)
   scripts/tests/test-crossplane-egress-policy.sh [379:33 - 388:15]
Clone found (bash)
 - scripts/tests/test-crossplane-sync-exporter.sh [186:1 - 235:2] (50 lines, 299 tokens)
   scripts/tests/test-kyverno-umami-mutation-rbac.sh [16:1 - 63:2]
Clone found (bash)
 - scripts/tests/test-crossplane-sync-exporter.sh [186:1 - 237:11] (52 lines, 303 tokens)
   scripts/tests/test-opencost-usage-scraper.sh [33:1 - 84:11]
Clone found (bash)
 - scripts/tests/test-crossplane-sync-exporter.sh [221:27 - 238:53] (18 lines, 53 tokens)
   scripts/tests/test-opencost-usage-scraper.sh [68:27 - 85:51]
Clone found (bash)
 - scripts/tests/test-headlamp-plugin-removal.sh [121:89 - 126:22] (6 lines, 65 tokens)
   scripts/tests/test-headlamp-plugin-removal.sh [165:84 - 170:22]
Clone found (bash)
 - scripts/tests/test-refresh-flux-ghcr-auth-safety.sh [348:5 - 356:51] (9 lines, 76 tokens)
   scripts/tests/test-refresh-flux-ghcr-auth-safety.sh [357:5 - 365:51]
Clone found (python)
 - scripts/tests/test_validate_homepage_bookmarks.py [46:57 - 54:54] (9 lines, 58 tokens)
   scripts/tests/test_validate_homepage_bookmarks.py [100:53 - 109:54]
Clone found (go)
 - scripts/validate-dr-signing/main_test.go [1007:13 - 1015:2] (9 lines, 51 tokens)
   scripts/validate-dr-signing/main_test.go [1075:12 - 1083:2]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [564:50 - 569:24] (6 lines, 103 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1076:31 - 1081:24]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [596:14 - 602:4] (7 lines, 115 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [923:43 - 929:4]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [622:13 - 631:7] (10 lines, 158 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1205:18 - 1214:7]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [631:1 - 636:8] (6 lines, 93 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1215:1 - 1220:8]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [708:5 - 713:2] (6 lines, 82 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [894:8 - 899:9]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [709:1 - 719:23] (11 lines, 220 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [986:60 - 997:3]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [713:15 - 724:2] (12 lines, 185 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [814:17 - 825:2]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [760:15 - 771:12] (12 lines, 264 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [969:1 - 982:3]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [823:2 - 829:19] (7 lines, 89 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1008:7 - 1014:19]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [823:2 - 829:33] (7 lines, 103 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1390:58 - 1396:33]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [823:2 - 829:4] (7 lines, 74 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1503:5 - 1509:4]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [916:30 - 921:8] (6 lines, 50 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [943:44 - 948:8]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [1030:22 - 1036:2] (7 lines, 135 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1589:22 - 1595:2]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [1328:33 - 1336:11] (9 lines, 118 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1340:130 - 1348:11]
Clone found (go)
 - scripts/validate-eks-ci-role-policy/main_test.go [1535:47 - 1540:2] (6 lines, 166 tokens)
   scripts/validate-eks-ci-role-policy/main_test.go [1615:46 - 1620:2]
Clone found (go)
 - scripts/validate-flux-verify/instance_test.go [109:62 - 126:31] (18 lines, 57 tokens)
   scripts/validate-flux-verify/instance_test.go [161:57 - 178:31]
Clone found (go)
 - scripts/validate-flux-verify/instance_test.go [109:62 - 128:35] (20 lines, 62 tokens)
   scripts/validate-flux-verify/instance_test.go [198:55 - 217:26]
Clone found (python)
 - scripts/validate-naming.py [126:52 - 132:25] (7 lines, 53 tokens)
   scripts/validate-naming.py [171:82 - 177:29]
┌────────┬────────────────┬─────────────┬──────────────┬──────────────┬──────────────────┬───────────────────┐
│ Format │ Files analyzed │ Total lines │ Total tokens │ Clones found │ Duplicated lines │ Duplicated tokens │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ bash   │ 55             │ 18446       │ 72425        │ 36           │ 490 (2.66%)      │ 3377 (4.66%)      │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ go     │ 38             │ 32847       │ 195486       │ 109          │ 890 (2.71%)      │ 8272 (4.23%)      │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ python │ 4              │ 807         │ 5606         │ 2            │ 14 (1.73%)       │ 111 (1.98%)       │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ txt    │ 1              │ 212         │ 1172         │ 0            │ 0 (0.00%)        │ 0 (0.00%)         │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ Total: │ 98             │ 52312       │ 274689       │ 147          │ 1394 (2.66%)     │ 11760 (4.28%)     │
└────────┴────────────────┴─────────────┴──────────────┴──────────────┴──────────────────┴───────────────────┘
Found 147 clones.
HTML report saved to megalinter-reports/copy-paste/jscpd-report.html
ERROR: jscpd found too many duplicates (2.7%) over threshold (0.0%)
time: 1.03s

(Truncated to last 6666 characters out of 28061)
⚠️ MARKDOWN / markdownlint - 65 errors
length Line length [Expected: 400; Actual: 439]
AGENTS.md:105:401 error MD013/line-length Line length [Expected: 400; Actual: 1126]
AGENTS.md:106:401 error MD013/line-length Line length [Expected: 400; Actual: 628]
AGENTS.md:107:401 error MD013/line-length Line length [Expected: 400; Actual: 1774]
AGENTS.md:160:401 error MD013/line-length Line length [Expected: 400; Actual: 649]
AGENTS.md:162:401 error MD013/line-length Line length [Expected: 400; Actual: 971]
AGENTS.md:189:401 error MD013/line-length Line length [Expected: 400; Actual: 970]
AGENTS.md:193:401 error MD013/line-length Line length [Expected: 400; Actual: 660]
AGENTS.md:211:401 error MD013/line-length Line length [Expected: 400; Actual: 1510]
AGENTS.md:279:401 error MD013/line-length Line length [Expected: 400; Actual: 1016]
AGENTS.md:280:401 error MD013/line-length Line length [Expected: 400; Actual: 491]
AGENTS.md:281:401 error MD013/line-length Line length [Expected: 400; Actual: 468]
AGENTS.md:287:401 error MD013/line-length Line length [Expected: 400; Actual: 532]
AGENTS.md:289:401 error MD013/line-length Line length [Expected: 400; Actual: 523]
AGENTS.md:292:401 error MD013/line-length Line length [Expected: 400; Actual: 613]
AGENTS.md:293:401 error MD013/line-length Line length [Expected: 400; Actual: 714]
AGENTS.md:297:401 error MD013/line-length Line length [Expected: 400; Actual: 502]
AGENTS.md:301:401 error MD013/line-length Line length [Expected: 400; Actual: 441]
AGENTS.md:306:401 error MD013/line-length Line length [Expected: 400; Actual: 427]
AGENTS.md:409:401 error MD013/line-length Line length [Expected: 400; Actual: 1139]
AGENTS.md:411:401 error MD013/line-length Line length [Expected: 400; Actual: 1240]
AGENTS.md:427:401 error MD013/line-length Line length [Expected: 400; Actual: 1137]
AGENTS.md:824:401 error MD013/line-length Line length [Expected: 400; Actual: 790]
AGENTS.md:829:401 error MD013/line-length Line length [Expected: 400; Actual: 515]
CLAUDE.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "@AGENTS.md"]
docs/dr/alerting.md:226:28 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:22:389 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:23:264 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:35 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:161 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:239 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:114 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Custody recommendations"]
docs/dr/crypto-custody.md:245 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Custody recommendations"]
docs/dr/crypto-custody.md:251 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "What to do if it leaks"]
docs/dr/crypto-custody.md:258 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "What to do if it is *lost* (no..."]
docs/dr/restore-drill.md:42 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:23:102 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/runbook.md:23:487 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/runbook.md:34 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:41 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:50 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:589:92 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/spire-server-ha.md:93 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/dr/velero-cnpg.md:11 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/dr/velero-cnpg.md:56:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:56:166 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:57:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:57:227 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:58:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:58:166 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/github-management.md:38:401 error MD013/line-length Line length [Expected: 400; Actual: 419]
docs/github-management.md:40:401 error MD013/line-length Line length [Expected: 400; Actual: 522]
docs/node-autoscaling.md:14 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/oidc-kubectl.md:95 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/runtime-security.md:114 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/rwx-storage.md:9 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/unifi-management.md:14 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/unifi-management.md:62 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
README.md:116:401 error MD013/line-length Line length [Expected: 400; Actual: 540]
README.md:237:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
README.md:237:36 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]

(Truncated to last 6666 characters out of 7160)
⚠️ REPOSITORY / trivy - 1 error
aquasec.com/misconfig/ksv-0125
────────────────────────────────────────
 k8s/providers/hetzner/apps/userns-longhorn-smoke/job.yaml:54-100
────────────────────────────────────────
  54 ┌         - name: write-sentinel
  55 │           image: docker.io/library/busybox:1.38.0@sha256:fd8d9aa63ba2f0982b5304e1ee8d3b90a210bc1ffb5314d980eb6962f1a9715d
  56 │           imagePullPolicy: IfNotPresent
  57 │           command:
  58 │             - /bin/sh
  59 │             - -ec
  60 │           args:
  61 │             - |
  62 └               set -eu
  ..   
────────────────────────────────────────



k8s/providers/hetzner/infrastructure/controllers/longhorn/cron-job-stale-node-cleanup.yaml (kubernetes)
=======================================================================================================
Tests: 116 (SUCCESSES: 115, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

KSV-0125 (MEDIUM): Container cleanup in cronjob longhorn-stale-node-cleanup (namespace: longhorn-system) uses an image from an untrusted registry.
════════════════════════════════════════
Ensure that all containers use images only from trusted registry domains.

See https://avd.aquasec.com/misconfig/ksv-0125
────────────────────────────────────────
 k8s/providers/hetzner/infrastructure/controllers/longhorn/cron-job-stale-node-cleanup.yaml:73-112
────────────────────────────────────────
  73 ┌             - name: cleanup
  74 │               # NOT registry.k8s.io/kubectl: that image is distroless (kubectl
  75 │               # binary only, no /bin/sh), so the shell script below could never
  76 │               # start — every run since the CronJob shipped failed with
  77 │               # StartError exit 128 "stat /bin/sh: no such file or directory"
  78 │               # (observed live 2026-07-02). alpine/k8s ships kubectl + a POSIX
  79 │               # shell; the tag tracks the kubectl minor, matching the cluster.
  80 │               image: docker.io/alpine/k8s:1.36.2@sha256:44ef4942e171939b9c665a4a84beb80e2dcdb9a24330d4651cfdfd2e9deecc47
  81 └               securityContext:
  ..   
────────────────────────────────────────



k8s/providers/hetzner/infrastructure/coroot/cron-job-alert-autosuppressor.yaml (kubernetes)
===========================================================================================
Tests: 116 (SUCCESSES: 115, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

KSV-0125 (MEDIUM): Container autosuppressor in cronjob coroot-alert-autosuppressor (namespace: observability) uses an image from an untrusted registry.
════════════════════════════════════════
Ensure that all containers use images only from trusted registry domains.

See https://avd.aquasec.com/misconfig/ksv-0125
────────────────────────────────────────
 k8s/providers/hetzner/infrastructure/coroot/cron-job-alert-autosuppressor.yaml:93-116
────────────────────────────────────────
  93 ┌             - name: autosuppressor
  94 │               # curl + jq, digest-pinned (same image as custom-cloud-pricing).
  95 │               # observability is exempt from disallow-latest-tag.
  96 │               image: docker.io/badouralix/curl-jq:latest@sha256:1e7c0284e24572ace7170df9fc91f15fd3b79ebf056d4dde17244d5d74bbfabc
  97 │               securityContext:
  98 │                 allowPrivilegeEscalation: false
  99 │                 readOnlyRootFilesystem: true
 100 │                 runAsNonRoot: true
 101 └                 runAsUser: 65532
 ...   
────────────────────────────────────────



k8s/providers/hetzner/infrastructure/coroot/cron-job-crossplane-sync-alerter.yaml (kubernetes)
==============================================================================================
Tests: 116 (SUCCESSES: 115, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

KSV-0125 (MEDIUM): Container alerter in cronjob crossplane-sync-alerter (namespace: observability) uses an image from an untrusted registry.
════════════════════════════════════════
Ensure that all containers use images only from trusted registry domains.

See https://avd.aquasec.com/misconfig/ksv-0125
────────────────────────────────────────
 k8s/providers/hetzner/infrastructure/coroot/cron-job-crossplane-sync-alerter.yaml:71-94
────────────────────────────────────────
  71 ┌             - name: alerter
  72 │               # curl + jq, digest-pinned (same image as the autosuppressor).
  73 │               # observability is exempt from disallow-latest-tag.
  74 │               image: docker.io/badouralix/curl-jq:latest@sha256:1e7c0284e24572ace7170df9fc91f15fd3b79ebf056d4dde17244d5d74bbfabc
  75 │               securityContext:
  76 │                 allowPrivilegeEscalation: false
  77 │                 readOnlyRootFilesystem: true
  78 │                 runAsNonRoot: true
  79 └                 runAsUser: 65532
  ..   
────────────────────────────────────────



k8s/providers/hetzner/infrastructure/coroot/cron-job-custom-cloud-pricing.yaml (kubernetes)
===========================================================================================
Tests: 116 (SUCCESSES: 115, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

KSV-0125 (MEDIUM): Container set-pricing in cronjob coroot-custom-cloud-pricing (namespace: observability) uses an image from an untrusted registry.
════════════════════════════════════════
Ensure that all containers use images only from trusted registry domains.

See https://avd.aquasec.com/misconfig/ksv-0125
────────────────────────────────────────
 k8s/providers/hetzner/infrastructure/coroot/cron-job-custom-cloud-pricing.yaml:77-114
────────────────────────────────────────
  77 ┌             - name: set-pricing
  78 │               # curl + jq, pinned by digest. jq replaces the former grep/sed/awk
  79 │               # JSON parsing + awk float compare with a robust, structure-tolerant
  80 │               # parse (the heartbeat CronJob still uses curlimages/curl — it has no
  81 │               # JSON to parse). No official curl+jq image exists, so this is the
  82 │               # de-facto community one, digest-pinned; observability is exempt from
  83 │               # disallow-latest-tag. Swappable for any curl+jq image.
  84 │               image: docker.io/badouralix/curl-jq:latest@sha256:1e7c0284e24572ace7170df9fc91f15fd3b79ebf056d4dde17244d5d74bbfabc
  85 └               securityContext:
  ..   
────────────────────────────────────────



📣 Notices:
  - Version 0.74.0 of Trivy is now available, current version is 0.73.0

To suppress version checks, run Trivy scans with the --skip-version-check flag

(Truncated to last 6666 characters out of 296570)

✅ Linters with no issues

actionlint, betterleaks, git_diff, grype, jsonlint, lychee, osv-scanner, prettier, prettier, revive, secretlint, shellcheck, shfmt, syft, trivy-sbom, trufflehog, v8r, v8r, yamllint, zizmor

Notices

⚠️ Your configuration references items that have been removed from MegaLinter and are ignored: REPOSITORY_GITLEAKS. See Removed linters to find their replacements.

See detailed reports in MegaLinter artifacts

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

… team gate

`🔐 Validate EKS Authorization` has failed on this branch since the Dex change
landed: narrowing the GitHub connector moves the rendered authorization-surface
fingerprint, and the new value was never approved.

Approved against the MERGE RESULT after `gh pr update-branch`, so the constant
describes what actually merges rather than a seven-commit-stale base. The
branch's earlier value (1a4f58dc) was rendered against that older main and is
correctly not approved.

Evidence:
- CI on the approved toolchain and a local render agree exactly on 78490ee9.
- The validator reports no per-resource mismatch; only the aggregate moved.
- Reverting exactly the three touched manifests to their main versions makes the
  validator PASS against the previous constant, so the merge carried no
  unrelated authorization drift.

The delta is a privilege reduction: Dex authenticates the maintainers team
instead of every devantler-tech org member. No identity, binding, resource, or
verb is added, and nothing granted to the aws/aws service account is touched.
@github-code-quality

github-code-quality Bot commented Aug 16, 2026

Copy link
Copy Markdown

Code Coverage Overview

Languages: Go

Go / code-coverage/go

The overall coverage in commit 35c8a3a in the codex/assess-vulnera... branch is 81%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/assess-vulnera... 35c8a3a +/-
scripts/kubesca...ridge/issues.go 99%
scripts/validat...-verify/main.go 97%
scripts/kubesca...e/exceptions.go 96%
scripts/kubesca...-bridge/main.go 93%
scripts/validat...ify/instance.go 87%
scripts/validat...signing/main.go 85%
scripts/validat...-policy/main.go 80%
scripts/generat...eptions/main.go 79%
scripts/kubesca...ridge/client.go 74%
scripts/annotat...checkov/main.go 54%

Updated August 17, 2026 21:27 UTC

…ility-in-actual-budget-oidc

# Conflicts:
#	k8s/bases/apps/crossview/helm-release.yaml
#	scripts/validate-eks-ci-role-policy/main.go
…merge result

The branch's previous value was rendered against an older main and did not
describe the merge result. Records the value both the required CI job and a
local render measured, with the reviewed delta unchanged.
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

The latent shared-connector gate discussed in the resolved thread is now tracked as #3187, so it is not lost when this merges. Nothing blocking remains on that thread — the change excludes no current org member.

# Conflicts:
#	scripts/validate-eks-ci-role-policy/main.go
Resolves the conflict in the authorization-fingerprint ledger.

Both parents appended to the same ledger region and each described only its own
delta -- this branch the Dex GitHub-connector narrowing, main the #2713
gateway-tenant-edit route-kind narrowing plus the #2725 Umami provisioning
grant. Neither parent's value describes the merge result, so the conflict is not
resolvable by picking a side.

Both prose records are retained, because both deltas are present in the merged
surface and neither cancels the other. Only one const survives, and it is
deliberately left at main's approved value rather than either parent's:

  NOT RE-APPROVED. The merge-result fingerprint has not been measured here.

A local render could not produce an authoritative value -- this host has kubectl
v1.36.1 and the ledger's approved renderer is v1.36.2, so the validator refuses
fail-closed rather than emitting an unapproved measurement. The required
`Validate EKS Authorization` job runs the approved toolchain and is the
authoritative renderer; its reported value is what must be approved into the
const, with the usual second independent render agreeing before this merges.
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Conflict resolved — but the fingerprint is deliberately NOT re-approved

This PR was DIRTY; GitHub's own branch update refused ("Cannot update PR branch due to conflicts").
Merged main locally instead and pushed 629bdd10. Of the three files this branch touches, only
scripts/validate-eks-ci-role-policy/main.go conflicted — the two manifest changes merged cleanly.

Why it could not be resolved by picking a side. Both parents appended to the same
authorization-ledger region and each described only its own delta:

Parent Delta it records
this branch the Dex GitHub-connector narrowing to the maintainers team
main #2713's gateway-tenant-edit route-kind narrowing and #2725's Umami provisioning grant

Both deltas are present in the merged surface and neither cancels the other, so both prose records
are retained
and only one const survives.

That const is left at main's approved value, and it is NOT a re-approval of this merge result.
Neither parent's value describes the merged surface, so writing either one in would be a false
approval of a surface nobody measured. I could not produce an authoritative local measurement
either: this host runs kubectl v1.36.1 and the ledger's approved renderer is v1.36.2, so the
validator correctly refuses fail-closed —

EKS CI role policy: unapproved renderer: kubectl=v1.36.1 kustomize=v5.8.1

That refusal is the guard working, not an obstacle to route around.

So this PR is parked on a named blocker: the merge-result fingerprint must be measured and
deliberately approved.
The required 🔐 Validate EKS Authorization job runs the approved
toolchain and is the authoritative renderer — it will now report the real value for 629bdd10 as an
unapproved rendered authorization surface fingerprint mismatch. That reported value is what should
be approved into the const, with a second independent render agreeing and a short record of the
conservation check, exactly as the surrounding entries do. Do not rubber-stamp it — confirm the
delta is only the three known changes before approving.

Unrelated but worth noting while the render was being checked: the prod overlay renders cleanly from
here right now, so the Cloudflare CDN fragility tracked in #3196 is not currently biting.

… maintainers-team narrowing

The required EKS authorization job measured 8773eaf0 for this branch's merge
result; the constant still carried main's b5b39418, which was deliberately left
un-approved while the value could not be attributed to this branch alone.

Taken at head 1d35730 with the branch level against main (behind_by 0), so the
digest describes the merge result rather than a stale rendering. Supersedes the
two earlier #2709 records, measured on merge states a later main had moved past.

Conservation: the aggregate is the ONLY control that moved — zero per-identity
mismatches, zero missing, zero duplicate, zero encrypted findings, and the same
35 unresolved-substitution notes clean main reports, so surface membership is
unchanged.

The single rendering is corroborated by two independent observations that the
leveling merge moved nothing: the required job reported this identical digest at
629bdd1 (pre-merge) and 1d35730 (post-merge), and main already contains that
merge's only k8s change (umami CronJob Checkov annotations) while passing against
the previous digest, so those annotations are not in the surface.

Still a privilege reduction on every axis: Dex authenticates the maintainers team
instead of every devantler-tech org member, and no identity, binding,
ServiceAccount, resource, or verb is added anywhere.
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

CI is green at 35c8a3a1 (33 checks, 0 failures) and the branch is CLEAN against main.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@devantler: I will review the changes at 35c8a3a1.

✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 05bf1d91-81b1-46a4-a1ad-47277e0fae2a

📥 Commits

Reviewing files that changed from the base of the PR and between feaf505 and 35c8a3a.

📒 Files selected for processing (3)
  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
  • scripts/validate-eks-ci-role-policy/main.go

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.

📜 Recent review details
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{yaml,yml}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{yaml,yml}: Never run a cluster
Put a change in the layer that matches its scope

Files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
🧠 Learnings (6)
📚 Learning: 2026-07-01T21:13:36.950Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 2359
File: k8s/bases/apps/actual-budget/helm-release.yaml:62-111
Timestamp: 2026-07-01T21:13:36.950Z
Learning: When reviewing Kustomize/Helm YAML in this repo, keep the base vs provider overlay split: `k8s/bases/apps/**` and `k8s/bases/infrastructure/**` should contain each app’s full, environment-agnostic configuration (including base-level postRenderer Kustomize patches such as deployment strategy, topology spread, probes, and env injection). `k8s/providers/{docker,hetzner}/**` should only add small provider-specific deltas (e.g., `interval`, `persistence.size`) via patch files (like `k8s/providers/<provider>/apps/<app>/patches/helm-release-patch.yaml`). If configuration is identical across providers (e.g., OIDC/OAuth env vars where `${domain}` is resolved per cluster via envsubst), it belongs in the base and must not be duplicated into provider overlays.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
📚 Learning: 2026-07-07T18:01:26.730Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 2527
File: k8s/bases/infrastructure/controllers/openfeature-operator/helm-release.yaml:50-60
Timestamp: 2026-07-07T18:01:26.730Z
Learning: For infrastructure controller HelmRelease manifests under k8s/bases/infrastructure/controllers/**, do not request reviewers to add explicit Kubernetes container `resources` (requests/limits) overrides when they are intentionally omitted. The repo relies on VPA auto-right-sizing at runtime, and adding pinned `resources` in HelmRelease values would conflict with that behavior and the chart’s default container resources. Flagging “missing resources” should be suppressed for these controller HelmReleases (e.g., kro, flagger, open-feature-operator) as long as they follow the established convention.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
📚 Learning: 2026-08-08T15:10:00.349Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 3017
File: k8s/bases/infrastructure/coroot/components/crossplane-sync-exporter/deployment.yaml:13-21
Timestamp: 2026-08-08T15:10:00.349Z
Learning: In the devantler-tech/platform repository, Checkov CI scans source manifests with `--skip-framework kustomize` rather than rendered Kustomize overlays. To suppress a Checkov finding on a base manifest, place the appropriate `checkov.io/skip*` annotation directly in that base YAML file; an overlay patch will not suppress findings reported for the source file.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
📚 Learning: 2026-08-08T15:10:00.350Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 3017
File: k8s/bases/infrastructure/coroot/components/crossplane-sync-exporter/deployment.yaml:13-21
Timestamp: 2026-08-08T15:10:00.350Z
Learning: For Kubernetes manifests under k8s/bases/, keep workload-related Checkov exception annotations (checkov.io/skip*) in the base manifest when the checked condition is defined there and CI scans that source manifest directly. Do not move these annotations to overlays solely because the base is immutable; keeping them with the workload ensures the disposition applies consistently to every consumer of the base.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
📚 Learning: 2026-08-08T21:23:32.529Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 3025
File: k8s/bases/infrastructure/controllers/kubescape/helm-release.yaml:97-133
Timestamp: 2026-08-08T21:23:32.529Z
Learning: In the devantler-tech/platform repository, modify Kubernetes manifests directly under k8s/bases/ when a configuration change should apply to all Kustomize overlays. Use provider- or cluster-specific overlay patches only for changes that are intentionally limited to those overlays.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
📚 Learning: 2026-08-11T12:41:28.242Z
Learnt from: devantler
Repo: devantler-tech/platform PR: 3082
File: k8s/bases/infrastructure/controllers/coroot/cron-job-cnpg-degraded-alert.yaml:113-120
Timestamp: 2026-08-11T12:41:28.242Z
Learning: When changing behavior in Kubernetes manifests or related documentation, review comments and documentation in YAML/YML and Markdown files for statements describing the previous behavior. Update every stale statement in the same change so the repository’s explanatory text remains consistent with the implementation.

Applied to files:

  • k8s/bases/infrastructure/controllers/dex/helm-release.yaml
  • k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml
🔇 Additional comments (5)
k8s/bases/infrastructure/controllers/dex/helm-release.yaml (1)

153-160: LGTM!

k8s/bases/infrastructure/controllers/oauth2-proxy/helm-release.yaml (1)

89-91: LGTM!

scripts/validate-eks-ci-role-policy/main.go (3)

625-642: LGTM!


687-720: LGTM!


816-862: LGTM!


📝 Walkthrough

Walkthrough

The Dex GitHub connector now allows only the maintainers team within the devantler-tech organization. Comments document continued allowed_groups use in oauth2-proxy. The authorization policy validator records measurement history, confirms unchanged authorization-resource membership, and updates the approved aggregate surface fingerprint to 8773eaf....

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: restricting Dex GitHub authentication to maintainers.
Description check ✅ Passed The description explains the authorization risk, configuration changes, and validation performed for the Dex maintainer restriction.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Readiness at 35c8a3a1 — all three conditions proven

1. Programmatically tested. 33 checks, 0 failures, mergeStateStatus: CLEAN. This carries its own RED/GREEN proof: the required 🔐 Validate EKS Authorization job failed at 1d357303 reporting 8773eaf0, and passes at 35c8a3a1 with that value approved. Nothing else changed between the two heads.

2. Reviewed. CodeRabbit green at this exact head — auto-generated summary refreshed 21:31:04Z after the 21:25Z request, naming the full head 35c8a3a15a969d11ca9a7f8504e6981f5567c60f, verdict "No actionable comments were generated", and its only collapsed section is the excluded 🔇 Additional comments (5). No rate-limit or service marker. Corroborated by the head's CodeRabbit status reading Review completed. 0 unresolved threads, 0 non-thread findings.

3. Tried and evaluated as a user. The consumer of this constant is the required job, and I watched it change behaviour across the two heads rather than tracing the code path. The substance was verified before approving, not rubber-stamped:

  • The branch was levelled to behind_by=0 first, so the digest describes the merge result rather than a stale rendering.
  • The digest was predicted before it was read. main already contains the levelling merge's only k8s change — Checkov skip annotations on the umami CronJob — and the required job passes on main against the previous digest, so those annotations are provably not in the surface. Prediction: the value should be unchanged from the pre-merge head. CI then reported the identical 8773eaf0 at both 629bdd10 and 1d357303.
  • Membership is unchanged: 0 per-identity mismatches, 0 missing, 0 duplicate, 0 encrypted findings — exactly one problem, the aggregate. The 35 unresolved-substitution notes are the same count clean main reports, and are diagnostic rather than a control (the validator's own comment says so, and they are emitted only alongside an aggregate mismatch to explain a hash that moved).
  • The committed constant was asserted byte-equal to the digest CI reported, with an empty-value guard and a negative control against the old value.

One renderer stands behind the digest, and that is stated rather than glossed — the approved CI toolchain. The local kubectl here is v1.36.1 against an approved v1.36.2, so validateRendererVersion fails closed and cannot corroborate. The two independent observations above are evidence about what did not move; they are not a second rendering of what did.

Promoting and enqueuing.

@devantler
devantler marked this pull request as ready for review August 17, 2026 21:34
@devantler
devantler added this pull request to the merge queue Aug 17, 2026
Merged via the queue into main with commit 6c5506f Aug 17, 2026
33 checks passed
@devantler
devantler deleted the codex/assess-vulnerability-in-actual-budget-oidc branch August 17, 2026 21:43
@github-project-automation github-project-automation Bot moved this from 🫴 Ready to ✅ Done in 🌊 Project Board Aug 17, 2026
devantler added a commit that referenced this pull request Aug 17, 2026
main merged #2709, which re-approved expectedRenderedSurfaceSHA for the Dex
maintainers-team narrowing, while this branch had re-approved it for the Longhorn
orphan-reclamation chart value. Both parents therefore moved the same constant and
each described only its own delta, so neither value describes the merge result and
the conflict cannot be resolved by picking a side.

Resolved by retaining BOTH measurement records — both deltas are present in the
merged surface — and leaving the constant as an explicitly-flagged UNMEASURED
placeholder at main's value. The required job is expected to reject it and report
the merge result's actual digest, which must be recorded before promotion.

The superseded #3181 digest 489afc66 is kept in full as a record so the
measurement taken at 74676d5 is not lost.

Both deltas remain individually measured and individually authorization-neutral or
privilege-reducing, and neither moved surface membership; only their aggregate is
unmeasured.
devantler added a commit that referenced this pull request Aug 17, 2026
…erge result

The required job rejected the carried-through placeholder and reported the
merge result's actual digest. Conservation measured against this branch's own
pre-merge rendering: 35 substitution notes both sides, zero resources added,
removed or duplicated, and exactly two per-identity fingerprints moved - the
dex and oauth2-proxy HelmReleases, which are precisely the two manifests #2709
changes and are already approved on main.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant