Authorize ra2-rs playtest publishing in OpenArtifact
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s

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.
This commit is contained in:
ab committed 2026-12-02 03:59:15 +02:00
1 parent 01b598a285
commit 7b71869610
2 files changed
+54

No files matched your search

@@ -16,6 +16,7 @@ configMapGenerator:
- name: openartifact-policies
files:
- policies/winget-publisher.yaml
- policies/ra2-playtest.yaml
helmCharts:
- name: openartifact
@@ -0,0 +1,53 @@
# Applied by the OpenArtifact PostSync job. Authorizes the ra2-rs playtest
# workflow to publish installers and Arch packages without static deploy tokens.
apiVersion: openartifact.io/v1
kind: ServiceAccount
metadata:
name: ra2-playtest-publisher
spec:
description: Publishes ra2-rs playtest installers from GitHub Actions
---
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: ra2-playtest-publish
spec:
repository_filter: '^binaries$'
path_pattern: '^ra2-rs/playtest/.*$'
actions: [read, write]
assignments:
users: [ra2-playtest-publisher]
---
apiVersion: openartifact.io/v1
kind: OIDCTrustPolicy
metadata:
name: github-ra2-playtest-publish
spec:
issuer: https://token.actions.githubusercontent.com
audience: https://repo.hexor.cy
service_account: ra2-playtest-publisher
token_ttl_seconds: 900
enabled: true
conditions:
- claim: repository
patterns: [house-of-vanity/ra2-rs]
- claim: ref
patterns: ['refs/tags/*']
- claim: workflow_ref
patterns: ['house-of-vanity/ra2-rs/.github/workflows/playtest.yml@refs/tags/*']
- claim: environment
patterns: [playtest]
- claim: event_name
patterns: [push]
---
# The same playtest workflow/principal also publishes the Arch package.
apiVersion: openartifact.io/v1
kind: PermissionTarget
metadata:
name: ra2-playtest-pacman-publish
spec:
repository_filter: '^hexor-pacman$'
path_pattern: '^os/x86_64/ra2-rs-[A-Za-z0-9._+-]+-x86_64\.pkg\.tar\.zst$'
actions: [read, write]
assignments:
users: [ra2-playtest-publisher]