-
Notifications
You must be signed in to change notification settings - Fork 172
Open
Labels
enhancementNew feature or requestNew feature or requesttriageIssues that require triageIssues that require triage
Description
Is your feature request related to a problem? Please describe.
I have secrets (passwords, tokens, api keys) and personal data (names, phone numbers) in my spans. They are deep inside of input and output objects.
Phoenix offers two types of span masking:
- masking span input/output: https://arize.com/docs/phoenix/tracing/how-to-tracing/advanced/masking-span-attributes
- filtering entire span: https://arize.com/docs/phoenix/tracing/how-to-tracing/advanced/modifying-spans
However, neither of them achieve my goal of only redacting selected input/output keys.
Describe the solution you'd like
I'd like to have masking configuration that I can apply on the self-hosted server configuration.
Example:
mask_keys:
given_name: [REDACTED]
address: [REDACTED]
api_key: xxxxxxxx
password: *hiden*
mask_values:
"[0-9\-]{12,15}": [REDACTED ID NUMBER]So that the span input:
{
"user_info": {
"id": "241",
"given_name": "John"
},
"api_key": "275619824jh2416aa612="
"value": "1234-6789-123",
"result": "success"
}would result in:
{
"user_info": {
"id": "241",
"given_name": "[REDACTED]"
},
"api_key": "xxxxxxxx"
"value": "[REDACTED ID NUMBER]",
"result": "success"
}dosubot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttriageIssues that require triageIssues that require triage
Type
Projects
Status
📘 Todo
Status
No status