Skip to content

Commit 5151c53

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
observability pipelines add tls.verify_certificate field to multiple push sources (#1609)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 81a6f4c commit 5151c53

13 files changed

Lines changed: 277 additions & 50 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54546,7 +54546,7 @@ components:
5454654546
example: "fluent-source"
5454754547
type: string
5454854548
tls:
54549-
$ref: "#/components/schemas/ObservabilityPipelineTls"
54549+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5455054550
type:
5455154551
$ref: "#/components/schemas/ObservabilityPipelineFluentBitSourceType"
5455254552
required:
@@ -54578,7 +54578,7 @@ components:
5457854578
example: "fluent-source"
5457954579
type: string
5458054580
tls:
54581-
$ref: "#/components/schemas/ObservabilityPipelineTls"
54581+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5458254582
type:
5458354583
$ref: "#/components/schemas/ObservabilityPipelineFluentdSourceType"
5458454584
required:
@@ -55179,7 +55179,7 @@ components:
5517955179
example: HTTP_AUTH_PASSWORD
5518055180
type: string
5518155181
tls:
55182-
$ref: "#/components/schemas/ObservabilityPipelineTls"
55182+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5518355183
type:
5518455184
$ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceType"
5518555185
username_key:
@@ -55493,7 +55493,7 @@ components:
5549355493
example: logstash-source
5549455494
type: string
5549555495
tls:
55496-
$ref: "#/components/schemas/ObservabilityPipelineTls"
55496+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5549755497
type:
5549855498
$ref: "#/components/schemas/ObservabilityPipelineLogstashSourceType"
5549955499
required:
@@ -55644,6 +55644,29 @@ components:
5564455644
oneOf:
5564555645
- $ref: "#/components/schemas/ObservabilityPipelineGeneratedMetricIncrementByOne"
5564655646
- $ref: "#/components/schemas/ObservabilityPipelineGeneratedMetricIncrementByField"
55647+
ObservabilityPipelineMtlsServerTls:
55648+
description: Configuration for enabling TLS encryption between the pipeline component and external connecting clients.
55649+
properties:
55650+
ca_file:
55651+
description: Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates.
55652+
type: string
55653+
crt_file:
55654+
description: Path to the TLS server certificate file used to used to identify the pipeline component to connecting clients.
55655+
example: "/path/to/cert.crt"
55656+
type: string
55657+
key_file:
55658+
description: Path to the private key file associated with the TLS server certificate.
55659+
type: string
55660+
key_pass_key:
55661+
description: Name of the environment variable or secret that holds the passphrase for the private key file.
55662+
example: TLS_KEY_PASSPHRASE
55663+
type: string
55664+
verify_certificate:
55665+
description: When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication.
55666+
type: boolean
55667+
required:
55668+
- crt_file
55669+
type: object
5564755670
ObservabilityPipelineNewRelicDestination:
5564855671
description: |-
5564955672
The `new_relic` destination sends logs to the New Relic platform.
@@ -55983,7 +56006,7 @@ components:
5598356006
example: opentelemetry-source
5598456007
type: string
5598556008
tls:
55986-
$ref: "#/components/schemas/ObservabilityPipelineTls"
56009+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5598756010
type:
5598856011
$ref: "#/components/schemas/ObservabilityPipelineOpentelemetrySourceType"
5598956012
required:
@@ -56611,7 +56634,7 @@ components:
5661156634
mode:
5661256635
$ref: "#/components/schemas/ObservabilityPipelineSyslogSourceMode"
5661356636
tls:
56614-
$ref: "#/components/schemas/ObservabilityPipelineTls"
56637+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5661556638
type:
5661656639
$ref: "#/components/schemas/ObservabilityPipelineRsyslogSourceType"
5661756640
required:
@@ -57182,7 +57205,7 @@ components:
5718257205
mode:
5718357206
$ref: "#/components/schemas/ObservabilityPipelineSocketSourceMode"
5718457207
tls:
57185-
$ref: "#/components/schemas/ObservabilityPipelineTls"
57208+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5718657209
description: TLS configuration. Relevant only when `mode` is `tcp`.
5718757210
type:
5718857211
$ref: "#/components/schemas/ObservabilityPipelineSocketSourceType"
@@ -57507,7 +57530,7 @@ components:
5750757530
example: true
5750857531
type: boolean
5750957532
tls:
57510-
$ref: "#/components/schemas/ObservabilityPipelineTls"
57533+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5751157534
type:
5751257535
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceType"
5751357536
valid_tokens:
@@ -57569,7 +57592,7 @@ components:
5756957592
example: splunk-tcp-source
5757057593
type: string
5757157594
tls:
57572-
$ref: "#/components/schemas/ObservabilityPipelineTls"
57595+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5757357596
type:
5757457597
$ref: "#/components/schemas/ObservabilityPipelineSplunkTcpSourceType"
5757557598
required:
@@ -57763,7 +57786,7 @@ components:
5776357786
mode:
5776457787
$ref: "#/components/schemas/ObservabilityPipelineSyslogSourceMode"
5776557788
tls:
57766-
$ref: "#/components/schemas/ObservabilityPipelineTls"
57789+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
5776757790
type:
5776857791
$ref: "#/components/schemas/ObservabilityPipelineSyslogNgSourceType"
5776957792
required:

src/datadogV2/model/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6610,6 +6610,8 @@ pub mod model_observability_pipeline_amazon_s3_source_type;
66106610
pub use self::model_observability_pipeline_amazon_s3_source_type::ObservabilityPipelineAmazonS3SourceType;
66116611
pub mod model_observability_pipeline_fluent_bit_source;
66126612
pub use self::model_observability_pipeline_fluent_bit_source::ObservabilityPipelineFluentBitSource;
6613+
pub mod model_observability_pipeline_mtls_server_tls;
6614+
pub use self::model_observability_pipeline_mtls_server_tls::ObservabilityPipelineMtlsServerTls;
66136615
pub mod model_observability_pipeline_fluent_bit_source_type;
66146616
pub use self::model_observability_pipeline_fluent_bit_source_type::ObservabilityPipelineFluentBitSourceType;
66156617
pub mod model_observability_pipeline_fluentd_source;

src/datadogV2/model/model_observability_pipeline_fluent_bit_source.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub struct ObservabilityPipelineFluentBitSource {
1919
/// The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2020
#[serde(rename = "id")]
2121
pub id: String,
22-
/// Configuration for enabling TLS encryption between the pipeline component and external services.
22+
/// Configuration for enabling TLS encryption between the pipeline component and external connecting clients.
2323
#[serde(rename = "tls")]
24-
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
24+
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls>,
2525
/// The source type. The value should always be `fluent_bit`.
2626
#[serde(rename = "type")]
2727
pub type_: crate::datadogV2::model::ObservabilityPipelineFluentBitSourceType,
@@ -52,7 +52,10 @@ impl ObservabilityPipelineFluentBitSource {
5252
self
5353
}
5454

55-
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
55+
pub fn tls(
56+
mut self,
57+
value: crate::datadogV2::model::ObservabilityPipelineMtlsServerTls,
58+
) -> Self {
5659
self.tls = Some(value);
5760
self
5861
}
@@ -85,7 +88,8 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineFluentBitSource {
8588
{
8689
let mut address_key: Option<String> = None;
8790
let mut id: Option<String> = None;
88-
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
91+
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls> =
92+
None;
8993
let mut type_: Option<
9094
crate::datadogV2::model::ObservabilityPipelineFluentBitSourceType,
9195
> = None;

src/datadogV2/model/model_observability_pipeline_fluentd_source.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub struct ObservabilityPipelineFluentdSource {
1919
/// The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2020
#[serde(rename = "id")]
2121
pub id: String,
22-
/// Configuration for enabling TLS encryption between the pipeline component and external services.
22+
/// Configuration for enabling TLS encryption between the pipeline component and external connecting clients.
2323
#[serde(rename = "tls")]
24-
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
24+
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls>,
2525
/// The source type. The value should always be `fluentd.
2626
#[serde(rename = "type")]
2727
pub type_: crate::datadogV2::model::ObservabilityPipelineFluentdSourceType,
@@ -52,7 +52,10 @@ impl ObservabilityPipelineFluentdSource {
5252
self
5353
}
5454

55-
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
55+
pub fn tls(
56+
mut self,
57+
value: crate::datadogV2::model::ObservabilityPipelineMtlsServerTls,
58+
) -> Self {
5659
self.tls = Some(value);
5760
self
5861
}
@@ -85,7 +88,8 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineFluentdSource {
8588
{
8689
let mut address_key: Option<String> = None;
8790
let mut id: Option<String> = None;
88-
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
91+
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls> =
92+
None;
8993
let mut type_: Option<
9094
crate::datadogV2::model::ObservabilityPipelineFluentdSourceType,
9195
> = None;

src/datadogV2/model/model_observability_pipeline_http_server_source.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ pub struct ObservabilityPipelineHttpServerSource {
3131
/// Name of the environment variable or secret that holds the password (used when `auth_strategy` is `plain`).
3232
#[serde(rename = "password_key")]
3333
pub password_key: Option<String>,
34-
/// Configuration for enabling TLS encryption between the pipeline component and external services.
34+
/// Configuration for enabling TLS encryption between the pipeline component and external connecting clients.
3535
#[serde(rename = "tls")]
36-
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
36+
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls>,
3737
/// The source type. The value should always be `http_server`.
3838
#[serde(rename = "type")]
3939
pub type_: crate::datadogV2::model::ObservabilityPipelineHttpServerSourceType,
@@ -91,7 +91,10 @@ impl ObservabilityPipelineHttpServerSource {
9191
self
9292
}
9393

94-
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
94+
pub fn tls(
95+
mut self,
96+
value: crate::datadogV2::model::ObservabilityPipelineMtlsServerTls,
97+
) -> Self {
9598
self.tls = Some(value);
9699
self
97100
}
@@ -144,7 +147,8 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineHttpServerSource {
144147
None;
145148
let mut id: Option<String> = None;
146149
let mut password_key: Option<String> = None;
147-
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
150+
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls> =
151+
None;
148152
let mut type_: Option<
149153
crate::datadogV2::model::ObservabilityPipelineHttpServerSourceType,
150154
> = None;

src/datadogV2/model/model_observability_pipeline_logstash_source.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub struct ObservabilityPipelineLogstashSource {
1919
/// The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2020
#[serde(rename = "id")]
2121
pub id: String,
22-
/// Configuration for enabling TLS encryption between the pipeline component and external services.
22+
/// Configuration for enabling TLS encryption between the pipeline component and external connecting clients.
2323
#[serde(rename = "tls")]
24-
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineTls>,
24+
pub tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls>,
2525
/// The source type. The value should always be `logstash`.
2626
#[serde(rename = "type")]
2727
pub type_: crate::datadogV2::model::ObservabilityPipelineLogstashSourceType,
@@ -52,7 +52,10 @@ impl ObservabilityPipelineLogstashSource {
5252
self
5353
}
5454

55-
pub fn tls(mut self, value: crate::datadogV2::model::ObservabilityPipelineTls) -> Self {
55+
pub fn tls(
56+
mut self,
57+
value: crate::datadogV2::model::ObservabilityPipelineMtlsServerTls,
58+
) -> Self {
5659
self.tls = Some(value);
5760
self
5861
}
@@ -85,7 +88,8 @@ impl<'de> Deserialize<'de> for ObservabilityPipelineLogstashSource {
8588
{
8689
let mut address_key: Option<String> = None;
8790
let mut id: Option<String> = None;
88-
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineTls> = None;
91+
let mut tls: Option<crate::datadogV2::model::ObservabilityPipelineMtlsServerTls> =
92+
None;
8993
let mut type_: Option<
9094
crate::datadogV2::model::ObservabilityPipelineLogstashSourceType,
9195
> = None;

0 commit comments

Comments
 (0)