From 4588cec35cfae69aa9f606f1a32fdaa2c1283583 Mon Sep 17 00:00:00 2001 From: Anil Gupta <90670783+anil-db@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:49:41 -0700 Subject: [PATCH] enhancement(tls settings): support of SNI when connecting to remote server (#21365) * support of SNI when connecting to remote server * incorporate comments * bubble up error * change unwrap to expect and other comment incorporation * refactor to remove expect * fix change log file --- .github/actions/spelling/expect.txt | 1 + .../21365_tls_sni_support.enhancement.md | 3 +++ lib/vector-core/src/tls/mod.rs | 16 ++++++++------ lib/vector-core/src/tls/settings.rs | 21 ++++++++++++++++++- src/http.rs | 19 ++++++++--------- .../reference/components/sinks/base/amqp.cue | 9 ++++++++ .../components/sinks/base/appsignal.cue | 9 ++++++++ .../sinks/base/aws_cloudwatch_logs.cue | 9 ++++++++ .../sinks/base/aws_cloudwatch_metrics.cue | 9 ++++++++ .../sinks/base/aws_kinesis_firehose.cue | 9 ++++++++ .../sinks/base/aws_kinesis_streams.cue | 9 ++++++++ .../components/sinks/base/aws_s3.cue | 9 ++++++++ .../components/sinks/base/aws_sns.cue | 9 ++++++++ .../components/sinks/base/aws_sqs.cue | 9 ++++++++ .../reference/components/sinks/base/axiom.cue | 9 ++++++++ .../sinks/base/azure_monitor_logs.cue | 9 ++++++++ .../components/sinks/base/clickhouse.cue | 9 ++++++++ .../components/sinks/base/databend.cue | 9 ++++++++ .../components/sinks/base/datadog_events.cue | 9 ++++++++ .../components/sinks/base/datadog_logs.cue | 9 ++++++++ .../components/sinks/base/datadog_metrics.cue | 9 ++++++++ .../components/sinks/base/datadog_traces.cue | 9 ++++++++ .../components/sinks/base/elasticsearch.cue | 9 ++++++++ .../sinks/base/gcp_chronicle_unstructured.cue | 9 ++++++++ .../sinks/base/gcp_cloud_storage.cue | 9 ++++++++ .../components/sinks/base/gcp_pubsub.cue | 9 ++++++++ .../sinks/base/gcp_stackdriver_logs.cue | 9 ++++++++ .../sinks/base/gcp_stackdriver_metrics.cue | 9 ++++++++ .../components/sinks/base/greptimedb.cue | 9 ++++++++ .../components/sinks/base/greptimedb_logs.cue | 9 ++++++++ .../sinks/base/greptimedb_metrics.cue | 9 ++++++++ .../reference/components/sinks/base/http.cue | 9 ++++++++ .../components/sinks/base/humio_logs.cue | 9 ++++++++ .../components/sinks/base/humio_metrics.cue | 9 ++++++++ .../components/sinks/base/influxdb_logs.cue | 9 ++++++++ .../sinks/base/influxdb_metrics.cue | 9 ++++++++ .../reference/components/sinks/base/kafka.cue | 9 ++++++++ .../reference/components/sinks/base/loki.cue | 9 ++++++++ .../reference/components/sinks/base/mqtt.cue | 9 ++++++++ .../reference/components/sinks/base/nats.cue | 9 ++++++++ .../components/sinks/base/papertrail.cue | 9 ++++++++ .../sinks/base/prometheus_exporter.cue | 9 ++++++++ .../sinks/base/prometheus_remote_write.cue | 9 ++++++++ .../components/sinks/base/socket.cue | 9 ++++++++ .../components/sinks/base/splunk_hec_logs.cue | 9 ++++++++ .../sinks/base/splunk_hec_metrics.cue | 9 ++++++++ .../components/sinks/base/statsd.cue | 9 ++++++++ .../components/sinks/base/vector.cue | 9 ++++++++ .../components/sinks/base/websocket.cue | 9 ++++++++ .../components/sources/base/amqp.cue | 9 ++++++++ .../sources/base/aws_kinesis_firehose.cue | 9 ++++++++ .../components/sources/base/aws_s3.cue | 18 ++++++++++++++++ .../components/sources/base/aws_sqs.cue | 9 ++++++++ .../components/sources/base/datadog_agent.cue | 9 ++++++++ .../components/sources/base/dnstap.cue | 9 ++++++++ .../components/sources/base/fluent.cue | 9 ++++++++ .../components/sources/base/gcp_pubsub.cue | 9 ++++++++ .../components/sources/base/heroku_logs.cue | 9 ++++++++ .../components/sources/base/http.cue | 9 ++++++++ .../components/sources/base/http_client.cue | 9 ++++++++ .../components/sources/base/http_server.cue | 9 ++++++++ .../components/sources/base/kafka.cue | 9 ++++++++ .../components/sources/base/logstash.cue | 9 ++++++++ .../components/sources/base/nats.cue | 9 ++++++++ .../components/sources/base/nginx_metrics.cue | 9 ++++++++ .../components/sources/base/opentelemetry.cue | 18 ++++++++++++++++ .../sources/base/prometheus_pushgateway.cue | 9 ++++++++ .../sources/base/prometheus_remote_write.cue | 9 ++++++++ .../sources/base/prometheus_scrape.cue | 9 ++++++++ .../components/sources/base/socket.cue | 9 ++++++++ .../components/sources/base/splunk_hec.cue | 9 ++++++++ .../components/sources/base/statsd.cue | 9 ++++++++ .../components/sources/base/syslog.cue | 9 ++++++++ .../components/sources/base/vector.cue | 9 ++++++++ 74 files changed, 682 insertions(+), 17 deletions(-) create mode 100644 changelog.d/21365_tls_sni_support.enhancement.md diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 0f5480df6332f..4375243421247 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1280,3 +1280,4 @@ zulip Zunstable zup zurp +sni diff --git a/changelog.d/21365_tls_sni_support.enhancement.md b/changelog.d/21365_tls_sni_support.enhancement.md new file mode 100644 index 0000000000000..e89776634aab8 --- /dev/null +++ b/changelog.d/21365_tls_sni_support.enhancement.md @@ -0,0 +1,3 @@ +Add support for providing Server Name Indication in the TLS handshake when connecting to a server. + +authors: anil-db diff --git a/lib/vector-core/src/tls/mod.rs b/lib/vector-core/src/tls/mod.rs index 3180981fb0ec6..9e065cb212f5f 100644 --- a/lib/vector-core/src/tls/mod.rs +++ b/lib/vector-core/src/tls/mod.rs @@ -100,6 +100,8 @@ pub enum TlsError { AddCertToStore { source: ErrorStack }, #[snafu(display("Error setting up the verification certificate: {}", source))] SetVerifyCert { source: ErrorStack }, + #[snafu(display("Error setting SNI: {}", source))] + SetSni { source: ErrorStack }, #[snafu(display("Error setting ALPN protocols: {}", source))] SetAlpnProtocols { source: ErrorStack }, #[snafu(display( @@ -183,13 +185,15 @@ pub fn tls_connector_builder(settings: &MaybeTlsSettings) -> Result Result { - let verify_hostname = settings - .tls() - .map_or(true, |settings| settings.verify_hostname); - let configure = tls_connector_builder(settings)? + let mut configure = tls_connector_builder(settings)? .build() .configure() - .context(TlsBuildConnectorSnafu)? - .verify_hostname(verify_hostname); + .context(TlsBuildConnectorSnafu)?; + let tls_setting = settings.tls().cloned(); + if let Some(tls_setting) = &tls_setting { + tls_setting + .apply_connect_configuration(&mut configure) + .context(SetSniSnafu)?; + } Ok(configure) } diff --git a/lib/vector-core/src/tls/settings.rs b/lib/vector-core/src/tls/settings.rs index 23725e47496dd..1dcdc932b8476 100644 --- a/lib/vector-core/src/tls/settings.rs +++ b/lib/vector-core/src/tls/settings.rs @@ -148,6 +148,14 @@ pub struct TlsConfig { #[configurable(metadata(docs::examples = "PassWord1"))] #[configurable(metadata(docs::human_name = "Key File Password"))] pub key_pass: Option, + + /// Server name to use when using Server Name Indication (SNI). + /// + /// Only relevant for outgoing connections. + #[serde(alias = "server_name")] + #[configurable(metadata(docs::examples = "www.example.com"))] + #[configurable(metadata(docs::human_name = "Server Name"))] + pub server_name: Option, } impl TlsConfig { @@ -169,6 +177,7 @@ pub struct TlsSettings { authorities: Vec, pub(super) identity: Option, // openssl::pkcs12::ParsedPkcs12 doesn't impl Clone yet alpn_protocols: Option>, + server_name: Option, } #[derive(Clone)] @@ -203,6 +212,7 @@ impl TlsSettings { authorities: options.load_authorities()?, identity: options.load_identity()?, alpn_protocols: options.parse_alpn_protocols()?, + server_name: options.server_name.clone(), }) } @@ -333,8 +343,17 @@ impl TlsSettings { Ok(()) } - pub fn apply_connect_configuration(&self, connection: &mut ConnectConfiguration) { + pub fn apply_connect_configuration( + &self, + connection: &mut ConnectConfiguration, + ) -> std::result::Result<(), openssl::error::ErrorStack> { connection.set_verify_hostname(self.verify_hostname); + if let Some(server_name) = &self.server_name { + // Prevent native TLS lib from inferring default SNI using domain name from url. + connection.set_use_server_name_indication(false); + connection.set_hostname(server_name)?; + } + Ok(()) } } diff --git a/src/http.rs b/src/http.rs index bb0218e261884..43bd10eb881b4 100644 --- a/src/http.rs +++ b/src/http.rs @@ -1,11 +1,4 @@ #![allow(missing_docs)] -use std::{ - fmt, - net::SocketAddr, - task::{Context, Poll}, - time::Duration, -}; - use futures::future::BoxFuture; use headers::{Authorization, HeaderMapExt}; use http::{ @@ -22,6 +15,12 @@ use hyper_proxy::ProxyConnector; use rand::Rng; use serde_with::serde_as; use snafu::{ResultExt, Snafu}; +use std::{ + fmt, + net::SocketAddr, + task::{Context, Poll}, + time::Duration, +}; use tokio::time::Instant; use tower::{Layer, Service}; use tower_http::{ @@ -205,10 +204,10 @@ pub fn build_tls_connector( let settings = tls_settings.tls().cloned(); https.set_callback(move |c, _uri| { if let Some(settings) = &settings { - settings.apply_connect_configuration(c); + settings.apply_connect_configuration(c) + } else { + Ok(()) } - - Ok(()) }); Ok(https) } diff --git a/website/cue/reference/components/sinks/base/amqp.cue b/website/cue/reference/components/sinks/base/amqp.cue index b9ebae99bb682..e635e31883bb6 100644 --- a/website/cue/reference/components/sinks/base/amqp.cue +++ b/website/cue/reference/components/sinks/base/amqp.cue @@ -387,6 +387,15 @@ base: components: sinks: amqp: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/appsignal.cue b/website/cue/reference/components/sinks/base/appsignal.cue index 23ceebf8562d9..107805ef13119 100644 --- a/website/cue/reference/components/sinks/base/appsignal.cue +++ b/website/cue/reference/components/sinks/base/appsignal.cue @@ -386,6 +386,15 @@ base: components: sinks: appsignal: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue index 3c26ae7e3455c..4c701e1fbfa12 100644 --- a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue +++ b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue @@ -781,6 +781,15 @@ base: components: sinks: aws_cloudwatch_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_cloudwatch_metrics.cue b/website/cue/reference/components/sinks/base/aws_cloudwatch_metrics.cue index ff50dfea28990..f46f6bf1eae12 100644 --- a/website/cue/reference/components/sinks/base/aws_cloudwatch_metrics.cue +++ b/website/cue/reference/components/sinks/base/aws_cloudwatch_metrics.cue @@ -460,6 +460,15 @@ base: components: sinks: aws_cloudwatch_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue index 45f999b2aa76e..229bb5050c884 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue @@ -730,6 +730,15 @@ base: components: sinks: aws_kinesis_firehose: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue index 8d924f6b1a84e..7fced724c4592 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue @@ -730,6 +730,15 @@ base: components: sinks: aws_kinesis_streams: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_s3.cue b/website/cue/reference/components/sinks/base/aws_s3.cue index 2f36235549807..48bf7eeba61f1 100644 --- a/website/cue/reference/components/sinks/base/aws_s3.cue +++ b/website/cue/reference/components/sinks/base/aws_s3.cue @@ -1067,6 +1067,15 @@ base: components: sinks: aws_s3: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_sns.cue b/website/cue/reference/components/sinks/base/aws_sns.cue index 4b5f15b81d68c..c3bfd31ba02eb 100644 --- a/website/cue/reference/components/sinks/base/aws_sns.cue +++ b/website/cue/reference/components/sinks/base/aws_sns.cue @@ -659,6 +659,15 @@ base: components: sinks: aws_sns: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/aws_sqs.cue b/website/cue/reference/components/sinks/base/aws_sqs.cue index 5b33a0b9f374d..e7f95dd848d9f 100644 --- a/website/cue/reference/components/sinks/base/aws_sqs.cue +++ b/website/cue/reference/components/sinks/base/aws_sqs.cue @@ -664,6 +664,15 @@ base: components: sinks: aws_sqs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/axiom.cue b/website/cue/reference/components/sinks/base/axiom.cue index 9a810d7973996..582e33ba32122 100644 --- a/website/cue/reference/components/sinks/base/axiom.cue +++ b/website/cue/reference/components/sinks/base/axiom.cue @@ -323,6 +323,15 @@ base: components: sinks: axiom: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue index 2b4d393dd8db9..98ec28e6a1987 100644 --- a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue +++ b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue @@ -390,6 +390,15 @@ base: components: sinks: azure_monitor_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/clickhouse.cue b/website/cue/reference/components/sinks/base/clickhouse.cue index e7aad6595cfb5..18db9b798a6ea 100644 --- a/website/cue/reference/components/sinks/base/clickhouse.cue +++ b/website/cue/reference/components/sinks/base/clickhouse.cue @@ -459,6 +459,15 @@ base: components: sinks: clickhouse: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/databend.cue b/website/cue/reference/components/sinks/base/databend.cue index 1ece4bb91f664..dd78dea03ddbb 100644 --- a/website/cue/reference/components/sinks/base/databend.cue +++ b/website/cue/reference/components/sinks/base/databend.cue @@ -548,6 +548,15 @@ base: components: sinks: databend: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/datadog_events.cue b/website/cue/reference/components/sinks/base/datadog_events.cue index 9808b287a1eb8..dc68216982360 100644 --- a/website/cue/reference/components/sinks/base/datadog_events.cue +++ b/website/cue/reference/components/sinks/base/datadog_events.cue @@ -320,6 +320,15 @@ base: components: sinks: datadog_events: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/datadog_logs.cue b/website/cue/reference/components/sinks/base/datadog_logs.cue index 668b9dbf0836f..212080ac36403 100644 --- a/website/cue/reference/components/sinks/base/datadog_logs.cue +++ b/website/cue/reference/components/sinks/base/datadog_logs.cue @@ -423,6 +423,15 @@ base: components: sinks: datadog_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/datadog_metrics.cue b/website/cue/reference/components/sinks/base/datadog_metrics.cue index 3e328de7f7ff9..692d9747c4e55 100644 --- a/website/cue/reference/components/sinks/base/datadog_metrics.cue +++ b/website/cue/reference/components/sinks/base/datadog_metrics.cue @@ -362,6 +362,15 @@ base: components: sinks: datadog_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/datadog_traces.cue b/website/cue/reference/components/sinks/base/datadog_traces.cue index c16b88d59ed39..2aabe6de19996 100644 --- a/website/cue/reference/components/sinks/base/datadog_traces.cue +++ b/website/cue/reference/components/sinks/base/datadog_traces.cue @@ -386,6 +386,15 @@ base: components: sinks: datadog_traces: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/elasticsearch.cue b/website/cue/reference/components/sinks/base/elasticsearch.cue index 68943aa186fac..dd69048d1cbb7 100644 --- a/website/cue/reference/components/sinks/base/elasticsearch.cue +++ b/website/cue/reference/components/sinks/base/elasticsearch.cue @@ -839,6 +839,15 @@ base: components: sinks: elasticsearch: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue index 9057857d4f38d..f1ae8d559b5ac 100644 --- a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue +++ b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue @@ -643,6 +643,15 @@ base: components: sinks: gcp_chronicle_unstructured: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue index 7f3095c6050ec..d9a3377cb839a 100644 --- a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue +++ b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue @@ -842,6 +842,15 @@ base: components: sinks: gcp_cloud_storage: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/gcp_pubsub.cue b/website/cue/reference/components/sinks/base/gcp_pubsub.cue index 474e3a87b341e..4ee3b9bc8d1b0 100644 --- a/website/cue/reference/components/sinks/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sinks/base/gcp_pubsub.cue @@ -611,6 +611,15 @@ base: components: sinks: gcp_pubsub: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue index c7f985ddeeabc..5d53da60773c7 100644 --- a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue +++ b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue @@ -466,6 +466,15 @@ base: components: sinks: gcp_stackdriver_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/gcp_stackdriver_metrics.cue b/website/cue/reference/components/sinks/base/gcp_stackdriver_metrics.cue index 7d36016e10647..aa84f138ed06a 100644 --- a/website/cue/reference/components/sinks/base/gcp_stackdriver_metrics.cue +++ b/website/cue/reference/components/sinks/base/gcp_stackdriver_metrics.cue @@ -387,6 +387,15 @@ base: components: sinks: gcp_stackdriver_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/greptimedb.cue b/website/cue/reference/components/sinks/base/greptimedb.cue index 6f5184e5d41c0..38134330252a9 100644 --- a/website/cue/reference/components/sinks/base/greptimedb.cue +++ b/website/cue/reference/components/sinks/base/greptimedb.cue @@ -369,6 +369,15 @@ base: components: sinks: greptimedb: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/greptimedb_logs.cue b/website/cue/reference/components/sinks/base/greptimedb_logs.cue index 9b566b8489941..48cef14f17a3f 100644 --- a/website/cue/reference/components/sinks/base/greptimedb_logs.cue +++ b/website/cue/reference/components/sinks/base/greptimedb_logs.cue @@ -432,6 +432,15 @@ base: components: sinks: greptimedb_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/greptimedb_metrics.cue b/website/cue/reference/components/sinks/base/greptimedb_metrics.cue index 98169fe586658..f41ec11c84a48 100644 --- a/website/cue/reference/components/sinks/base/greptimedb_metrics.cue +++ b/website/cue/reference/components/sinks/base/greptimedb_metrics.cue @@ -369,6 +369,15 @@ base: components: sinks: greptimedb_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/http.cue b/website/cue/reference/components/sinks/base/http.cue index 6630fd76347c3..0debd610db4b9 100644 --- a/website/cue/reference/components/sinks/base/http.cue +++ b/website/cue/reference/components/sinks/base/http.cue @@ -763,6 +763,15 @@ base: components: sinks: http: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/humio_logs.cue b/website/cue/reference/components/sinks/base/humio_logs.cue index 9c835d7f41c6b..2eadee967bf46 100644 --- a/website/cue/reference/components/sinks/base/humio_logs.cue +++ b/website/cue/reference/components/sinks/base/humio_logs.cue @@ -688,6 +688,15 @@ base: components: sinks: humio_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/humio_metrics.cue b/website/cue/reference/components/sinks/base/humio_metrics.cue index bb069f86cb899..898d18e8075b4 100644 --- a/website/cue/reference/components/sinks/base/humio_metrics.cue +++ b/website/cue/reference/components/sinks/base/humio_metrics.cue @@ -463,6 +463,15 @@ base: components: sinks: humio_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/influxdb_logs.cue b/website/cue/reference/components/sinks/base/influxdb_logs.cue index 757dc6eac7b35..e6243f65f0e0a 100644 --- a/website/cue/reference/components/sinks/base/influxdb_logs.cue +++ b/website/cue/reference/components/sinks/base/influxdb_logs.cue @@ -449,6 +449,15 @@ base: components: sinks: influxdb_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/influxdb_metrics.cue b/website/cue/reference/components/sinks/base/influxdb_metrics.cue index 4a4108d59f7f3..05912be5aa51c 100644 --- a/website/cue/reference/components/sinks/base/influxdb_metrics.cue +++ b/website/cue/reference/components/sinks/base/influxdb_metrics.cue @@ -393,6 +393,15 @@ base: components: sinks: influxdb_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/kafka.cue b/website/cue/reference/components/sinks/base/kafka.cue index 21085b3d2258a..05d677a789077 100644 --- a/website/cue/reference/components/sinks/base/kafka.cue +++ b/website/cue/reference/components/sinks/base/kafka.cue @@ -511,6 +511,15 @@ base: components: sinks: kafka: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/loki.cue b/website/cue/reference/components/sinks/base/loki.cue index d6d78cbc799d1..f5deada8211cb 100644 --- a/website/cue/reference/components/sinks/base/loki.cue +++ b/website/cue/reference/components/sinks/base/loki.cue @@ -769,6 +769,15 @@ base: components: sinks: loki: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/mqtt.cue b/website/cue/reference/components/sinks/base/mqtt.cue index 3eb0da7b67139..0c3bfc6d95d09 100644 --- a/website/cue/reference/components/sinks/base/mqtt.cue +++ b/website/cue/reference/components/sinks/base/mqtt.cue @@ -393,6 +393,15 @@ base: components: sinks: mqtt: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/nats.cue b/website/cue/reference/components/sinks/base/nats.cue index 870fe8ae31250..bd88e62e0229f 100644 --- a/website/cue/reference/components/sinks/base/nats.cue +++ b/website/cue/reference/components/sinks/base/nats.cue @@ -655,6 +655,15 @@ base: components: sinks: nats: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/papertrail.cue b/website/cue/reference/components/sinks/base/papertrail.cue index a8f87af800f58..b583fe8473c8a 100644 --- a/website/cue/reference/components/sinks/base/papertrail.cue +++ b/website/cue/reference/components/sinks/base/papertrail.cue @@ -374,6 +374,15 @@ base: components: sinks: papertrail: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/prometheus_exporter.cue b/website/cue/reference/components/sinks/base/prometheus_exporter.cue index 225a3f3cb8860..ac754b34d6a80 100644 --- a/website/cue/reference/components/sinks/base/prometheus_exporter.cue +++ b/website/cue/reference/components/sinks/base/prometheus_exporter.cue @@ -228,6 +228,15 @@ base: components: sinks: prometheus_exporter: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/prometheus_remote_write.cue b/website/cue/reference/components/sinks/base/prometheus_remote_write.cue index 340e12742396d..a6072bf233d0a 100644 --- a/website/cue/reference/components/sinks/base/prometheus_remote_write.cue +++ b/website/cue/reference/components/sinks/base/prometheus_remote_write.cue @@ -560,6 +560,15 @@ base: components: sinks: prometheus_remote_write: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/socket.cue b/website/cue/reference/components/sinks/base/socket.cue index 563a81d463310..b98710f17d3d4 100644 --- a/website/cue/reference/components/sinks/base/socket.cue +++ b/website/cue/reference/components/sinks/base/socket.cue @@ -461,6 +461,15 @@ base: components: sinks: socket: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue index e668d63b8583f..d1f204d4ceb8e 100644 --- a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue +++ b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue @@ -752,6 +752,15 @@ base: components: sinks: splunk_hec_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/splunk_hec_metrics.cue b/website/cue/reference/components/sinks/base/splunk_hec_metrics.cue index 2d752733aa825..619a2aa7be511 100644 --- a/website/cue/reference/components/sinks/base/splunk_hec_metrics.cue +++ b/website/cue/reference/components/sinks/base/splunk_hec_metrics.cue @@ -439,6 +439,15 @@ base: components: sinks: splunk_hec_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/statsd.cue b/website/cue/reference/components/sinks/base/statsd.cue index 2064e1a2817c0..525dd397d9e4a 100644 --- a/website/cue/reference/components/sinks/base/statsd.cue +++ b/website/cue/reference/components/sinks/base/statsd.cue @@ -191,6 +191,15 @@ base: components: sinks: statsd: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/vector.cue b/website/cue/reference/components/sinks/base/vector.cue index 5e8f725a56e45..1d7d1e9ed19ea 100644 --- a/website/cue/reference/components/sinks/base/vector.cue +++ b/website/cue/reference/components/sinks/base/vector.cue @@ -330,6 +330,15 @@ base: components: sinks: vector: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sinks/base/websocket.cue b/website/cue/reference/components/sinks/base/websocket.cue index 8af887fd24287..6351934706b02 100644 --- a/website/cue/reference/components/sinks/base/websocket.cue +++ b/website/cue/reference/components/sinks/base/websocket.cue @@ -418,6 +418,15 @@ base: components: sinks: websocket: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/amqp.cue b/website/cue/reference/components/sources/base/amqp.cue index 6e5ad1d0bae17..d12ef5c2ae03d 100644 --- a/website/cue/reference/components/sources/base/amqp.cue +++ b/website/cue/reference/components/sources/base/amqp.cue @@ -477,6 +477,15 @@ base: components: sources: amqp: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/aws_kinesis_firehose.cue b/website/cue/reference/components/sources/base/aws_kinesis_firehose.cue index e9941fc2f23ee..6df9221791960 100644 --- a/website/cue/reference/components/sources/base/aws_kinesis_firehose.cue +++ b/website/cue/reference/components/sources/base/aws_kinesis_firehose.cue @@ -549,6 +549,15 @@ base: components: sources: aws_kinesis_firehose: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/aws_s3.cue b/website/cue/reference/components/sources/base/aws_s3.cue index 43fd7ed0dd239..f47ddf8a87eac 100644 --- a/website/cue/reference/components/sources/base/aws_s3.cue +++ b/website/cue/reference/components/sources/base/aws_s3.cue @@ -753,6 +753,15 @@ base: components: sources: aws_s3: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the @@ -855,6 +864,15 @@ base: components: sources: aws_s3: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/aws_sqs.cue b/website/cue/reference/components/sources/base/aws_sqs.cue index e96b82f0967a7..bc5dc30aab9a8 100644 --- a/website/cue/reference/components/sources/base/aws_sqs.cue +++ b/website/cue/reference/components/sources/base/aws_sqs.cue @@ -591,6 +591,15 @@ base: components: sources: aws_sqs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/datadog_agent.cue b/website/cue/reference/components/sources/base/datadog_agent.cue index 426e8c29eb940..4877e76a20756 100644 --- a/website/cue/reference/components/sources/base/datadog_agent.cue +++ b/website/cue/reference/components/sources/base/datadog_agent.cue @@ -528,6 +528,15 @@ base: components: sources: datadog_agent: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/dnstap.cue b/website/cue/reference/components/sources/base/dnstap.cue index 24a20f6ecc7f1..f85533b1e63a4 100644 --- a/website/cue/reference/components/sources/base/dnstap.cue +++ b/website/cue/reference/components/sources/base/dnstap.cue @@ -242,6 +242,15 @@ base: components: sources: dnstap: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/fluent.cue b/website/cue/reference/components/sources/base/fluent.cue index d5574a65ca790..511737a62c462 100644 --- a/website/cue/reference/components/sources/base/fluent.cue +++ b/website/cue/reference/components/sources/base/fluent.cue @@ -133,6 +133,15 @@ base: components: sources: fluent: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/gcp_pubsub.cue b/website/cue/reference/components/sources/base/gcp_pubsub.cue index adf442059641b..15059be769f5d 100644 --- a/website/cue/reference/components/sources/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sources/base/gcp_pubsub.cue @@ -561,6 +561,15 @@ base: components: sources: gcp_pubsub: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/heroku_logs.cue b/website/cue/reference/components/sources/base/heroku_logs.cue index ba5600f6c3e3f..016d8df4a33e5 100644 --- a/website/cue/reference/components/sources/base/heroku_logs.cue +++ b/website/cue/reference/components/sources/base/heroku_logs.cue @@ -510,6 +510,15 @@ base: components: sources: heroku_logs: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/http.cue b/website/cue/reference/components/sources/base/http.cue index 1691c853faaf1..11eae098d87be 100644 --- a/website/cue/reference/components/sources/base/http.cue +++ b/website/cue/reference/components/sources/base/http.cue @@ -601,6 +601,15 @@ base: components: sources: http: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/http_client.cue b/website/cue/reference/components/sources/base/http_client.cue index ca9742e9686c8..edda8ad20cfd8 100644 --- a/website/cue/reference/components/sources/base/http_client.cue +++ b/website/cue/reference/components/sources/base/http_client.cue @@ -534,6 +534,15 @@ base: components: sources: http_client: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/http_server.cue b/website/cue/reference/components/sources/base/http_server.cue index 64387468f7b87..fbba0be4d0383 100644 --- a/website/cue/reference/components/sources/base/http_server.cue +++ b/website/cue/reference/components/sources/base/http_server.cue @@ -601,6 +601,15 @@ base: components: sources: http_server: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/kafka.cue b/website/cue/reference/components/sources/base/kafka.cue index 18f3ecb3fd1ce..19dc44e6711bd 100644 --- a/website/cue/reference/components/sources/base/kafka.cue +++ b/website/cue/reference/components/sources/base/kafka.cue @@ -648,6 +648,15 @@ base: components: sources: kafka: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/logstash.cue b/website/cue/reference/components/sources/base/logstash.cue index 267c4fe2b8df4..920f859b408b8 100644 --- a/website/cue/reference/components/sources/base/logstash.cue +++ b/website/cue/reference/components/sources/base/logstash.cue @@ -129,6 +129,15 @@ base: components: sources: logstash: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/nats.cue b/website/cue/reference/components/sources/base/nats.cue index 5f98a1cfcd3b6..5c1346875842f 100644 --- a/website/cue/reference/components/sources/base/nats.cue +++ b/website/cue/reference/components/sources/base/nats.cue @@ -552,6 +552,15 @@ base: components: sources: nats: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/nginx_metrics.cue b/website/cue/reference/components/sources/base/nginx_metrics.cue index 9021091a1ffa7..b3c408c1b0a51 100644 --- a/website/cue/reference/components/sources/base/nginx_metrics.cue +++ b/website/cue/reference/components/sources/base/nginx_metrics.cue @@ -130,6 +130,15 @@ base: components: sources: nginx_metrics: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/opentelemetry.cue b/website/cue/reference/components/sources/base/opentelemetry.cue index 8b0f42c145f4d..2d854ee1b4737 100644 --- a/website/cue/reference/components/sources/base/opentelemetry.cue +++ b/website/cue/reference/components/sources/base/opentelemetry.cue @@ -102,6 +102,15 @@ base: components: sources: opentelemetry: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the @@ -255,6 +264,15 @@ base: components: sources: opentelemetry: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/prometheus_pushgateway.cue b/website/cue/reference/components/sources/base/prometheus_pushgateway.cue index 5c3f093a1d9b4..9d00229d003e4 100644 --- a/website/cue/reference/components/sources/base/prometheus_pushgateway.cue +++ b/website/cue/reference/components/sources/base/prometheus_pushgateway.cue @@ -154,6 +154,15 @@ base: components: sources: prometheus_pushgateway: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/prometheus_remote_write.cue b/website/cue/reference/components/sources/base/prometheus_remote_write.cue index 45a7d8038dab9..60530cc9e0a23 100644 --- a/website/cue/reference/components/sources/base/prometheus_remote_write.cue +++ b/website/cue/reference/components/sources/base/prometheus_remote_write.cue @@ -144,6 +144,15 @@ base: components: sources: prometheus_remote_write: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/prometheus_scrape.cue b/website/cue/reference/components/sources/base/prometheus_scrape.cue index 13d5d934e4467..41eb855cc768d 100644 --- a/website/cue/reference/components/sources/base/prometheus_scrape.cue +++ b/website/cue/reference/components/sources/base/prometheus_scrape.cue @@ -176,6 +176,15 @@ base: components: sources: prometheus_scrape: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/socket.cue b/website/cue/reference/components/sources/base/socket.cue index 898d438023dc6..5416a40d78184 100644 --- a/website/cue/reference/components/sources/base/socket.cue +++ b/website/cue/reference/components/sources/base/socket.cue @@ -556,6 +556,15 @@ base: components: sources: socket: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/splunk_hec.cue b/website/cue/reference/components/sources/base/splunk_hec.cue index 44a7604d0064a..a52ffce0dea2b 100644 --- a/website/cue/reference/components/sources/base/splunk_hec.cue +++ b/website/cue/reference/components/sources/base/splunk_hec.cue @@ -179,6 +179,15 @@ base: components: sources: splunk_hec: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/statsd.cue b/website/cue/reference/components/sources/base/statsd.cue index 44ddea8eeffc3..f601213bf736b 100644 --- a/website/cue/reference/components/sources/base/statsd.cue +++ b/website/cue/reference/components/sources/base/statsd.cue @@ -147,6 +147,15 @@ base: components: sources: statsd: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/syslog.cue b/website/cue/reference/components/sources/base/syslog.cue index f067f60129510..d054a9605d2d5 100644 --- a/website/cue/reference/components/sources/base/syslog.cue +++ b/website/cue/reference/components/sources/base/syslog.cue @@ -173,6 +173,15 @@ base: components: sources: syslog: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the diff --git a/website/cue/reference/components/sources/base/vector.cue b/website/cue/reference/components/sources/base/vector.cue index affa6c0fd01c8..f379d163ff2c7 100644 --- a/website/cue/reference/components/sources/base/vector.cue +++ b/website/cue/reference/components/sources/base/vector.cue @@ -94,6 +94,15 @@ base: components: sources: vector: configuration: { required: false type: string: examples: ["${KEY_PASS_ENV_VAR}", "PassWord1"] } + server_name: { + description: """ + Server name to use when using Server Name Indication (SNI). + + Only relevant for outgoing connections. + """ + required: false + type: string: examples: ["www.example.com"] + } verify_certificate: { description: """ Enables certificate verification. For components that create a server, this requires that the