Add bot-secrets InfisicalStaticSecret + bot-config ConfigMap (parallel, polymarket-bot 3a)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: bot-config
|
||||||
|
namespace: polymarket-bot
|
||||||
|
# Non-secret config split out of the old bot-secrets Secret. PAPER_* are plain
|
||||||
|
# operating params; WALLET_PRIVATE_KEY and COINGECKO_API_KEY are kept here as
|
||||||
|
# empty placeholders (preserving the "present-but-empty" env semantics the bot
|
||||||
|
# was started with — avoids a KeyError if the code reads them unconditionally).
|
||||||
|
data:
|
||||||
|
PAPER_BANKROLL: "10000"
|
||||||
|
PAPER_MODE: "true"
|
||||||
|
WALLET_PRIVATE_KEY: ""
|
||||||
|
COINGECKO_API_KEY: ""
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: secrets.infisical.com/v1beta1
|
||||||
|
kind: InfisicalStaticSecret
|
||||||
|
metadata:
|
||||||
|
name: bot-secrets
|
||||||
|
namespace: polymarket-bot
|
||||||
|
spec:
|
||||||
|
# Shared, read-only machine identity (no write grant, no PushSecret).
|
||||||
|
infisicalAuthRef:
|
||||||
|
name: infisical-auth
|
||||||
|
namespace: infisical-operator
|
||||||
|
sources:
|
||||||
|
# App-specific secrets (4): DATABASE_URL, POLYMARKET_API_KEY/SECRET/PASSPHRASE
|
||||||
|
- projectId: 17e98e9d-70f5-43d1-8382-7da818dfcdd0 # project "homelab"
|
||||||
|
environmentSlug: prod
|
||||||
|
secretPath: /polymarket-bot
|
||||||
|
# Telegram (2): TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID — reused from the shared
|
||||||
|
# /telegram path (deduplicated; same token as the other 5 namespaces).
|
||||||
|
- projectId: 17e98e9d-70f5-43d1-8382-7da818dfcdd0
|
||||||
|
environmentSlug: prod
|
||||||
|
secretPath: /telegram
|
||||||
|
syncOptions:
|
||||||
|
refreshInterval: 60s
|
||||||
|
targets:
|
||||||
|
- kind: Secret
|
||||||
|
name: bot-secrets-infisical # parallel name — old bot-secrets stays live until 3c
|
||||||
|
namespace: polymarket-bot
|
||||||
|
creationPolicy: Owner
|
||||||
|
# key passthrough: synced Secret carries all 6 keys verbatim.
|
||||||
|
# PAPER_* and the empty WALLET_PRIVATE_KEY/COINGECKO_API_KEY are config,
|
||||||
|
# not secrets — they live in the bot-config ConfigMap, not here.
|
||||||
Reference in New Issue
Block a user