Repository navigation
Expand file tree
/
Copy pathoci-repository.yaml
More file actions
34 lines (34 loc) · 1.76 KB
/
Copy pathoci-repository.yaml
File metadata and controls
34 lines (34 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# The github-config app's source + sync — the same delivery pattern as every
# other app/tenant (cosign-verified OCI artifact → namespace-scoped
# Kustomization), but the artifact carries Crossplane managed resources (the
# org's desired GitHub state) instead of a workload. The desired state lives in
# devantler-tech/.github under deploy/ and is published as a signed artifact by
# that repo's cd.yaml on v* tags.
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: github-config
namespace: github-config
labels:
app.kubernetes.io/managed-by: ksail
platform.devantler.tech/tenant-source: "true"
spec:
interval: 1m
ref:
semver: ">=1.0.0"
# .github is an invalid OCI path component (leading dot), so the artifact is
# published under the `github-config` name — see devantler-tech/.github cd.yaml.
# No secretRef: the package is public (non-secret org config), so it is pulled
# anonymously — the tenant needs no GHCR pull credential.
url: oci://ghcr.io/devantler-tech/github-config/manifests
verify:
provider: cosign
matchOIDCIdentity:
# Exactly devantler-tech/.github's own cd.yaml on a strict OCI-semver release tag
# (ADR 0017, #6265, devantler-tech/.github#926). That repository also hosts
# reusable workflows, and a reusable workflow carries its host's identity whoever
# calls it, so no other workflow file there is trusted, and .github's CI keeps
# cd.yaml uncallable.
- issuer: '^https://token\.actions\.githubusercontent\.com$'
subject: '^https://github\.com/devantler-tech/\.github/\.github/workflows/cd\.yaml@refs/tags/v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*)|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(\.((0|[1-9][0-9]*)|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?$'