Repository navigation
ingest: tighten normalization of derived fields - #62
Closed
fastrevmd-lab wants to merge 2 commits into
Closed
fastrevmd-lab wants to merge 2 commits into
fastrevmd-lab wants to merge 2 commits into
Conversation
Several Vector transforms derive event_action/network_transport from upstream-controlled log content without bounding the result. Clamp each derivation to a fixed vocabulary, falling back to a sentinel when the value doesn't match, and add VRL unit tests covering the out-of-vocabulary case at each site. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Four normalizer-derived field assignments were still unbounded. Round out the vocabulary clamp added in the parent commit to cover them, and add out-of-vocabulary test coverage per site using neutral fixture values. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Member
Author
|
Superseded by #65. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
infra/vector/vector.tomltransforms derive two of the ingest schema's classification columns partly from upstream-controlled log content without bounding the result before it's written to storage.Verification
Ran against the CI-pinned Vector release (checksum-verified against
.github/workflows/ci.yml'sVECTOR_SHA256):TZ=UTC CH_HOST=unused USERNAME_HASH_KEY=throwaway-ci-key vector test infra/vector/vector.toml— 80/80 passed (69 pre-existing + 11 new), no regressions.CH_HOST=unused vector validate --no-environment infra/vector/vector.toml— fails closed as expected withoutUSERNAME_HASH_KEYset, matching the existing CI step.gitleaks protect --staged— no leaks in the change.Notes for reviewers
Refs MEC-1685 (private task tracker; this PR's parent tracks the broader ingest hardening effort).
🤖 Generated with Claude Code