Skip to content

mito,internal/fb: add -fb flag for filebeat-compatible config validation#129

Merged
efd6 merged 1 commit into
devfrom
fb-mode
May 18, 2026
Merged

mito,internal/fb: add -fb flag for filebeat-compatible config validation#129
efd6 merged 1 commit into
devfrom
fb-mode

Conversation

@efd6

@efd6 efd6 commented May 17, 2026

Copy link
Copy Markdown
Collaborator

When -fb is passed, mito validates the run configuration against the same constraints the filebeat CEL input enforces: auth mutual exclusion, per-method field requirements, resource URL, rate limit and retry bounds, max_executions, and rejection of a "secret" key in state. A secret_state config field is provided as the correct alternative, injected into state.secret before execution.

Validation uses plain Go structs with yaml tags, not go-ucfg. Behaviour under -fb is not covered by semver compatibility guarantees since the validation rules track upstream filebeat.

Closes #128

When -fb is passed, mito validates the run configuration against the
same constraints the filebeat CEL input enforces: auth mutual
exclusion, per-method field requirements, resource URL, rate limit
and retry bounds, max_executions, and rejection of a "secret" key in
state. A secret_state config field is provided as the correct
alternative, injected into state.secret before execution.

Validation uses plain Go structs with yaml tags, not go-ucfg.
Behaviour under -fb is not covered by semver compatibility
guarantees since the validation rules track upstream filebeat.
@efd6 efd6 requested review from a team and P1llus May 17, 2026 21:49
@efd6 efd6 self-assigned this May 17, 2026
@efd6 efd6 added the enhancement New feature or request label May 17, 2026
@efd6 efd6 merged commit a169fd1 into dev May 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow more predefined options to be passed to Env

2 participants