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

Implement confidential statement #4910

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Feb 14, 2025

This PR introduces the confidential statement.
A statement is considered as confidential if it contains user's secrets (password, key).
Shell is not going to record those statements;

Fixes #4891

auto isSuccess = queryResult->isSuccess();
queryResults.push_back(std::move(queryResult));
if (isSuccess && !database->getConfig().readOnly) {
auto clientContext = conn->getClientContext();
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks fine to me. @ray6080 can u take a second look?

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm I'm concerned about this approach because it introduces an additional binding step to every write query, which I don't think the overhead is insignificant. Need to think a bit on what's an alternative way.

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.

Avoid recording confidential information in shell history
3 participants