Skip to content

feat(beekeeper): add extraEnv and envFrom support - #237

Merged
darkobas2 merged 1 commit into
masterfrom
feat/beekeeper-chart-extraenv
Aug 13, 2026
Merged

feat(beekeeper): add extraEnv and envFrom support#237
darkobas2 merged 1 commit into
masterfrom
feat/beekeeper-chart-extraenv

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

The beekeeper chart renders a fixed env list with no way to inject anything else, so secrets have to be passed on the command line through config.command. Anything passed that way is stored verbatim in the Job/CronJob spec, readable by anyone who can read those objects in the namespace.

The node-funder deployments hit this directly — they pass a funding wallet private key as --wallet-key.

Beekeeper already binds every flag to an environment variable (viper, prefix beekeeper, dashes → underscores), so --wallet-key can be supplied as BEEKEEPER_WALLET_KEY with no beekeeper change. This adds the chart plumbing:

extraEnv:
  - name: BEEKEEPER_WALLET_KEY
    valueFrom:
      secretKeyRef:
        name: beekeeper-wallet-key
        key: walletKey

extraEnv and envFrom are applied to the CronJob container and to both Job containers (init-ping and main), so behaviour is identical in either mode.

Backwards compatible: both default to [] and are wrapped in with, so a chart rendered without them is byte-identical to before. Verified with helm template on default values — no stray keys. Also verified the secret-backed and envFrom variants render valid YAML in both job.yaml paths.

Chart version 0.4.13 → 0.4.14.

The chart renders a fixed env list and offers no way to inject anything
else, so secrets have to be passed on the command line via
config.command. Anything passed that way is stored verbatim in the
Job/CronJob spec and is readable by anyone who can read those objects in
the namespace.

The node-funder deployments hit this directly: they pass a funding
wallet private key as --wallet-key.

Beekeeper already binds every flag to an environment variable (viper,
prefix "beekeeper", dashes replaced by underscores), so --wallet-key can
be supplied as BEEKEEPER_WALLET_KEY with no beekeeper change. This adds
the chart plumbing to do that:

  extraEnv:
    - name: BEEKEEPER_WALLET_KEY
      valueFrom:
        secretKeyRef:
          name: beekeeper-wallet-key
          key: walletKey

Both extraEnv and envFrom are applied to the CronJob container and to
both Job containers (init-ping and main), so the behaviour is the same
whichever mode is used.

Both default to empty and are wrapped in `with`, so a chart rendered
without them is byte-identical to before -- verified with helm template
on default values.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@darkobas2
darkobas2 merged commit 62b9e7a into master Aug 13, 2026
1 check passed
@darkobas2
darkobas2 deleted the feat/beekeeper-chart-extraenv branch August 13, 2026 23:17
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