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

Sql sanitizer: sanitize double quoted strings only in couchbase queries #4615

Merged
merged 3 commits into from
Nov 10, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Nov 9, 2021

Resolves #4593
While looking at #4595 I started thinking about how we could avoid copying the whole sanitizer and came up with this.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dboreham can you give this a look over? thx!

});
}

private static final class StatementKey {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AutoValue?

Copy link
Contributor

@dboreham dboreham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. It's what I wanted to do but didn't have the codebase knowledge/time to code up. Thanks!

@trask trask merged commit 625feba into open-telemetry:main Nov 10, 2021
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…es (open-telemetry#4615)

* Sql sanitizer: sanitize double quotes strings only in couchbase queries

* remove unused method

* use AutoValue
@laurit laurit deleted the sql-sanitizer-double-quote branch July 6, 2023 17: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.

SqlSanitizer removes double-quoted "delimited" table and field names
3 participants