Skip to content

xatu: replace ${VAR} placeholders in --xatu.config with environment variables - #44

Merged
samcm merged 2 commits into
mainfrom
xatu-config-env-vars
Nov 27, 2026
Merged

samcm merged 2 commits into
mainfrom
xatu-config-env-vars

Conversation

@samcm

@samcm samcm commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Moves to execution-processor v0.6.1 and loads --xatu.config through its config.UnmarshalWithEnv (ethpandaops/execution-processor#115, ethpandaops/execution-processor#116), so credentials in the config can come from the environment instead of being written into the file: ${VAR} takes the value of VAR and fails startup, naming the variable, when it is unset or empty, and ${VAR:-default} falls back to the default. Placeholders are replaced in parsed YAML values, so values arrive exactly as set and a config without placeholders loads as before; the README's Run section documents it.

…ariables

Move to execution-processor v0.6.0 and load the config through its
config.UnmarshalWithEnv, so credentials in it can come from the
environment: ${VAR} takes the value of VAR and fails startup when it is
unset or empty, and ${VAR:-default} falls back to the default.
Placeholders are replaced in parsed values, so a config without them
loads as before.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
@samcm samcm added the build-image Build test Docker images for all patch targets label Nov 27, 2026 — with Amp for GitHub

@redpanda-reviewer redpanda-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR bumps execution-processor to v0.6.0 and swaps the xatu config loader from yaml.Unmarshal to config.UnmarshalWithEnv so ${VAR}/${VAR:-default} placeholders in --xatu.config resolve from the environment, with a matching README note. The call site now mirrors upstream's own loadServerConfigFromFile (defaults.Set, type plain, UnmarshalWithEnv, Validate), the removed yaml import is unused at head, the v0.5.1→v0.6.0 compare shows only the new env.go and cmd changes (no API or go.mod churn), and OSV reports no vulnerabilities for the Go module at 0.6.0. I found no real problems.


Reviewed 3 changed file(s) @ 20bd0514 — no blocking issues found.
"If you're not embarrassed by the first version, you launched too late." — Reid Hoffman

@github-actions

Copy link
Copy Markdown
Contributor

Docker Image Built (v3.8.1)

Multi-architecture (amd64/arm64) image has been built and pushed to Docker Hub:

Repository: ethpandaops/erigone
Upstream ref: v3.8.1
Tags:

  • pr-44-20bd051-v3.8.1
  • 20bd05140fd97e2d508a4fff5c98523fc5df21c3-v3.8.1

Usage

docker pull ethpandaops/erigone:pr-44-20bd051-v3.8.1
docker run ethpandaops/erigone:pr-44-20bd051-v3.8.1 --help

@github-actions

Copy link
Copy Markdown
Contributor

Docker Image Built (v3.7.1)

Multi-architecture (amd64/arm64) image has been built and pushed to Docker Hub:

Repository: ethpandaops/erigone
Upstream ref: v3.7.1
Tags:

  • pr-44-20bd051-v3.7.1
  • 20bd05140fd97e2d508a4fff5c98523fc5df21c3-v3.7.1

Usage

docker pull ethpandaops/erigone:pr-44-20bd051-v3.7.1
docker run ethpandaops/erigone:pr-44-20bd051-v3.7.1 --help

@github-actions

Copy link
Copy Markdown
Contributor

Docker Image Built (v3.7.0)

Multi-architecture (amd64/arm64) image has been built and pushed to Docker Hub:

Repository: ethpandaops/erigone
Upstream ref: v3.7.0
Tags:

  • pr-44-20bd051-v3.7.0
  • 20bd05140fd97e2d508a4fff5c98523fc5df21c3-v3.7.0

Usage

docker pull ethpandaops/erigone:pr-44-20bd051-v3.7.0
docker run ethpandaops/erigone:pr-44-20bd051-v3.7.0 --help

@github-actions

Copy link
Copy Markdown
Contributor

Docker Image Built (v3.8.0)

Multi-architecture (amd64/arm64) image has been built and pushed to Docker Hub:

Repository: ethpandaops/erigone
Upstream ref: v3.8.0
Tags:

  • pr-44-20bd051-v3.8.0
  • 20bd05140fd97e2d508a4fff5c98523fc5df21c3-v3.8.0

Usage

docker pull ethpandaops/erigone:pr-44-20bd051-v3.8.0
docker run ethpandaops/erigone:pr-44-20bd051-v3.8.0 --help

@github-actions

Copy link
Copy Markdown
Contributor

Docker Image Built (v3.3.10)

Multi-architecture (amd64/arm64) image has been built and pushed to Docker Hub:

Repository: ethpandaops/erigone
Upstream ref: v3.3.10
Tags:

  • pr-44-20bd051-v3.3.10
  • 20bd05140fd97e2d508a4fff5c98523fc5df21c3-v3.3.10

Usage

docker pull ethpandaops/erigone:pr-44-20bd051-v3.3.10
docker run ethpandaops/erigone:pr-44-20bd051-v3.3.10 --help

Placeholders that expand to null, such as null or ~, stay strings.

Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
@samcm
samcm merged commit ff3fee7 into main Nov 27, 2026
6 of 7 checks passed
@redpanda-reviewer

Copy link
Copy Markdown

CI failed @ ffcb2b81

The single failed job is the Docker PR build for the erigontech/erigon main target. It fails while applying the unchanged main base.patch to current upstream Erigon main, with rejected hunks in execution/vm/interpreter.go, execution/vm/operations_acl.go, and node/eth/backend.go. The PR does not touch patches or the apply scripts, and the same patch step fails on main in scheduled run 45803458725, so this is pre-existing.

  • Build Docker Image on PR / build-and-push erigontech, erigon, main — pre-existing — scripts/erigone-build.sh clones upstream Erigon main (log reports latest 7294d92) and scripts/apply-erigone-patch.sh cannot apply patches/erigontech/erigon/main/base.patch: direct apply fails, 3-way merge fails, and rejected hunks are reported in execution/vm/interpreter.go, execution/vm/operations_acl.go, and node/eth/backend.go. The PR diff only changes README.md, overlay/node/xatu/service.go, and scripts/update-deps.sh; git diff origin/main...HEAD -- patches is empty and base.patch is byte-identical to origin/main. Scheduled Check and Update Patches run 45803458725 on main fails the same main-target patch application with 'Failed to apply patch: base.patch'. (patches/erigontech/erigon/main/base.patch:538) — Regenerate/rebase patches/erigontech/erigon/main/base.patch against current upstream Erigon main, resolving the rejected hunks in execution/vm/interpreter.go, execution/vm/operations_acl.go, and node/eth/backend.go (or pin the main target to an upstream commit the existing patch applies to). Re-running this PR alone will not fix it.

Diagnosed Build Docker Image on PR @ ffcb2b81
"If you're not embarrassed by the first version, you launched too late." — Reid Hoffman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-image Build test Docker images for all patch targets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants