Skip to content

Commit

Permalink
feat(sources)!: add custom auth strategy for components with HTTP server
Browse files Browse the repository at this point in the history
This adds `custom` auth strategy for components with HTTP server (`http_server`, `datadog_agent`,
`opentelemetry`, `prometheus`) besides the default basic auth. This is a breaking change because
`strategy` is now required for auth - for existing configurations `strategy: "basic"` needs to be
added.

Related: vectordotdev#22213
  • Loading branch information
esensar committed Jan 17, 2025
1 parent aaa54ec commit 1a76849
Show file tree
Hide file tree
Showing 22 changed files with 579 additions and 148 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use std::{error::Error, fmt};

use serde::Serialize;
Expand Down
12 changes: 12 additions & 0 deletions src/common/http/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! Common module between modules that use HTTP
#[cfg(all(
feature = "sources-utils-http-auth",
feature = "sources-utils-http-error"
))]
pub mod server_auth;

#[cfg(feature = "sources-utils-http-error")]
mod error;

#[cfg(feature = "sources-utils-http-error")]
pub use error::ErrorMessage;
Loading

0 comments on commit 1a76849

Please sign in to comment.