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 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 06:27:47 +00:00
co-authored by Claude Opus 4.8
parent 9d2dd78542
commit 3957b69b10
@@ -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 }}"}}}'