Skip to content

database_observability: pg query redaction #4170

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

Draft
wants to merge 5 commits into
base: gaantunes/db-o11y-pg-samples
Choose a base branch
from

Conversation

gaantunes
Copy link
Contributor

@gaantunes gaantunes commented Aug 8, 2025

PR Description

This is adding query redaction capabilities to the activity collector.
Additionally, this places all normalizer functions into a pg_lexer.go file, for better structure,

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

This commit adds SQL query redaction capabilities to the PostgreSQL
database observability component, including:
- SQL lexer for extracting table names from queries
- Query redaction logic
- Comprehensive test coverage

This builds upon the samples collection functionality to add
security-focused query analysis.
@gaantunes gaantunes marked this pull request as draft August 8, 2025 19:46
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

Successfully merging this pull request may close these issues.

1 participant