Skip to content

Commit dc80227

Browse files
use placeholder values in examples instead of env variables
1 parent 8168692 commit dc80227

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

app/_kong_plugins/ai-sanitizer/examples/anonymize-request-and-response-data.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,12 @@ weight: 900
77
requirements:
88
- You have enabled the AI Proxy or AI Proxy Advanced plugin
99

10-
variables:
11-
host:
12-
description: The sanitizer service's host
13-
value: $SANITIZER_SERVICE_HOST
14-
port:
15-
description: The sanitizer service's port
16-
value: $SANITIZER_SERVICE_PORT
17-
1810
config:
1911
anonymize:
2012
- all_and_credentials
2113
sanitization_mode: BOTH
22-
port: ${port}
23-
host: ${host}
14+
port: 8080
15+
host: example.service.com
2416
redact_type: placeholder
2517
recover_redacted: false
2618

app/_kong_plugins/ai-sanitizer/examples/anonymize-response-data.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,12 @@ weight: 900
77
requirements:
88
- You have enabled the AI Proxy or AI Proxy Advanced plugin
99

10-
variables:
11-
host:
12-
description: The sanitizer service's host
13-
value: $SANITIZER_SERVICE_HOST
14-
port:
15-
description: The sanitizer service's port
16-
value: $SANITIZER_SERVICE_PORT
17-
1810
config:
1911
anonymize:
2012
- all_and_credentials
2113
sanitization_mode: OUTPUT
22-
port: ${port}
23-
host: ${host}
14+
port: 8080
15+
host: example.service.com
2416
redact_type: placeholder
2517
recover_redacted: false
2618

app/_kong_plugins/ai-sanitizer/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ The AI Sanitizer plugin can be applied to:
6464
Here's how it works if you apply it to both requests and responses:
6565

6666
1. The plugin intercepts the request body and sends it to the external PII service.
67-
1. The PII service detects sensitive data and applies the chosen sanitization method (placeholders or synthetic replacements).
67+
1. The PII service detects sensitive data and applies the chosen sanitization method (placeholders or synthetic replacements).
6868
1. The sanitized request is forwarded upstream with the AI Proxy or AI Proxy Advanced plugin.
6969
1. On the way back, the plugin intercepts the response body and sends it to the external PII service. {% new_in 3.12 %}
70-
1. The PII service detects sensitive data and applies the chosen sanitization method (placeholders or synthetic replacements).
71-
1. If restoration is enabled, the plugin restores the original request data in responses before returning them to the client.
70+
1. The PII service detects sensitive data and applies the chosen sanitization method (placeholders or synthetic replacements).
71+
1. (_Only applies to input data sanitization_) If restoration is enabled, the plugin restores the original request data in responses before returning them to the client.
7272

7373
<!--vale off-->
7474
{% mermaid %}

0 commit comments

Comments
 (0)