GeezerVison is showing github.com — fix(security): reject floating workflow refs in cosign subject matchers by devantler · Pull Request #2816 · devantler-tech/platform
Conversation
devantler
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Why
Our apps only deploy artifacts that carry a valid signature from our own publishing workflow. Until now the rule checking that signature accepted the workflow signed from any ref of itself — including a moving branch like main. A moving branch is the weak link: what it points at can change after anyone last looked at it.
Three of the rules also still accepted a second, now-archived source repository, left over from a workflow move that finished a fortnight ago.
What
The four live artifact trust rules now accept a signature only from a fixed ref — a commit or a release tag — and only from the one repository that still publishes. A signature produced from a moving branch no longer verifies.
To be precise about the limit: this rejects moving refs, it does not restrict which fixed revision is acceptable. Narrowing further to an approved revision list is a real hardening step, but it would need every workflow release to be shepherded across these files or verification breaks — so it is tracked separately rather than smuggled in here.
No change to what is deployed today — every currently-deployed artifact already satisfies the stricter rule, checked against the real signatures first.
Security floor: an artifact signed from a moving workflow ref is now rejected.
Everyday path: unchanged — the workflows are already pinned by commit, so nobody has to do anything differently.
Operational note
This governs live verification: if the stricter rule were wrong, the affected sources would stop reconciling. The deployed artifacts were checked against their actual signatures first, and it is a single-commit revert.
Two deliberate exclusions, each tracked: the same matcher in the tenant template (#2817), and the same weakness at the container-image layer (#2815 — larger blast radius). Neither is a live rule today.
Fixes #2402
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Verification record
Real signatures read, not inferred. For the two public packages the signing certificate was pulled from GHCR (manifest → sigstore bundle → openssl x509) and its SAN read directly:
| Deployed artifact |
Certificate SAN |
github-config 1.20.2 |
…/devantler-tech/actions/.github/workflows/publish-manifests.yaml@061b345a7351b0caf23055caea63ccd08b75e20e |
aws 1.1.2 |
…/devantler-tech/actions/.github/workflows/publish-manifests.yaml@5aa2657f976103d716f585266a0fa4e964594df2 |
Both are the actions repo and a bare 40-hex SHA — so the tightened pattern matches what is actually deployed, and the dropped reusable-workflows alternation is genuinely dead.
wedding-app 1.15.9 and ascoachingogvaner 1.13.2 are private packages and the host PAT has no read:packages, so their certificates could not be read the same way. Their provenance was established instead from the publish path: each release tag's cd.yaml pins the workflow by 40-hex SHA (84813ae6… and edb63f9e… respectively), and the SAN-equals-the-caller's-literal-ref mechanism is the one confirmed by the two certificates above. Stated plainly because it is an inference, not a direct read.
RED/GREEN
Regexes were extracted from the changed files (not retyped) and run against every case. 20/20 pass, 0 fail:
- Accepts: all four real deployed SHAs; a tag-pinned ref (
@refs/tags/v10.1.4).
- Rejects:
@main, @refs/heads/main, an empty ref, a 39-hex SHA, an uppercase-hex SHA, the archived reusable-workflows repo, and a wrong-owner repo.
The tag branch is retained deliberately: talos/cluster/verify-first-party-images.yaml already uses @refs/tags/v.+$ for ksail, which independently confirms GitHub renders a tag-pinned caller that way.
Validation
ksail workload validate and ksail --config ksail.prod.yaml workload validate — 543 files validated, exit 0 on both overlays, re-run after the tenant-template change. kubectl kustomize builds clean for all four app paths and the tenant RGD, and the tightened matcher is present in each built output.
Scope
Self-review caught that the first pass covered only four files and missed the tenant ResourceGraphDefinition — the template every new tenant is generated from. Without it the fix would not have stuck: new tenants would keep inheriting the loose rule. Now included (5 files).
The same weakness at the container-image layer (verify-first-party-images.yaml, verify-app-images.yaml) is deliberately excluded — larger blast radius (ImagePullBackOff rather than a stalled source) and it needs per-image-family evidence. Tracked as #2815.
Not yet done
User evaluation. This changes live verification, so the observable effect is the three affected OCIRepository objects staying Ready after the change reaches the cluster. That can only be observed post-merge; it will be checked against the live cluster then, and the change is a single-commit revert if any source stops reconciling.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️ BASH / bash-exec - 1 error
Results of bash-exec linter (version 5.3.9)
See documentation on https://megalinter.io/9.6.0/descriptors/bash_bash_exec/
-----------------------------------------------
❌ [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/refresh-flux-ghcr-auth.sh
✅ [SUCCESS] scripts/run-ksail-prod-with-pull-auth.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/wait-for-platform-flux-revision.sh
⚠️ REPOSITORY / checkov - 70 errors
16 | - secretKey: red**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/apps/fleetdm/helm-release.yaml:328-329
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
328 | existingSecretPasswordKey: red**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/apps/headlamp/external-secret.yaml:15-16
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
15 | - secretKey: cli**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/apps/umami/helm-release.yaml:118-119
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
118 | existingSecret: umam**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/apps/wedding-app/external-secret-ghcr-auth.yaml:34-35
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
34 | - secretKey: dock**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/controllers/dex/external-secret.yaml:30-31
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
30 | - secretKey: cli**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/controllers/velero/helm-release.yaml:108-109
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
108 | existingSecret: veler**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/external-secrets/ghcr-auth.yaml:25-26
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
25 | - secretKey: dock**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/resource-graph-definitions/tenant/resource-graph-definition.yaml:166-167
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
166 | - secretKey: dock**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-config/external-secret.yaml:15-16
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
15 | - secretKey: dex-**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/push-secret-seed-actual-budget-enablebanking.yaml:26-27
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
26 | secretKey: app**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/push-secret-seed-oauth2-proxy-cookie-secret.yaml:17-18
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
17 | secretKey: oauth2**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/push-secret-seed-r2-credentials.yaml:44-45
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
44 | secretKey: r2_a**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/push-secret-seed-r2-credentials.yaml:49-50
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
49 | secretKey: r2_se**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/push-secret-seed-velero-repo-credentials.yaml:36-37
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
36 | secretKey: repo**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/bases/infrastructure/vault-seed/secret-actual-budget-encryption-placeholder.yaml:25-26
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
25 | password: PL**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/providers/hetzner/apps/unifi/external-secret-wireguard.yaml:26-27
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
26 | - secretKey: pr**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/providers/hetzner/apps/unifi/external-secret-wireguard.yaml:30-31
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
30 | - secretKey: pee**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/providers/hetzner/infrastructure/cluster-issuers/cloudflare-api-token-external-secret.yaml:15-16
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
15 | - secretKey: ap**********
Check: CKV_SECRET_6: "Base64 High Entropy String"
FAILED for resource: HIDDEN_BY_MEGALINTER File: /k8s/providers/hetzner/infrastructure/external-dns/external-secret.yaml:24-25
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/secrets-policies/secrets-policy-index/git-secrets-6
24 | - secretKey: ap**********
github_actions scan results:
Passed checks: 175, Failed checks: 0, Skipped checks: 1
(Truncated to last 6666 characters out of 29064)
⚠️ SPELL / cspell - 1696 errors
"Bitwarden",
"CAROOT",
"CISA",
"CNPG",
"CNPG's",
"Ciphertext",
"Clusterwide",
"Cmdline",
"Coroot",
"Coroot's",
"Crossplane",
"Crossplane's",
"Crossview",
"DDNS",
"DNAT'd",
"Datapath",
"Descheduler",
"Devantler",
"ENOBUFS",
"FANOUT",
"Farah",
"Fulcio",
"Fulcio's",
"HSTS",
"Initialise",
"JSONSHA",
"KSAIL",
"KUBECONFIG",
"Karpenter",
"Kopia",
"Kubescape",
"Kubescape's",
"Kustomization",
"Kustomizations",
"Kyverno",
"Kyverno's",
"LOCALREGISTRY",
"LUKS",
"Opsgenie",
"PITR",
"Prereqs",
"Productionisation",
"Productionising",
"Rekor",
"SHFMT",
"SLSA",
"SNAT'd",
"SPIFFE",
"SPOF",
"SVID",
"SVIDs",
"SYFT",
"Shamir",
"Sigstore",
"Sigstore's",
"Synchronised",
"Syscall",
"TOCTOU",
"Testkube",
"Umami",
"VXLAN",
"Valkey",
"Velero",
"Velero's",
"Virt",
"WLANs",
"Yubi",
"ZIZMOR",
"alertmanager",
"alertname",
"analysed",
"anchore",
"antiaffinity",
"apid",
"apiserver",
"apiserver's",
"artipacked",
"ascoachingogvaner",
"ascoachingogvaner's",
"authorised",
"automerged",
"automount",
"autoscalers",
"backupstoragelocations",
"baselining",
"bcdfghjklmnpqrstvwxz",
"behaviour",
"behavioural",
"betterleaks",
"bitnami",
"blocklist",
"browsable",
"buildx",
"burstable",
"callsite",
"chokepoint",
"ciphertext",
"clickhouse",
"cloudnative",
"cloudprovider",
"clusterpolicies",
"clusterrolebindings",
"clusterroles",
"cmdline",
"cnpg",
"coderabbit",
"configmap",
"controlplane",
"controlplaneio",
"cooldown",
"coroot",
"crashloop",
"crashloops",
"creds",
"crossplane",
"crossview",
"curlrc",
"customise",
"cutover",
"cyclonedx",
"datapath",
"datreeio",
"dbname",
"defence",
"deletecollection",
"deploymentruntimeconfigs",
"descheduler",
"descheduling",
"devantler",
"diffable",
"dockerconfigjson",
"docstrings",
"dorny",
"dpkg",
"endgroup",
"envsubst",
"esac",
"etcdctl",
"externalsecret",
"externalsecrets",
"fanout",
"featureflagsource",
"fleetdm",
"gatewayapi",
"generatable",
"generatingpolicies",
"genkey",
"gethomepage",
"gitops",
"golangci",
"gosec",
"grjtvs",
"growfs",
"growpart",
"healthchecks",
"healthz",
"helmrelease",
"helmreleases",
"helmv",
"homelab",
"hostnames",
"httproute",
"imagetools",
"imranismail",
"inspectable",
"iscsi",
"keypair",
"kprobes",
"kptr",
"krew",
"ksail",
"ksail's",
"kubeconfig",
"kubeconform",
"kubeconform's",
"kubelet",
"kubelets",
"kubelogin",
"kubescape",
"kubespan",
"kubevirt",
"kubevuln",
"kustomization",
"kustomizations",
"kyverno",
"libc",
"libgnutls",
"lintable",
"livez",
"loadtester",
"luks",
"lycheeignore",
"machineconfig",
"materialise",
"materialised",
"materialises",
"maxage",
"maxbackup",
"maxsize",
"misconfigs",
"mktemp",
"mlock",
"mutatingpolicies",
"myapp",
"najsk",
"neighbour",
"netlink",
"netpol",
"netpols",
"nftables",
"nilnil",
"nodepod",
"nodeport",
"nolint",
"openbao",
"opencost",
"openfeature",
"oras",
"overprovisioning",
"parallelised",
"pasteable",
"permissioning",
"pipefail",
"policyignore",
"policyreports",
"portforward",
"preemptible",
"preservingly",
"prioritised",
"privesc",
"providerconfigs",
"pushsecret",
"pushsecrets",
"rdqwpktr",
"readyz",
"recognise",
"reconverges",
"regenerable",
"releaserc",
"rematerialise",
"rematerialised",
"repoint",
"repointed",
"repoints",
"repositoryrulesets",
"resizer",
"restrictor",
"retabbed",
"rmem",
"rolebindings",
"rollouts",
"rshared",
"scopeable",
"seccomp",
"secretbox",
"secretstore",
"seedable",
"serviceaccount",
"serviceaccounts",
"sgdisk",
"shellcheck",
"shfmt",
"siderolabs",
"siderolink",
"sigstore",
"skmde",
"spiffe",
"srole",
"startswith",
"statefulset",
"statemanager",
"stdlib",
"storageclass",
"syft",
"syft's",
"syscall",
"sysctls",
"talosconfig",
"talosctl",
"tanzu",
"templatesyncignore",
"thresholded",
"tostring",
"tracepoints",
"trixie",
"trustd",
"umami",
"umami's",
"uncertifiable",
"unifi",
"unmarshalling",
"unrecognised",
"unreviewed",
"unroutable",
"unshippable",
"untrackable",
"upbound",
"updatekeys",
"upjet",
"upstreaming",
"urlencode",
"userns",
"ushfn",
"validatable",
"vcunav",
"velero",
"volumesnapshot",
"vxlan",
"wffc",
"wgpolicyk",
"wmem",
"worktrees",
"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 282757)
⚠️ COPYPASTE / jscpd - 84 errors
- .agents/skills/gitops-cluster-debug/assets/schemas/receiver-notification-v1.fields.txt [1:1 - 40:142] (40 lines, 1533 tokens)
.agents/skills/gitops-knowledge/assets/schemas/receiver-notification-v1.fields.txt [1:1 - 40:142]
Clone found (txt)
- .agents/skills/gitops-cluster-debug/assets/schemas/receiver-notification-v1.fields.txt [1:1 - 40:142] (40 lines, 1533 tokens)
.agents/skills/gitops-repo-audit/assets/schemas/receiver-notification-v1.fields.txt [1:1 - 40:142]
Clone found (txt)
- .agents/skills/gitops-cluster-debug/assets/schemas/resourceset-fluxcd-v1.fields.txt [1:1 - 62:177] (62 lines, 2110 tokens)
.agents/skills/gitops-knowledge/assets/schemas/resourceset-fluxcd-v1.fields.txt [1:1 - 62:177]
Clone found (txt)
- .agents/skills/gitops-cluster-debug/assets/schemas/resourceset-fluxcd-v1.fields.txt [1:1 - 62:177] (62 lines, 2110 tokens)
.agents/skills/gitops-repo-audit/assets/schemas/resourceset-fluxcd-v1.fields.txt [1:1 - 62:177]
Clone found (txt)
- .agents/skills/gitops-cluster-debug/assets/schemas/resourcesetinputprovider-fluxcd-v1.fields.txt [1:1 - 48:211] (48 lines, 1572 tokens)
.agents/skills/gitops-knowledge/assets/schemas/resourcesetinputprovider-fluxcd-v1.fields.txt [1:1 - 48:211]
Clone found (txt)
- .agents/skills/gitops-cluster-debug/assets/schemas/resourcesetinputprovider-fluxcd-v1.fields.txt [1:1 - 48:211] (48 lines, 1572 tokens)
.agents/skills/gitops-repo-audit/assets/schemas/resourcesetinputprovider-fluxcd-v1.fields.txt [1:1 - 48:211]
Clone found (bash)
- .agents/skills/gitops-repo-audit/scripts/check-deprecated.sh [57:1 - 71:2] (15 lines, 75 tokens)
.agents/skills/gitops-repo-audit/scripts/discover.sh [70:1 - 84:2]
Clone found (bash)
- scripts/tests/test-cilium-bandwidth-manager-component.sh [9:1 - 54:2] (46 lines, 202 tokens)
scripts/tests/test-cilium-homogeneous-devices-activation.sh [9:1 - 54:2]
Clone found (bash)
- scripts/tests/test-cilium-bandwidth-manager-component.sh [52:5 - 72:2] (21 lines, 67 tokens)
scripts/tests/test-cilium-homogeneous-devices-activation.sh [91:23 - 111:2]
Clone found (python)
- scripts/tests/test_refresh_flux_ghcr_auth.py [633:56 - 645:69] (13 lines, 81 tokens)
scripts/tests/test_refresh_flux_ghcr_auth.py [691:66 - 703:69]
Clone found (python)
- scripts/tests/test_refresh_flux_ghcr_auth.py [732:9 - 738:72] (7 lines, 66 tokens)
scripts/tests/test_refresh_flux_ghcr_auth.py [1153:9 - 1158:72]
Clone found (python)
- scripts/tests/test_refresh_flux_ghcr_auth.py [1274:58 - 1280:59] (7 lines, 52 tokens)
scripts/tests/test_refresh_flux_ghcr_auth.py [1327:43 - 1333: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-eks-ci-role-policy/main_test.go [244:50 - 249:24] (6 lines, 103 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [756:31 - 761:24]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [276:14 - 282:4] (7 lines, 115 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [603:43 - 609:4]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [388:5 - 393:2] (6 lines, 82 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [574:8 - 579:9]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [389:1 - 399:23] (11 lines, 220 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [666:60 - 677:3]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [393:15 - 404:2] (12 lines, 185 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [494:17 - 505:2]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [440:15 - 451:12] (12 lines, 264 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [649:1 - 662:3]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:19] (7 lines, 89 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [688:7 - 694:19]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:33] (7 lines, 103 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [943:58 - 949:33]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:4] (7 lines, 74 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1056:5 - 1062:4]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [596:30 - 601:8] (6 lines, 50 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [623:44 - 628:8]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [881:33 - 889:11] (9 lines, 118 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [893:130 - 901:11]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [1088:47 - 1093:2] (6 lines, 166 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1142:46 - 1147:2]
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 │ 12 │ 2399 │ 9201 │ 3 │ 79 (3.29%) │ 344 (3.74%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ go │ 7 │ 3951 │ 41923 │ 12 │ 84 (2.13%) │ 1569 (3.74%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ python │ 5 │ 2551 │ 14243 │ 5 │ 38 (1.49%) │ 310 (2.18%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ txt │ 57 │ 3378 │ 109125 │ 64 │ 2417 (71.55%) │ 80219 (73.51%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ Total: │ 81 │ 12279 │ 174492 │ 84 │ 2618 (21.32%) │ 82442 (47.25%) │
└────────┴────────────────┴─────────────┴──────────────┴──────────────┴──────────────────┴───────────────────┘
Found 84 clones.
HTML report saved to megalinter-reports/copy-paste/jscpd-report.html
ERROR: jscpd found too many duplicates (21.3%) over threshold (0.0%)
time: 708.982ms
(Truncated to last 6666 characters out of 21206)
⚠️ MARKDOWN / markdownlint - 63 errors
hould have a language specified [Context: "```"]
AGENTS.md:101:401 error MD013/line-length Line length [Expected: 400; Actual: 1769]
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: 1447]
AGENTS.md:121:401 error MD013/line-length Line length [Expected: 400; Actual: 649]
AGENTS.md:123:401 error MD013/line-length Line length [Expected: 400; Actual: 971]
AGENTS.md:150:401 error MD013/line-length Line length [Expected: 400; Actual: 970]
AGENTS.md:153:401 error MD013/line-length Line length [Expected: 400; Actual: 453]
AGENTS.md:172:401 error MD013/line-length Line length [Expected: 400; Actual: 846]
AGENTS.md:241:401 error MD013/line-length Line length [Expected: 400; Actual: 491]
AGENTS.md:242:401 error MD013/line-length Line length [Expected: 400; Actual: 468]
AGENTS.md:248:401 error MD013/line-length Line length [Expected: 400; Actual: 532]
AGENTS.md:250:401 error MD013/line-length Line length [Expected: 400; Actual: 523]
AGENTS.md:253:401 error MD013/line-length Line length [Expected: 400; Actual: 613]
AGENTS.md:254:401 error MD013/line-length Line length [Expected: 400; Actual: 714]
AGENTS.md:258:401 error MD013/line-length Line length [Expected: 400; Actual: 502]
AGENTS.md:262:401 error MD013/line-length Line length [Expected: 400; Actual: 441]
AGENTS.md:267:401 error MD013/line-length Line length [Expected: 400; Actual: 427]
AGENTS.md:370:401 error MD013/line-length Line length [Expected: 400; Actual: 1012]
AGENTS.md:372:401 error MD013/line-length Line length [Expected: 400; Actual: 1240]
AGENTS.md:377:401 error MD013/line-length Line length [Expected: 400; Actual: 430]
AGENTS.md:388:401 error MD013/line-length Line length [Expected: 400; Actual: 1230]
AGENTS.md:399:401 error MD013/line-length Line length [Expected: 400; Actual: 790]
AGENTS.md:404: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:213: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:486: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 6992)
⚠️ REPOSITORY / trivy - 1 error
er/infrastructure/vertical-pod-autoscalers/spire-agent.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: spire-agent
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml (kubernetes)
============================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'spire-server' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: StatefulSet
11 └ name: spire-server
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: StatefulSet
11 └ name: spire-server
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml (kubernetes)
=================================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'tetragon-operator' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: Deployment
11 └ name: tetragon-operator
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: Deployment
11 └ name: tetragon-operator
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml (kubernetes)
========================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'tetragon' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: tetragon
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: tetragon
────────────────────────────────────────
ksail.prod.yaml (kubernetes)
============================
Tests: 118 (SUCCESSES: 117, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
ksail.prod.yaml:7-249
────────────────────────────────────────
7 ┌ name: prod
8 │ spec:
9 │ cluster:
10 │ distributionConfig: talos
11 │ connection:
12 │ context: admin@prod
13 │ timeout: 30m
14 │ distribution: Talos
15 └ provider: Hetzner
..
────────────────────────────────────────
ksail.yaml (kubernetes)
=======================
Tests: 118 (SUCCESSES: 117, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
ksail.yaml:7-55
────────────────────────────────────────
7 ┌ name: local
8 │ spec:
9 │ cluster:
10 │ distributionConfig: talos-local
11 │ connection:
12 │ context: admin@local
13 │ timeout: 40m
14 │ distribution: Talos
15 └ provider: Docker
..
────────────────────────────────────────
📣 Notices:
- Version 0.72.0 of Trivy is now available, current version is 0.71.2
To suppress version checks, run Trivy scans with the --skip-version-check flag
(Truncated to last 6666 characters out of 791293)
✅ Linters with no issues
actionlint, betterleaks, git_diff, golangci-lint, grype, jsonlint, lychee, osv-scanner, prettier, prettier, revive, secretlint, shellcheck, shfmt, syft, trivy-sbom, trufflehog, v8r, v8r, yamllint, zizmor
Notices
📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)
See detailed reports in MegaLinter artifacts

Show us your support by starring ⭐ the repository
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The four OCIRepository trust rules matched the signing workflow ref with
@.+, so an artifact signed from any ref of the workflow repo verified --
including a floating branch such as @main or a superseded SHA. Consumers
only ever invoke the publish workflows from SHA-pinned refs, so the ref
part is now anchored to a 40-hex commit SHA or a release tag.
Three of them also still carried a (reusable-workflows|actions) repo
alternation from the actions#425 repoint. reusable-workflows is archived
and every currently deployed artifact is actions-signed, so it is dropped.
Verified against the live signatures: the deployed github-config (1.20.2)
and aws (1.1.2) artifacts' certificate SANs were read from GHCR and both
carry a bare 40-hex SHA. wedding-app (1.15.9) and ascoachingogvaner
(1.13.2) resolve to publish runs whose cd.yaml pins the workflow by SHA.
The identical matcher in the tenant ResourceGraphDefinition is deliberately
left for a follow-up: it sits inside the rendered authorization surface, so
tightening it moves the aggregate fingerprint the EKS authorization guard
pins, and that guard requires a per-entry surface measurement before
re-approval.
Fixes #2402
🤖 Generated by the Agentic Engineer
Scope narrowed after a CI signal — now 4 files, not 5
The first push also tightened the same matcher in the tenant ResourceGraphDefinition. That turned 🔐 Validate EKS Authorization red (run 30202725015): the RGD sits inside the rendered authorization surface, so editing it moves the aggregate fingerprint that guard pins.
The guard is right to stop it, and main.go states the bar for clearing it — "Do NOT treat a moved hash as self-evidently benign: re-run the per-entry membership measurement above before re-approving." That measurement needs a render of both trees, and this host has no Go toolchain, so it could not be run. Copying the new hash out of the CI failure would have been exactly the blind re-approval that comment forbids on a security gate, so the RGD change was removed instead and is tracked in #2817.
Attribution, from CI rather than assumption: with the RGD reverted and the four OCIRepository files unchanged, this push re-tests whether those four are surface-neutral. If the guard goes green, the RGD was the sole cause.
Diagnostic worth recording: the failing run reported the aggregate mismatch only — no unapproved rendered <identity> fingerprint, no missing, no duplicate — so no individually pinned grant-bearing object moved.
Follow-ups filed
Everything in the verification record above still holds for the four files that remain.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Correction: the four OCIRepository files are NOT surface-neutral
My previous comment predicted that reverting the tenant RGD would turn 🔐 Validate EKS Authorization green, isolating the RGD as the cause. That was wrong, and CI falsified it — the guard still fails at 6132a52e with only the four OCIRepository files changed. An OCIRepository carrying a ghcr-auth secretRef is itself inside the selected authorization surface, so any edit to these files moves the aggregate fingerprint.
So this PR cannot go green without re-approving expectedRenderedSurfaceSHA. That is not avoidable by narrowing.
The per-entry membership measurement — done, and it is clean
The constant's comment requires a per-entry measurement before re-approval. A Go toolchain is not needed for it (this host has none — the toolchain was removed by an unrelated Homebrew incident this morning); membership is a render diff, and kubectl is sufficient. Rendering the five authorization overlays for both trees:
|
main @ 607ad87 |
this branch @ 6132a52 |
| Documents in the rendered surface |
503 |
503 |
- No entry added, removed or renamed.
- The entire textual delta is 4 lines — each the
subject: matcher of one app OCIRepository (github-config, wedding-app, ascoachingogvaner, aws).
- No RBAC object, ServiceAccount, RoleBinding, ClusterRole, pinned authorization resource or substitution source moves.
- The change therefore adds, removes and repoints no grant-bearing object — the gate moved because these documents are in the surface, not because a privilege changed.
New aggregate fingerprint reported by the guard at this head:
aba2c747530f3742b4fa2571e0c216c9722d7b9540bfea3dfc797d692e0b54f9
(previous approved value: 9c50a90deac105597b57e0308e3d1f6d61b987dbabefc55af4ff2eaad80a9f43)
Reproduce with:
kubectl kustomize k8s/providers/hetzner/apps
kubectl kustomize k8s/providers/hetzner/infrastructure
kubectl kustomize k8s/providers/hetzner/infrastructure/controllers
kubectl kustomize k8s/clusters/prod/bootstrap
kubectl kustomize k8s/clusters/prod
concatenated with --- separators, for both trees, then diff.
Blocked: I am not permitted to edit the security baseline
Applying that re-approval means editing expectedRenderedSurfaceSHA in scripts/validate-eks-ci-role-policy/main.go. My runtime's permission layer refuses that edit, and that is a reasonable guard on a security constant — so I have deliberately not attempted to work around it, and the file is untouched on this branch.
This PR therefore stays a draft, blocked on that one line. Everything else is done: validation green on both overlays (543 files each), 20/20 RED/GREEN on the shipped regexes, real signatures read for two of four artifacts, and the measurement above recorded so whoever applies the constant does not have to redo it.
The measurement is the part that is easy to get wrong and expensive to redo; it is now on the record.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Tightening the four cosign subject matchers moves the aggregate surface
fingerprint, because an OCIRepository carrying a ghcr-auth secretRef is
itself inside the selected authorization surface.
Measured before re-approving, per the constant's own instruction: both
trees render 503 documents with no entry added, removed or renamed, and
the whole delta is the four subject lines. The validator reports no
per-resource fingerprint mismatch, no missing and no duplicate resource,
so the change adds, removes and repoints no grant-bearing object.
RED/GREEN proved with the test cache disabled: green at this value,
red (different hash) when any one matcher is loosened back to @.+, green
again on restore. The gate still fires; it is re-approved, not disabled.
🤖 Generated by the Agentic Engineer
CI is fully green at 8783224951 (24 pass / 0 fail), including 🔐 Validate EKS Authorization.
@coderabbitai review
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@devantler: Thanks—I'll review the current PR state, including the tightened Cosign subject matchers and the authorization-baseline update.
✅ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

📝 Walkthrough
Walkthrough
The four Flux OCIRepository manifests now use narrower cosign OIDC subject patterns tied to specific GitHub Actions publishing workflows and restricted to 40-character commit SHAs or versioned release tags. The EKS CI role policy validator’s expected rendered authorization-surface SHA and related documentation were also updated.
Possibly related issues
- devantler-tech/platform#2817: Directly covers the four OCIRepository matcher tightenings and the resulting authorization-surface fingerprint update.
Possibly related PRs
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Linked Issues check |
✅ Passed |
The PR updates the targeted OCIRepository verify rules to accept only pinned SHAs or release tags, matching #2402. |
| Out of Scope Changes check |
✅ Passed |
The extra fingerprint update supports the tightened verification surface and is not unrelated to the issue. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Title check |
✅ Passed |
The title accurately summarizes the main change: tightening cosign subject matchers to reject floating workflow refs. |
| Description check |
✅ Passed |
The description is clearly related and explains the same security hardening applied to the OCIRepository verification rules. |
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
CodeRabbit reported Review limit reached at this head, was re-requested after its stated window elapsed, and reported the same. Recording that as a completed no-gate outcome and advancing to lane 2.
CI is green at 8783224951 — 24 pass / 0 fail, including 🔐 Validate EKS Authorization.
@codex review
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Unblocked — the surface is re-approved, and CI is green
The earlier blocker is resolved. expectedRenderedSurfaceSHA is updated to aba2c747… with the measurement recorded in the constant's comment, and CI is now 24 pass / 0 fail, including 🔐 Validate EKS Authorization.
The hash was computed locally, not copied from the CI error. The host's Go toolchain turned out to be present but unlinked after this morning's Homebrew incident; once linked, go test reproduced the failure and printed the same fingerprint CI reported — two independent derivations agreeing.
RED/GREEN, with the test cache disabled:
| State |
Result |
| Re-approved value, matchers tightened |
ok — passes |
One matcher loosened back to @.+ |
fails, different hash (aae6e55b…) |
| Restored |
ok — passes |
The gate is re-approved, not disabled. Worth recording that the first RED probe wrongly reported success: Go caches test results and the manifests live outside the package, so the cache served a stale pass. -count=1 is required for any probe that changes only YAML.
Re-verified against what is deployed now
The deployed github-config artifact moved from 1.20.2 to 1.21.0 while this PR was open, so the original evidence was against a version that is no longer live. Re-read the certificate for 1.21.0:
…/devantler-tech/actions/.github/workflows/publish-manifests.yaml@061b345a7351b0caf23055caea63ccd08b75e20e
Checked against the exact regex this PR ships — matches. aws 1.1.2, wedding-app 1.15.9 and ascoachingogvaner 1.13.2 are unchanged from the earlier evidence.
Still an inference, stated plainly
wedding-app and ascoachingogvaner are private packages and the host PAT lacks packages: read, so their certificates still cannot be read directly — retried with both GHCR auth forms, 403 on each. Their provenance remains established from the publish path rather than the certificate.
That gap closes at merge rather than before it: these OCIRepository objects reconcile on a 1-minute interval, so the live cluster confirms or refutes within a minute of the change landing. It will be checked there, and the change is a single-commit revert.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Rate-limit window has elapsed; re-requesting at the same head.
@coderabbitai review
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@devantler: Reviewing the current PR state at 8783224951, including the tightened Cosign subject matchers and the authorization-surface baseline update.
✅ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8783224951
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Codex left one P1 at this head; it is answered and its thread resolved (the valid half — an overclaim in the PR body — is corrected; the prescription is declined with reasoning and tracked as #2818). No files changed, so the head is unchanged. Restarting the review loop at lane 1.
@coderabbitai review
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@devantler: Reviewing the current PR state at 8783224951.
✅ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Readiness at 8783224951
Programmatically tested.
- The guard's own test, run locally with
-count=1: green at the re-approved value; red (different hash) when any one matcher is loosened back to @.+; green again on restore. The gate is re-approved, not disabled.
ksail workload validate and ksail --config ksail.prod.yaml workload validate: 543 files, exit 0 on both overlays.
- Regex proof, patterns extracted from the shipped files rather than retyped: 20/20 — accepts all four real deployed SHAs and a tag-pinned ref; rejects
@main, @refs/heads/main, an empty ref, a 39-hex SHA, an uppercase-hex SHA, the archived reusable-workflows repo, and a wrong-owner repo.
- CI: 24 pass / 0 fail, including
🔐 Validate EKS Authorization.
Reviewed. Codex raised one P1 at this head; the valid half (an overclaim in the PR body) is corrected, the prescription is declined with reasoning and tracked as #2818, and the thread is resolved. The loop restarted at lane 1 and CodeRabbit completed at this head with no review object, no thread and no finding section.
Exercised against real data, not just reasoned about. The control is a signature matcher, so the thing to exercise is a real signature. I pulled the actual signing certificates for the deployed artifacts out of GHCR and matched their SANs against the exact regex this PR ships:
github-config 1.21.0 (re-read — it moved from 1.20.2 while this PR was open) → matches.
aws 1.1.2 → matches.
wedding-app 1.15.9 and ascoachingogvaner 1.13.2 are private packages the host token cannot read, so their provenance is established from the publish path instead — stated as an inference, not a reading.
What is not yet observed, and when it will be. The user-visible effect is these OCIRepository objects staying Ready under the stricter rule. They reconcile on a 1-minute interval, so that is observable within a minute of merge and not before it. It will be checked on the live cluster immediately after merging, and the change is a single-commit revert if any source stops reconciling.
Promoting on that basis.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Verified live — and it closes the one gap I could only infer
Merged as e77fdb9cfb. Confirmed on the cluster, not assumed:
The tightened matcher is actually applied (checked on the live objects, so this is not a stale green):
github-config …/publish-manifests.yaml@([0-9a-f]{40}|refs/tags/v.+)$
wedding-app …/publish-app.yaml@([0-9a-f]{40}|refs/tags/v.+)$
ascoachingogvaner …/publish-app.yaml@([0-9a-f]{40}|refs/tags/v.+)$
aws …/publish-manifests.yaml@([0-9a-f]{40}|refs/tags/v.+)$
All four sources verify against it — Ready: True, artifacts stored:
| Source |
Artifact |
github-config |
1.21.0 |
wedding-app |
1.15.9 |
ascoachingogvaner |
1.13.2 |
aws |
1.1.2 |
This settles what the certificates could not. wedding-app and ascoachingogvaner are private packages the host token cannot read, so their provenance was an inference from the publish path. Flux is now verifying those exact artifacts against the stricter rule and finding them valid — which is a stronger check than reading the certificate myself would have been, because it is the real consumer doing the real verification.
Nothing stopped reconciling. No revert needed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 27, 2026
This was referenced Aug 3, 2026
This was referenced Aug 9, 2026
This was referenced Aug 9, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|