From 3957b69b1079ef59f7778f7d6093c92ae8e8ef4d Mon Sep 17 00:00:00 2001 From: chemavx Date: Fri, 19 Jun 2026 06:27:47 +0000 Subject: [PATCH] Add polymarket-bot InfisicalStaticSecret for gitea-registry pull secret Reconstructs the dockerconfigjson pull secret from the shared /registry v3 fields (GITEA_REGISTRY_USERNAME/GITEA_REGISTRY_TOKEN) via the shared infisical-operator/infisical-auth. Targets parallel-name gitea-registry-infisical; old gitea-registry stays live until cutover. Co-Authored-By: Claude Opus 4.8 --- polymarket-bot/infisical-gitea-registry.yaml | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 polymarket-bot/infisical-gitea-registry.yaml diff --git a/polymarket-bot/infisical-gitea-registry.yaml b/polymarket-bot/infisical-gitea-registry.yaml new file mode 100644 index 0000000..c783df6 --- /dev/null +++ b/polymarket-bot/infisical-gitea-registry.yaml @@ -0,0 +1,27 @@ +apiVersion: secrets.infisical.com/v1beta1 +kind: InfisicalStaticSecret +metadata: + name: gitea-registry + namespace: polymarket-bot +spec: + # References the SHARED auth layer in infisical-operator (cross-namespace). + infisicalAuthRef: + name: infisical-auth + namespace: infisical-operator + sources: + - projectId: 17e98e9d-70f5-43d1-8382-7da818dfcdd0 # project "homelab" + environmentSlug: prod + secretPath: /registry # shared /registry v3 fields (same as researchowl) + syncOptions: + refreshInterval: 60s + targets: + - kind: Secret + name: gitea-registry-infisical # parallel name — old gitea-registry stays live until cutover + namespace: polymarket-bot + creationPolicy: Owner + secretType: kubernetes.io/dockerconfigjson + template: + engineVersion: v1 + data: + # Reconstruct the docker pull-secret blob from the two discrete /registry fields. + .dockerconfigjson: '{"auths":{"git.chemavx.xyz":{"username":"{{ .GITEA_REGISTRY_USERNAME.Value }}","password":"{{ .GITEA_REGISTRY_TOKEN.Value }}","auth":"{{ printf "%s:%s" .GITEA_REGISTRY_USERNAME.Value .GITEA_REGISTRY_TOKEN.Value | encodeBase64 }}"}}}'