Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44218,7 +44218,10 @@ components:
action:
$ref: "#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction"
options:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` `options`.
description: |-
Optional settings for the hash action. When omitted or empty, matched sensitive data is
replaced with a deterministic hashed value that preserves structure for analytics while
protecting the original content. Reserved for future hash configuration (for example, algorithm or salt).
type: object
required: [action]
type: object
Expand Down Expand Up @@ -44249,7 +44252,7 @@ components:
description: Controls how partial redaction is applied, including character count and direction.
properties:
characters:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` `characters`.
description: Number of characters to leave visible from the start or end of the matched value; the rest are redacted.
example: 4
format: int64
type: integer
Expand Down Expand Up @@ -44285,7 +44288,7 @@ components:
description: Configuration for fully redacting sensitive data.
properties:
replace:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` `replace`.
description: The string used to replace matched sensitive data (for example, "***" or "[REDACTED]").
example: "***"
type: string
required: [replace]
Expand Down Expand Up @@ -44395,7 +44398,6 @@ components:
type: array
required:
- name
- tags
- pattern
- scope
- on_match
Expand Down Expand Up @@ -44456,7 +44458,7 @@ components:
description: Fields to which the scope rule applies.
properties:
fields:
description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` `fields`.
description: List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching.
example:
- ""
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionHash options(Obje
}

/**
* The <code>ObservabilityPipelineSensitiveDataScannerProcessorActionHash</code> <code>options
* </code>.
* Optional settings for the hash action. When omitted or empty, matched sensitive data is
* replaced with a deterministic hashed value that preserves structure for analytics while
* protecting the original content. Reserved for future hash configuration (for example, algorithm
* or salt).
*
* @return options
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOpti
}

/**
* The <code>ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions</code>
* <code>characters</code>.
* Number of characters to leave visible from the start or end of the matched value; the rest are
* redacted.
*
* @return characters
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions rep
}

/**
* The <code>ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions</code> <code>
* replace</code>.
* The string used to replace matched sensitive data (for example, "***" or "[REDACTED]").
*
* @return replace
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ObservabilityPipelineSensitiveDataScannerProcessorRule {
private ObservabilityPipelineSensitiveDataScannerProcessorScope scope;

public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> tags = new ArrayList<>();
private List<String> tags = null;

public ObservabilityPipelineSensitiveDataScannerProcessorRule() {}

Expand All @@ -63,16 +63,14 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule(
@JsonProperty(required = true, value = JSON_PROPERTY_PATTERN)
ObservabilityPipelineSensitiveDataScannerProcessorPattern pattern,
@JsonProperty(required = true, value = JSON_PROPERTY_SCOPE)
ObservabilityPipelineSensitiveDataScannerProcessorScope scope,
@JsonProperty(required = true, value = JSON_PROPERTY_TAGS) List<String> tags) {
ObservabilityPipelineSensitiveDataScannerProcessorScope scope) {
this.name = name;
this.onMatch = onMatch;
this.unparsed |= onMatch.unparsed;
this.pattern = pattern;
this.unparsed |= pattern.unparsed;
this.scope = scope;
this.unparsed |= scope.unparsed;
this.tags = tags;
}

public ObservabilityPipelineSensitiveDataScannerProcessorRule keywordOptions(
Expand Down Expand Up @@ -192,6 +190,9 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule tags(List<String>
}

public ObservabilityPipelineSensitiveDataScannerProcessorRule addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
Expand All @@ -201,8 +202,9 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule addTagsItem(String
*
* @return tags
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getTags() {
return tags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions addFieldsI
}

/**
* The <code>ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions</code> <code>fields
* </code>.
* List of log attribute names (field paths) to which the scope applies. Only these fields are
* included in or excluded from pattern matching.
*
* @return fields
*/
Expand Down
Loading