diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index d099e711809..0b946abfb23 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -100152,6 +100152,90 @@ components:
type: string
x-enum-varnames:
- CLICKHOUSE
+ ObservabilityPipelineClientIdentity:
+ description: |-
+ Restricts which clients may connect, based on the identities in their TLS certificate. Checks run during the TLS handshake, after the client certificate chain is validated against `ca_file`, and never relax that validation.
+ Requires `verify_certificate: true` and `ca_file`. Set exactly one of `allowlist_file` or `allowlist`.
+ When set, connections are closed after a maximum age of 300 seconds so that clients removed from the allowlist are disconnected.
+ Requires Observability Pipelines Worker 2.27 or later.
+ properties:
+ allowlist:
+ $ref: "#/components/schemas/ObservabilityPipelineClientIdentityAllowlist"
+ allowlist_file:
+ description: Path to an allowlist file, relative to the Worker's data directory. The Worker reloads the file when it changes. Must not contain parent directory (`..`) references.
+ example: client-allowlist.yaml
+ minLength: 1
+ type: string
+ mode:
+ $ref: "#/components/schemas/ObservabilityPipelineClientIdentityMode"
+ type: object
+ ObservabilityPipelineClientIdentityAllowlist:
+ description: An allowlist of client identities. A client is allowed when any rule matches.
+ properties:
+ rules:
+ description: Rules, evaluated in order. The first matching rule is the one reported in metrics.
+ items:
+ $ref: "#/components/schemas/ObservabilityPipelineClientIdentityRule"
+ maxItems: 1000
+ minItems: 1
+ type: array
+ required:
+ - rules
+ type: object
+ ObservabilityPipelineClientIdentityMode:
+ default: enforce
+ description: What happens to a client that no rule allows. `enforce` rejects the TLS handshake. `audit` accepts the client and reports that it would have been rejected.
+ enum:
+ - enforce
+ - audit
+ example: enforce
+ type: string
+ x-enum-varnames:
+ - ENFORCE
+ - AUDIT
+ ObservabilityPipelineClientIdentityRule:
+ description: A named rule. It matches when every constraint it defines matches at least one identity in the client's certificate. It must define at least one of `common_names`, `dns_sans`, or `uri_sans`.
+ properties:
+ common_names:
+ description: Patterns for the certificate subject common name. Matching is case-sensitive, and `*` matches any characters, including dots.
+ example:
+ - "collector-*"
+ items:
+ minLength: 1
+ type: string
+ maxItems: 1000
+ minItems: 1
+ type: array
+ dns_sans:
+ description: Patterns for DNS subject alternative names. Matching is case-insensitive, and `*` matches any characters within one DNS label.
+ example:
+ - "*.collectors.example.com"
+ items:
+ minLength: 1
+ type: string
+ maxItems: 1000
+ minItems: 1
+ type: array
+ name:
+ description: Unique rule name, reported in metrics.
+ example: collectors
+ maxLength: 64
+ minLength: 1
+ pattern: "^[A-Za-z0-9._-]+$"
+ type: string
+ uri_sans:
+ description: Patterns for URI subject alternative names. Matching is case-sensitive. `*` matches any characters within one path segment, and a trailing `/**` matches the path and everything below it. Wildcards are only supported in the path.
+ example:
+ - "spiffe://example.com/ns/prod/**"
+ items:
+ minLength: 1
+ type: string
+ maxItems: 1000
+ minItems: 1
+ type: array
+ required:
+ - name
+ type: object
ObservabilityPipelineClientTls:
description: Configuration for enabling TLS encryption between the pipeline component and external services.
properties:
@@ -102274,7 +102358,7 @@ components:
example: HTTP_AUTH_PASSWORD
type: string
tls:
- $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
+ $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTlsWithClientIdentity"
type:
$ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceType"
username_key:
@@ -102929,7 +103013,32 @@ components:
description: Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates.
type: string
crt_file:
- description: Path to the TLS server certificate file used to used to identify the pipeline component to connecting clients.
+ description: Path to the TLS server certificate file used to identify the pipeline component to connecting clients.
+ example: "/path/to/cert.crt"
+ type: string
+ key_file:
+ description: Path to the private key file associated with the TLS server certificate.
+ type: string
+ key_pass_key:
+ description: Name of the environment variable or secret that holds the passphrase for the private key file.
+ example: TLS_KEY_PASSPHRASE
+ type: string
+ verify_certificate:
+ description: When `true`, requires client connections to present a valid certificate, enabling mutual TLS authentication.
+ type: boolean
+ required:
+ - crt_file
+ type: object
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity:
+ description: Configuration for enabling TLS encryption between the pipeline component and external connecting clients, or mutual TLS when `verify_certificate` is `true`. Mutual TLS also enables an optional allowlist of client certificate identities.
+ properties:
+ ca_file:
+ description: Path to the Certificate Authority (CA) file used to validate connecting clients' TLS certificates.
+ type: string
+ client_identity:
+ $ref: "#/components/schemas/ObservabilityPipelineClientIdentity"
+ crt_file:
+ description: Path to the TLS server certificate file used to identify the pipeline component to connecting clients.
example: "/path/to/cert.crt"
type: string
key_file:
@@ -103327,7 +103436,7 @@ components:
example: opentelemetry-source
type: string
tls:
- $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
+ $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTlsWithClientIdentity"
type:
$ref: "#/components/schemas/ObservabilityPipelineOpentelemetrySourceType"
required:
@@ -105377,7 +105486,7 @@ components:
example: true
type: boolean
tls:
- $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
+ $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTlsWithClientIdentity"
type:
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceType"
valid_tokens:
@@ -105446,7 +105555,7 @@ components:
minimum: 1
type: integer
tls:
- $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
+ $ref: "#/components/schemas/ObservabilityPipelineMtlsServerTlsWithClientIdentity"
type:
$ref: "#/components/schemas/ObservabilityPipelineSplunkTcpSourceType"
required:
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentity.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentity.java
new file mode 100644
index 00000000000..c0b3d2af7ad
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentity.java
@@ -0,0 +1,212 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * Restricts which clients may connect, based on the identities in their TLS certificate. Checks run
+ * during the TLS handshake, after the client certificate chain is validated against ca_file
+ * , and never relax that validation. Requires verify_certificate: true and
+ * ca_file. Set exactly one of allowlist_file or allowlist.
+ * When set, connections are closed after a maximum age of 300 seconds so that clients removed from
+ * the allowlist are disconnected. Requires Observability Pipelines Worker 2.27 or later.
+ */
+@JsonPropertyOrder({
+ ObservabilityPipelineClientIdentity.JSON_PROPERTY_ALLOWLIST,
+ ObservabilityPipelineClientIdentity.JSON_PROPERTY_ALLOWLIST_FILE,
+ ObservabilityPipelineClientIdentity.JSON_PROPERTY_MODE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ObservabilityPipelineClientIdentity {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ALLOWLIST = "allowlist";
+ private ObservabilityPipelineClientIdentityAllowlist allowlist;
+
+ public static final String JSON_PROPERTY_ALLOWLIST_FILE = "allowlist_file";
+ private String allowlistFile;
+
+ public static final String JSON_PROPERTY_MODE = "mode";
+ private ObservabilityPipelineClientIdentityMode mode =
+ ObservabilityPipelineClientIdentityMode.ENFORCE;
+
+ public ObservabilityPipelineClientIdentity allowlist(
+ ObservabilityPipelineClientIdentityAllowlist allowlist) {
+ this.allowlist = allowlist;
+ this.unparsed |= allowlist.unparsed;
+ return this;
+ }
+
+ /**
+ * An allowlist of client identities. A client is allowed when any rule matches.
+ *
+ * @return allowlist
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ALLOWLIST)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ObservabilityPipelineClientIdentityAllowlist getAllowlist() {
+ return allowlist;
+ }
+
+ public void setAllowlist(ObservabilityPipelineClientIdentityAllowlist allowlist) {
+ this.allowlist = allowlist;
+ if (allowlist != null) {
+ this.unparsed |= allowlist.unparsed;
+ }
+ }
+
+ public ObservabilityPipelineClientIdentity allowlistFile(String allowlistFile) {
+ this.allowlistFile = allowlistFile;
+ return this;
+ }
+
+ /**
+ * Path to an allowlist file, relative to the Worker's data directory. The Worker reloads the file
+ * when it changes. Must not contain parent directory (..) references.
+ *
+ * @return allowlistFile
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ALLOWLIST_FILE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAllowlistFile() {
+ return allowlistFile;
+ }
+
+ public void setAllowlistFile(String allowlistFile) {
+ this.allowlistFile = allowlistFile;
+ }
+
+ public ObservabilityPipelineClientIdentity mode(ObservabilityPipelineClientIdentityMode mode) {
+ this.mode = mode;
+ this.unparsed |= !mode.isValid();
+ return this;
+ }
+
+ /**
+ * What happens to a client that no rule allows. enforce rejects the TLS handshake.
+ * audit accepts the client and reports that it would have been rejected.
+ *
+ * @return mode
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_MODE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ObservabilityPipelineClientIdentityMode getMode() {
+ return mode;
+ }
+
+ public void setMode(ObservabilityPipelineClientIdentityMode mode) {
+ if (!mode.isValid()) {
+ this.unparsed = true;
+ }
+ this.mode = mode;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ObservabilityPipelineClientIdentity
+ */
+ @JsonAnySetter
+ public ObservabilityPipelineClientIdentity putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this ObservabilityPipelineClientIdentity object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ObservabilityPipelineClientIdentity observabilityPipelineClientIdentity =
+ (ObservabilityPipelineClientIdentity) o;
+ return Objects.equals(this.allowlist, observabilityPipelineClientIdentity.allowlist)
+ && Objects.equals(this.allowlistFile, observabilityPipelineClientIdentity.allowlistFile)
+ && Objects.equals(this.mode, observabilityPipelineClientIdentity.mode)
+ && Objects.equals(
+ this.additionalProperties, observabilityPipelineClientIdentity.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(allowlist, allowlistFile, mode, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ObservabilityPipelineClientIdentity {\n");
+ sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n");
+ sb.append(" allowlistFile: ").append(toIndentedString(allowlistFile)).append("\n");
+ sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityAllowlist.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityAllowlist.java
new file mode 100644
index 00000000000..3af4355fb72
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityAllowlist.java
@@ -0,0 +1,169 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/** An allowlist of client identities. A client is allowed when any rule matches. */
+@JsonPropertyOrder({ObservabilityPipelineClientIdentityAllowlist.JSON_PROPERTY_RULES})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ObservabilityPipelineClientIdentityAllowlist {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_RULES = "rules";
+ private List rules = new ArrayList<>();
+
+ public ObservabilityPipelineClientIdentityAllowlist() {}
+
+ @JsonCreator
+ public ObservabilityPipelineClientIdentityAllowlist(
+ @JsonProperty(required = true, value = JSON_PROPERTY_RULES)
+ List rules) {
+ this.rules = rules;
+ for (ObservabilityPipelineClientIdentityRule item : rules) {
+ this.unparsed |= item.unparsed;
+ }
+ }
+
+ public ObservabilityPipelineClientIdentityAllowlist rules(
+ List rules) {
+ this.rules = rules;
+ for (ObservabilityPipelineClientIdentityRule item : rules) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ObservabilityPipelineClientIdentityAllowlist addRulesItem(
+ ObservabilityPipelineClientIdentityRule rulesItem) {
+ this.rules.add(rulesItem);
+ this.unparsed |= rulesItem.unparsed;
+ return this;
+ }
+
+ /**
+ * Rules, evaluated in order. The first matching rule is the one reported in metrics.
+ *
+ * @return rules
+ */
+ @JsonProperty(JSON_PROPERTY_RULES)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public List getRules() {
+ return rules;
+ }
+
+ public void setRules(List rules) {
+ this.rules = rules;
+ if (rules != null) {
+ for (ObservabilityPipelineClientIdentityRule item : rules) {
+ this.unparsed |= item.unparsed;
+ }
+ }
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ObservabilityPipelineClientIdentityAllowlist
+ */
+ @JsonAnySetter
+ public ObservabilityPipelineClientIdentityAllowlist putAdditionalProperty(
+ String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this ObservabilityPipelineClientIdentityAllowlist object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ObservabilityPipelineClientIdentityAllowlist observabilityPipelineClientIdentityAllowlist =
+ (ObservabilityPipelineClientIdentityAllowlist) o;
+ return Objects.equals(this.rules, observabilityPipelineClientIdentityAllowlist.rules)
+ && Objects.equals(
+ this.additionalProperties,
+ observabilityPipelineClientIdentityAllowlist.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(rules, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ObservabilityPipelineClientIdentityAllowlist {\n");
+ sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityMode.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityMode.java
new file mode 100644
index 00000000000..82dd75ac6f7
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityMode.java
@@ -0,0 +1,68 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * What happens to a client that no rule allows. enforce rejects the TLS handshake.
+ * audit accepts the client and reports that it would have been rejected.
+ */
+@JsonSerialize(
+ using =
+ ObservabilityPipelineClientIdentityMode.ObservabilityPipelineClientIdentityModeSerializer
+ .class)
+public class ObservabilityPipelineClientIdentityMode extends ModelEnum {
+
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("enforce", "audit"));
+
+ public static final ObservabilityPipelineClientIdentityMode ENFORCE =
+ new ObservabilityPipelineClientIdentityMode("enforce");
+ public static final ObservabilityPipelineClientIdentityMode AUDIT =
+ new ObservabilityPipelineClientIdentityMode("audit");
+
+ ObservabilityPipelineClientIdentityMode(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class ObservabilityPipelineClientIdentityModeSerializer
+ extends StdSerializer {
+ public ObservabilityPipelineClientIdentityModeSerializer(
+ Class t) {
+ super(t);
+ }
+
+ public ObservabilityPipelineClientIdentityModeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ ObservabilityPipelineClientIdentityMode value,
+ JsonGenerator jgen,
+ SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static ObservabilityPipelineClientIdentityMode fromValue(String value) {
+ return new ObservabilityPipelineClientIdentityMode(value);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityRule.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityRule.java
new file mode 100644
index 00000000000..667ecc03494
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineClientIdentityRule.java
@@ -0,0 +1,263 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * A named rule. It matches when every constraint it defines matches at least one identity in the
+ * client's certificate. It must define at least one of common_names, dns_sans
+ * , or uri_sans.
+ */
+@JsonPropertyOrder({
+ ObservabilityPipelineClientIdentityRule.JSON_PROPERTY_COMMON_NAMES,
+ ObservabilityPipelineClientIdentityRule.JSON_PROPERTY_DNS_SANS,
+ ObservabilityPipelineClientIdentityRule.JSON_PROPERTY_NAME,
+ ObservabilityPipelineClientIdentityRule.JSON_PROPERTY_URI_SANS
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ObservabilityPipelineClientIdentityRule {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_COMMON_NAMES = "common_names";
+ private List commonNames = null;
+
+ public static final String JSON_PROPERTY_DNS_SANS = "dns_sans";
+ private List dnsSans = null;
+
+ public static final String JSON_PROPERTY_NAME = "name";
+ private String name;
+
+ public static final String JSON_PROPERTY_URI_SANS = "uri_sans";
+ private List uriSans = null;
+
+ public ObservabilityPipelineClientIdentityRule() {}
+
+ @JsonCreator
+ public ObservabilityPipelineClientIdentityRule(
+ @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) {
+ this.name = name;
+ }
+
+ public ObservabilityPipelineClientIdentityRule commonNames(List commonNames) {
+ this.commonNames = commonNames;
+ return this;
+ }
+
+ public ObservabilityPipelineClientIdentityRule addCommonNamesItem(String commonNamesItem) {
+ if (this.commonNames == null) {
+ this.commonNames = new ArrayList<>();
+ }
+ this.commonNames.add(commonNamesItem);
+ return this;
+ }
+
+ /**
+ * Patterns for the certificate subject common name. Matching is case-sensitive, and *
+ * matches any characters, including dots.
+ *
+ * @return commonNames
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_COMMON_NAMES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getCommonNames() {
+ return commonNames;
+ }
+
+ public void setCommonNames(List commonNames) {
+ this.commonNames = commonNames;
+ }
+
+ public ObservabilityPipelineClientIdentityRule dnsSans(List dnsSans) {
+ this.dnsSans = dnsSans;
+ return this;
+ }
+
+ public ObservabilityPipelineClientIdentityRule addDnsSansItem(String dnsSansItem) {
+ if (this.dnsSans == null) {
+ this.dnsSans = new ArrayList<>();
+ }
+ this.dnsSans.add(dnsSansItem);
+ return this;
+ }
+
+ /**
+ * Patterns for DNS subject alternative names. Matching is case-insensitive, and *
+ * matches any characters within one DNS label.
+ *
+ * @return dnsSans
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DNS_SANS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getDnsSans() {
+ return dnsSans;
+ }
+
+ public void setDnsSans(List dnsSans) {
+ this.dnsSans = dnsSans;
+ }
+
+ public ObservabilityPipelineClientIdentityRule name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Unique rule name, reported in metrics.
+ *
+ * @return name
+ */
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ObservabilityPipelineClientIdentityRule uriSans(List uriSans) {
+ this.uriSans = uriSans;
+ return this;
+ }
+
+ public ObservabilityPipelineClientIdentityRule addUriSansItem(String uriSansItem) {
+ if (this.uriSans == null) {
+ this.uriSans = new ArrayList<>();
+ }
+ this.uriSans.add(uriSansItem);
+ return this;
+ }
+
+ /**
+ * Patterns for URI subject alternative names. Matching is case-sensitive. * matches
+ * any characters within one path segment, and a trailing /** matches the path and
+ * everything below it. Wildcards are only supported in the path.
+ *
+ * @return uriSans
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_URI_SANS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getUriSans() {
+ return uriSans;
+ }
+
+ public void setUriSans(List uriSans) {
+ this.uriSans = uriSans;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ObservabilityPipelineClientIdentityRule
+ */
+ @JsonAnySetter
+ public ObservabilityPipelineClientIdentityRule putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this ObservabilityPipelineClientIdentityRule object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ObservabilityPipelineClientIdentityRule observabilityPipelineClientIdentityRule =
+ (ObservabilityPipelineClientIdentityRule) o;
+ return Objects.equals(this.commonNames, observabilityPipelineClientIdentityRule.commonNames)
+ && Objects.equals(this.dnsSans, observabilityPipelineClientIdentityRule.dnsSans)
+ && Objects.equals(this.name, observabilityPipelineClientIdentityRule.name)
+ && Objects.equals(this.uriSans, observabilityPipelineClientIdentityRule.uriSans)
+ && Objects.equals(
+ this.additionalProperties,
+ observabilityPipelineClientIdentityRule.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(commonNames, dnsSans, name, uriSans, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ObservabilityPipelineClientIdentityRule {\n");
+ sb.append(" commonNames: ").append(toIndentedString(commonNames)).append("\n");
+ sb.append(" dnsSans: ").append(toIndentedString(dnsSans)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" uriSans: ").append(toIndentedString(uriSans)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
index 154c4410a3d..06e41550295 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
@@ -59,7 +59,7 @@ public class ObservabilityPipelineHttpServerSource {
private String passwordKey;
public static final String JSON_PROPERTY_TLS = "tls";
- private ObservabilityPipelineMtlsServerTls tls;
+ private ObservabilityPipelineMtlsServerTlsWithClientIdentity tls;
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineHttpServerSourceType type =
@@ -225,7 +225,8 @@ public void setPasswordKey(String passwordKey) {
this.passwordKey = passwordKey;
}
- public ObservabilityPipelineHttpServerSource tls(ObservabilityPipelineMtlsServerTls tls) {
+ public ObservabilityPipelineHttpServerSource tls(
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
return this;
@@ -233,18 +234,19 @@ public ObservabilityPipelineHttpServerSource tls(ObservabilityPipelineMtlsServer
/**
* Configuration for enabling TLS encryption between the pipeline component and external
- * connecting clients.
+ * connecting clients, or mutual TLS when verify_certificate is true.
+ * Mutual TLS also enables an optional allowlist of client certificate identities.
*
* @return tls
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TLS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ObservabilityPipelineMtlsServerTls getTls() {
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity getTls() {
return tls;
}
- public void setTls(ObservabilityPipelineMtlsServerTls tls) {
+ public void setTls(ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
if (tls != null) {
this.unparsed |= tls.unparsed;
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTls.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTls.java
index a82deed78c0..28f6b706521 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTls.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTls.java
@@ -83,8 +83,8 @@ public ObservabilityPipelineMtlsServerTls crtFile(String crtFile) {
}
/**
- * Path to the TLS server certificate file used to used to identify the pipeline component to
- * connecting clients.
+ * Path to the TLS server certificate file used to identify the pipeline component to connecting
+ * clients.
*
* @return crtFile
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTlsWithClientIdentity.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTlsWithClientIdentity.java
new file mode 100644
index 00000000000..8a448c8db29
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineMtlsServerTlsWithClientIdentity.java
@@ -0,0 +1,320 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * Configuration for enabling TLS encryption between the pipeline component and external connecting
+ * clients, or mutual TLS when verify_certificate is true. Mutual TLS also
+ * enables an optional allowlist of client certificate identities.
+ */
+@JsonPropertyOrder({
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_CA_FILE,
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_CLIENT_IDENTITY,
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_CRT_FILE,
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_KEY_FILE,
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_KEY_PASS_KEY,
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity.JSON_PROPERTY_VERIFY_CERTIFICATE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ObservabilityPipelineMtlsServerTlsWithClientIdentity {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_CA_FILE = "ca_file";
+ private String caFile;
+
+ public static final String JSON_PROPERTY_CLIENT_IDENTITY = "client_identity";
+ private ObservabilityPipelineClientIdentity clientIdentity;
+
+ public static final String JSON_PROPERTY_CRT_FILE = "crt_file";
+ private String crtFile;
+
+ public static final String JSON_PROPERTY_KEY_FILE = "key_file";
+ private String keyFile;
+
+ public static final String JSON_PROPERTY_KEY_PASS_KEY = "key_pass_key";
+ private String keyPassKey;
+
+ public static final String JSON_PROPERTY_VERIFY_CERTIFICATE = "verify_certificate";
+ private Boolean verifyCertificate;
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity() {}
+
+ @JsonCreator
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity(
+ @JsonProperty(required = true, value = JSON_PROPERTY_CRT_FILE) String crtFile) {
+ this.crtFile = crtFile;
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity caFile(String caFile) {
+ this.caFile = caFile;
+ return this;
+ }
+
+ /**
+ * Path to the Certificate Authority (CA) file used to validate connecting clients' TLS
+ * certificates.
+ *
+ * @return caFile
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CA_FILE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCaFile() {
+ return caFile;
+ }
+
+ public void setCaFile(String caFile) {
+ this.caFile = caFile;
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity clientIdentity(
+ ObservabilityPipelineClientIdentity clientIdentity) {
+ this.clientIdentity = clientIdentity;
+ this.unparsed |= clientIdentity.unparsed;
+ return this;
+ }
+
+ /**
+ * Restricts which clients may connect, based on the identities in their TLS certificate. Checks
+ * run during the TLS handshake, after the client certificate chain is validated against
+ * ca_file, and never relax that validation. Requires verify_certificate: true
+ * and ca_file. Set exactly one of allowlist_file or allowlist
+ * . When set, connections are closed after a maximum age of 300 seconds so that clients
+ * removed from the allowlist are disconnected. Requires Observability Pipelines Worker 2.27 or
+ * later.
+ *
+ * @return clientIdentity
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CLIENT_IDENTITY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ObservabilityPipelineClientIdentity getClientIdentity() {
+ return clientIdentity;
+ }
+
+ public void setClientIdentity(ObservabilityPipelineClientIdentity clientIdentity) {
+ this.clientIdentity = clientIdentity;
+ if (clientIdentity != null) {
+ this.unparsed |= clientIdentity.unparsed;
+ }
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity crtFile(String crtFile) {
+ this.crtFile = crtFile;
+ return this;
+ }
+
+ /**
+ * Path to the TLS server certificate file used to identify the pipeline component to connecting
+ * clients.
+ *
+ * @return crtFile
+ */
+ @JsonProperty(JSON_PROPERTY_CRT_FILE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public String getCrtFile() {
+ return crtFile;
+ }
+
+ public void setCrtFile(String crtFile) {
+ this.crtFile = crtFile;
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity keyFile(String keyFile) {
+ this.keyFile = keyFile;
+ return this;
+ }
+
+ /**
+ * Path to the private key file associated with the TLS server certificate.
+ *
+ * @return keyFile
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_KEY_FILE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getKeyFile() {
+ return keyFile;
+ }
+
+ public void setKeyFile(String keyFile) {
+ this.keyFile = keyFile;
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity keyPassKey(String keyPassKey) {
+ this.keyPassKey = keyPassKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the passphrase for the private key file.
+ *
+ * @return keyPassKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_KEY_PASS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getKeyPassKey() {
+ return keyPassKey;
+ }
+
+ public void setKeyPassKey(String keyPassKey) {
+ this.keyPassKey = keyPassKey;
+ }
+
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity verifyCertificate(
+ Boolean verifyCertificate) {
+ this.verifyCertificate = verifyCertificate;
+ return this;
+ }
+
+ /**
+ * When true, requires client connections to present a valid certificate, enabling
+ * mutual TLS authentication.
+ *
+ * @return verifyCertificate
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VERIFY_CERTIFICATE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getVerifyCertificate() {
+ return verifyCertificate;
+ }
+
+ public void setVerifyCertificate(Boolean verifyCertificate) {
+ this.verifyCertificate = verifyCertificate;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return ObservabilityPipelineMtlsServerTlsWithClientIdentity
+ */
+ @JsonAnySetter
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity putAdditionalProperty(
+ String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /**
+ * Return true if this ObservabilityPipelineMtlsServerTlsWithClientIdentity object is equal to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity
+ observabilityPipelineMtlsServerTlsWithClientIdentity =
+ (ObservabilityPipelineMtlsServerTlsWithClientIdentity) o;
+ return Objects.equals(this.caFile, observabilityPipelineMtlsServerTlsWithClientIdentity.caFile)
+ && Objects.equals(
+ this.clientIdentity,
+ observabilityPipelineMtlsServerTlsWithClientIdentity.clientIdentity)
+ && Objects.equals(
+ this.crtFile, observabilityPipelineMtlsServerTlsWithClientIdentity.crtFile)
+ && Objects.equals(
+ this.keyFile, observabilityPipelineMtlsServerTlsWithClientIdentity.keyFile)
+ && Objects.equals(
+ this.keyPassKey, observabilityPipelineMtlsServerTlsWithClientIdentity.keyPassKey)
+ && Objects.equals(
+ this.verifyCertificate,
+ observabilityPipelineMtlsServerTlsWithClientIdentity.verifyCertificate)
+ && Objects.equals(
+ this.additionalProperties,
+ observabilityPipelineMtlsServerTlsWithClientIdentity.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ caFile,
+ clientIdentity,
+ crtFile,
+ keyFile,
+ keyPassKey,
+ verifyCertificate,
+ additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ObservabilityPipelineMtlsServerTlsWithClientIdentity {\n");
+ sb.append(" caFile: ").append(toIndentedString(caFile)).append("\n");
+ sb.append(" clientIdentity: ").append(toIndentedString(clientIdentity)).append("\n");
+ sb.append(" crtFile: ").append(toIndentedString(crtFile)).append("\n");
+ sb.append(" keyFile: ").append(toIndentedString(keyFile)).append("\n");
+ sb.append(" keyPassKey: ").append(toIndentedString(keyPassKey)).append("\n");
+ sb.append(" verifyCertificate: ").append(toIndentedString(verifyCertificate)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
index 2644ec771e4..dc3712e6934 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineOpentelemetrySource.java
@@ -44,7 +44,7 @@ public class ObservabilityPipelineOpentelemetrySource {
private String id;
public static final String JSON_PROPERTY_TLS = "tls";
- private ObservabilityPipelineMtlsServerTls tls;
+ private ObservabilityPipelineMtlsServerTlsWithClientIdentity tls;
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineOpentelemetrySourceType type =
@@ -127,7 +127,8 @@ public void setId(String id) {
this.id = id;
}
- public ObservabilityPipelineOpentelemetrySource tls(ObservabilityPipelineMtlsServerTls tls) {
+ public ObservabilityPipelineOpentelemetrySource tls(
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
return this;
@@ -135,18 +136,19 @@ public ObservabilityPipelineOpentelemetrySource tls(ObservabilityPipelineMtlsSer
/**
* Configuration for enabling TLS encryption between the pipeline component and external
- * connecting clients.
+ * connecting clients, or mutual TLS when verify_certificate is true.
+ * Mutual TLS also enables an optional allowlist of client certificate identities.
*
* @return tls
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TLS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ObservabilityPipelineMtlsServerTls getTls() {
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity getTls() {
return tls;
}
- public void setTls(ObservabilityPipelineMtlsServerTls tls) {
+ public void setTls(ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
if (tls != null) {
this.unparsed |= tls.unparsed;
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
index df2abf7577f..620d4f77ed6 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
@@ -46,7 +46,7 @@ public class ObservabilityPipelineSplunkHecSource {
private Boolean storeHecToken;
public static final String JSON_PROPERTY_TLS = "tls";
- private ObservabilityPipelineMtlsServerTls tls;
+ private ObservabilityPipelineMtlsServerTlsWithClientIdentity tls;
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineSplunkHecSourceType type =
@@ -132,7 +132,8 @@ public void setStoreHecToken(Boolean storeHecToken) {
this.storeHecToken = storeHecToken;
}
- public ObservabilityPipelineSplunkHecSource tls(ObservabilityPipelineMtlsServerTls tls) {
+ public ObservabilityPipelineSplunkHecSource tls(
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
return this;
@@ -140,18 +141,19 @@ public ObservabilityPipelineSplunkHecSource tls(ObservabilityPipelineMtlsServerT
/**
* Configuration for enabling TLS encryption between the pipeline component and external
- * connecting clients.
+ * connecting clients, or mutual TLS when verify_certificate is true.
+ * Mutual TLS also enables an optional allowlist of client certificate identities.
*
* @return tls
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TLS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ObservabilityPipelineMtlsServerTls getTls() {
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity getTls() {
return tls;
}
- public void setTls(ObservabilityPipelineMtlsServerTls tls) {
+ public void setTls(ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
if (tls != null) {
this.unparsed |= tls.unparsed;
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
index 1d91422b3dd..d2ce33fe0ed 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
@@ -45,7 +45,7 @@ public class ObservabilityPipelineSplunkTcpSource {
private Long maxConnectionDurationSecs;
public static final String JSON_PROPERTY_TLS = "tls";
- private ObservabilityPipelineMtlsServerTls tls;
+ private ObservabilityPipelineMtlsServerTlsWithClientIdentity tls;
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineSplunkTcpSourceType type =
@@ -129,7 +129,8 @@ public void setMaxConnectionDurationSecs(Long maxConnectionDurationSecs) {
this.maxConnectionDurationSecs = maxConnectionDurationSecs;
}
- public ObservabilityPipelineSplunkTcpSource tls(ObservabilityPipelineMtlsServerTls tls) {
+ public ObservabilityPipelineSplunkTcpSource tls(
+ ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
return this;
@@ -137,18 +138,19 @@ public ObservabilityPipelineSplunkTcpSource tls(ObservabilityPipelineMtlsServerT
/**
* Configuration for enabling TLS encryption between the pipeline component and external
- * connecting clients.
+ * connecting clients, or mutual TLS when verify_certificate is true.
+ * Mutual TLS also enables an optional allowlist of client certificate identities.
*
* @return tls
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TLS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public ObservabilityPipelineMtlsServerTls getTls() {
+ public ObservabilityPipelineMtlsServerTlsWithClientIdentity getTls() {
return tls;
}
- public void setTls(ObservabilityPipelineMtlsServerTls tls) {
+ public void setTls(ObservabilityPipelineMtlsServerTlsWithClientIdentity tls) {
this.tls = tls;
if (tls != null) {
this.unparsed |= tls.unparsed;