Skip to content

feat(flash): wire Discord webhook env vars (ops feed + alerts)#240

Merged
islandbitcoin merged 1 commit into
mainfrom
flash-ops-webhook-env
Jul 23, 2026
Merged

feat(flash): wire Discord webhook env vars (ops feed + alerts)#240
islandbitcoin merged 1 commit into
mainfrom
flash-ops-webhook-env

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Summary

Wires two secret-backed env vars into the flash chart, chart 3.2.40 → 3.2.41:

Both are injected into the three workloads that emit events: api-deployment (graphql-main-server), ibex-webhook-deployment, and bridge-webhook-deployment, via secretKeyRef → secret discord-webhooks (keys ops-webhook-url / alert-webhook-url), following the *ExistingSecret pattern (galoy.discordWebhooksExistingSecret in values). optional: true so environments without the secret keep working — the backend no-ops when the vars are unset.

helm lint clean; rendered output verified to include the vars in all three deployments. (Note: secrets.create=true rendering is broken at HEAD from a pre-existing nil .Values.postgresql.enabled — unrelated; default create=false renders clean.)

Operator step (out-of-band, per cluster)

kubectl -n <flash-ns> create secret generic discord-webhooks \
  --from-literal=ops-webhook-url=<url> \
  --from-literal=alert-webhook-url=<url>

TEST first, then prod. Rollout after merge is the usual chart publish → deployments pin bump → make flash ENV=<env>.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UXnQYUbKQe5wUCWEvdAau7

…ents (chart 3.2.42)

Adds OPS_DISCORD_WEBHOOK_URL and ALERT_DISCORD_WEBHOOK_URL to the api,
ibex-webhook, and bridge-webhook deployments via secretKeyRef against a
new 'discord-webhooks' secret (keys: ops-webhook-url, alert-webhook-url),
optional: true so environments without the secret still schedule pods.
Follows the *ExistingSecret convention; galoy-secrets.yaml renders the
secret for secrets.create=true installs, omitting keys whose values are
empty (an empty-string env var would fail the backend's zod .url()
validation and crash pods at boot — caught by the dev smoketest).

Backend consumer: lnflash/flash#458 (ops activity feed + alerts module).
Real deployments provision the secret out-of-band (secrets.create=false).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UXnQYUbKQe5wUCWEvdAau7
@islandbitcoin
islandbitcoin force-pushed the flash-ops-webhook-env branch from 31ec341 to fb7d413 Compare July 23, 2026 01:40
@islandbitcoin
islandbitcoin merged commit 50da25e into main Jul 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant