Skip to content

Commit edcb675

Browse files
butler54claude
andauthored
feat: add ESO v1 API, ACM pull-secret policy, sigstore keys, and Trustee 1.1 compat (#35)
* fix: use external-secrets.io/v1 API for Red Hat ESO compatibility * fix: add admin.type=DenyAll for Trustee 1.1 KBS compatibility * feat: add credential to extraSecrets for authenticated registry support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add ACM policy for pull secret credential — replaces ansible imperative job Implements declarative pull secret propagation via ACM ConfigurationPolicy. Uses fromSecret to copy .dockerconfigjson from openshift-config/pull-secret to trustee-operator-system/credential with key regcred. - Gated on global.coco.secured (only active when attestation enabled) - Sync-wave 5 (after vault, before RVPS) - Continuously reconciled by ACM - no cron job needed - Replaces imperative ansible playbook approach Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add ACM policy for pull-secret distribution Replace ExternalSecrets approach with ACM ConfigurationPolicy that: - Copies openshift-config/pull-secret - Transforms .dockerconfigjson key to regcred - Places in trustee-operator-system/credential secret - Available to KBS as kbs:///default/credential/regcred Sync wave 5 ensures this runs before trustee deployment (wave 7). Resolves Phase 5-6 registry authentication requirement. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: remove duplicate pull-secret-policy.yaml The pull-secret-credential-policy.yaml file already contains the ACM Policy, PlacementRule, and PlacementBinding for distributing pull-secret credentials. The old pull-secret-policy.yaml was causing duplicate resource warnings in ArgoCD. This fixes the trustee app OutOfSync status. * feat(phase6): add Red Hat GPG public key for signature verification * feat: add Red Hat sigstore public key secret Add sigstore-keys secret with Red Hat release key 3 for sigstore signature verification. This enables sigstoreSigned policy type which stores signatures as OCI artifacts in the registry (unlike GPG lookaside). Secret will be mounted to KBS repository via KbsConfig. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * chore: bump version to 0.8.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: support for ESO Signed-off-by: Chris Butler <chris.butler@redhat.com> * ci: ignore attestation-policy.yaml in jscpd duplicate detection TDX and SEV-SNP attestation policy blocks share intentional structural similarity. This is not accidental duplication — the policies have different field values but the same YAML shape. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove embedded Red Hat GPG and sigstore key secrets These templates create Kubernetes Secrets with hardcoded Red Hat public keys, but nothing consumes them — they are not in kbsSecretResources and no active security policy references them. Keys should be fetched from official Red Hat URLs at install time (via Makefile targets in coco-pattern), not embedded in source. See: validatedpatterns/coco-pattern#100 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: fix actions/checkout version comment to match SHA zizmor ref-version-mismatch: SHA de0fac2e maps to v6.0.2, not v6. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Signed-off-by: Chris Butler <chris.butler@redhat.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 10a447a commit edcb675

19 files changed

Lines changed: 88 additions & 18 deletions

‎.github/linters/.jscpd.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"templates/core/subscriptions.yaml",
66
"templates/core/namespaces.yaml",
77
"templates/core/nodes.yaml",
8-
"templates/_helpers.tpl"
8+
"templates/_helpers.tpl",
9+
"templates/attestation-policy.yaml"
910
]
1011
}

‎.github/workflows/conventional-pr.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
persist-credentials: false
2626

‎.github/workflows/helm-lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout Code
20-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
persist-credentials: false
2323

‎.github/workflows/helm-unittest.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout Code
21-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
persist-credentials: false
2424

‎.github/workflows/superlinter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout Code
16-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717
with:
1818
persist-credentials: false
1919
# Full git history is needed to get a proper list of changed files within `super-linter`

‎Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ keywords:
77
- confidential-containers
88
name: trustee
99
# DO NOT EDIT VERSION HERE, IT IS AUTO-GENERATED BY SEMANTIC-RELEASE
10-
version: 0.7.0
10+
version: 0.8.0

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# trustee
22

3-
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square)
3+
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square)
44

55
A Helm chart to provide an opinionated deployment of Trustee in a validated pattern
66

@@ -34,7 +34,7 @@ In order to use this chart, you will need to:
3434
| kbs.admin.format | string | `"v1.0"` | |
3535
| kbs.baremetal.enabled | bool | `false` | |
3636
| kbs.cosignKeys | string | `"secret/data/hub/coSignKeys"` | |
37-
| kbs.extraSecrets | list | `[]` | |
37+
| kbs.extraSecrets[0] | string | `"credential"` | |
3838
| kbs.gpu.enabled | bool | `false` | |
3939
| kbs.publicKey | string | `"secret/data/hub/kbsPublicKey"` | |
4040
| kbs.resourcePolicy.enforceHardware | bool | `true` | |

‎templates/attestation-status-eso.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if ne .Values.global.secretStore.backend "none" }}
22
---
3-
apiVersion: "external-secrets.io/v1beta1"
3+
apiVersion: "external-secrets.io/v1"
44
kind: ExternalSecret
55
metadata:
66
annotations:

‎templates/cosign-eso.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if and (ne .Values.global.secretStore.backend "none") (eq .Values.global.coco.securityPolicyFlavour "signed") }}
22
---
3-
apiVersion: "external-secrets.io/v1beta1"
3+
apiVersion: "external-secrets.io/v1"
44
kind: ExternalSecret
55
metadata:
66
annotations:

‎templates/dynamic-eso.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if ne .Values.global.secretStore.backend "none" }}
22
{{- range .Values.kbs.secretResources }}
33
---
4-
apiVersion: "external-secrets.io/v1beta1"
4+
apiVersion: "external-secrets.io/v1"
55
kind: ExternalSecret
66
metadata:
77
annotations:

0 commit comments

Comments
 (0)