Register the ra2-playtest-publisher account, GitHub OIDC trust policy and scoped permissions for raw playtest installers and x86_64 Arch packages in hexor-pacman. Bind trust to the ra2-rs tag-push playtest workflow and playtest environment, reusing the policy name already referenced by the producer CI. Include the new manifest in the generated policy ConfigMap so the existing ArgoCD PostSync job applies it on sync. Existing WinGet permissions are preserved. Validation: rendered the policy ConfigMap and Job with kubectl kustomize and verified the manifest and ConfigMap reference. Python policy-application tests passed. No push or live cluster changes were performed.
OpenArtifact access policies
The Helm chart runs OpenArtifact. Kustomize packages the SSO configuration and
publisher policies into ConfigMaps. ArgoCD's PostSync Job applies them through
OpenArtifact's /api/v1/admin/declarative/apply API after each sync.
To register another publisher, add a regular *.yaml file directly inside
policies/ and add its path to the openartifact-policies ConfigMap generator's
files list in kustomization.yaml. No Python or Job changes are required.
Kustomize includes the listed files in openartifact-policies; the Job
mounts them at /policies and applies YAML files in filename order. Group a
publisher's ServiceAccount, PermissionTargets and OIDCTrustPolicy in one manifest,
with the account first. Use globally unique object names; use filename prefixes
if manifests depend on one another.
Every manifest must return a nonempty list of successfully applied objects. Any failure stops the Job, so ArgoCD reports the sync hook failure. There is no fixed object count. Existing objects are reapplied on later syncs. Removing a file or object from Git does not delete it from OpenArtifact: revoke obsolete access explicitly on the server as well.
Scope permissions to the intended repository, package names and architectures.
Bind OIDC trust to the producer repository, tag/branch, workflow, event and
environment where applicable. Put real credentials in Kubernetes Secrets, never
in policy files. SSO client-secret substitution remains isolated to sso.yaml.
Run the local checks with:
python -m unittest discover -s k8s-ng/apps/openartifact/tests
kubectl kustomize --enable-helm k8s-ng/apps/openartifact
Rendering the complete application requires Helm and access to the chart registry.