Skip to content
Open
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
25 changes: 15 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44172,8 +44172,14 @@ 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
Expand Down Expand Up @@ -44213,8 +44219,8 @@ components:
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 @@ -44259,8 +44265,8 @@ 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:
Expand Down Expand Up @@ -44388,7 +44394,7 @@ components:
scope:
$ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScope'
tags:
description: Tags assigned to this rule for filtering and classification.
description: Optional tags assigned to this rule for filtering and classification.
example:
- pii
- ccn
Expand All @@ -44397,7 +44403,6 @@ components:
type: array
required:
- name
- tags
- pattern
- scope
- on_match
Expand Down Expand Up @@ -44467,8 +44472,8 @@ 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,17 +190,21 @@ public ObservabilityPipelineSensitiveDataScannerProcessorRule tags(List<String>
}

public ObservabilityPipelineSensitiveDataScannerProcessorRule addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}

/**
* Tags assigned to this rule for filtering and classification.
* Optional tags assigned to this rule for filtering and classification.
*
* @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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c206b9cd-771e-14f0-5d18-42a3a48556cf"
"id": "c206b9cd-771e-14f0-5d18-42a3a48556ce"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed"
},
{
"httpRequest": {
Expand Down Expand Up @@ -57,7 +57,7 @@
"timeToLive": {
"unlimited": true
},
"id": "c206b9cd-771e-14f0-5d18-42a3a48556ce"
"id": "c206b9cd-771e-14f0-5d18-42a3a48556cf"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "73fd406e-d686-10bd-50ee-83f2c499e8a9"
"id": "73fd406e-d686-10bd-50ee-83f2c499e8a8"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cc"
"id": "a3ebb722-60eb-fa89-589a-ff3630e3a2ce"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3d4d0603-9fed-1cc5-8004-086b9b6ef690"
"id": "3d4d0603-9fed-1cc5-8004-086b9b6ef691"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d4"
"id": "9b33b83c-c8bb-714f-cf71-33ab2f3af9d3"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0f"
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145ea"
"id": "79babc38-7a70-5347-c8a6-73b0e70145ed"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145f0"
"id": "79babc38-7a70-5347-c8a6-73b0e70145e9"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145f2"
"id": "79babc38-7a70-5347-c8a6-73b0e70145ec"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145fd"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f5"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d31"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2c"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2e"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d30"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d33"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d31"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "4c138fa0-d834-5972-8bd7-894a659525ac"
"id": "4c138fa0-d834-5972-8bd7-894a659525ae"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145f3"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f6"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145ed"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f3"
},
{
"httpRequest": {
Expand Down
Loading
Loading