Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: CLI Flag to filter user information out of logging trace #482

Open
obloomfield opened this issue Feb 3, 2025 · 0 comments

Comments

@obloomfield
Copy link
Contributor

obloomfield commented Feb 3, 2025

Feature request

This feature is to optionally omit user information from logging traces (spans) by toggling some new CLI flag / environment variable.

Motivation

For many teams to maintain security compliance, this feature would be critical.

If you are using TEI in a production service, there is likely a security policy that prohibits you from accessing user data without consent. Without this change, user info like queries and document snippets would be leaked.

Your contribution

This can be likely done by:

  • Adding a new disabled_fields Layer to logging.rs to allow for control of which named log fields to filter out (for instance, "inputs").
  • Adding a new CLI flag / env variable DISABLE_LOG_FIELDS to list out disabled log fields
  • Add README to describe how this could be used to filter customer sensitive info

I would be happy to work on this once the feature is approved. Let me know if you think there may be a better approach.

@obloomfield obloomfield changed the title CLI Flag to filter user information out of logging trace Feature Request: CLI Flag to filter user information out of logging trace Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant