feat(sources): add access to URL path in custom VRL auth#23165
feat(sources): add access to URL path in custom VRL auth#23165pront merged 9 commits intovectordotdev:masterfrom
Conversation
The
|
Regarding the failing changelog CI check, we made some recent changes, cc @thomasqueirozb to check this |
Fixed 🙂 |
Pull Request is not mergeable
Summary
This adds access to
.path, in addition to.addressand.headersin VRL scripts for custom auth strategy. This is useful for tying specific authorization headers to specific paths e.g. for Vector aggregators receiving payloads from different vendors on different URL paths, each with distinct authorization strategies.Change Type
Is this a breaking change?
How did you test this PR?
Added unit tests and also built a basic Vector pipeline:
Auth successes:
Auth failures:
Does this PR include user facing changes?
Notes
@vectordotdev/vectorto reach out to us regarding this PR.pre-pushhook, please see this template.cargo fmt --allcargo clippy --workspace --all-targets -- -D warningscargo nextest run --workspace(alternatively, you can runcargo test --all)./scripts/check_changelog_fragments.shgit merge origin masterandgit push.Cargo.lock), pleaserun
cargo vdev build licensesto regenerate the license inventory and commit the changes (if any). More details here.References
Closes: #23163
All good/sensible changes were cargo-culted from #22850. Any errors are of my own making.