-
Notifications
You must be signed in to change notification settings - Fork 313
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
Using SecretString to store senstive values in copy
stmt
#2144
Comments
Current code - A thoroughly solution should be, supporting reconstruct query from statements, and redact options of copy stmt on demand. See:
We currently print all the query if any of the statement failed to execute. |
copy
stmtcopy
stmt
I found this issue not quite easy as it may be like. We hold all the options in WITH and CONNECTION as:
where:
Either we change We now have a function to structurally Display these options:
We may even implement |
We can make the sensetive data stored in their own fields, rather then the |
Then the code to access an option value is somehow awkward. If we insist in trying
And do the merge read within the encapsulation of |
I'm ok with moving all the senstive data to a "secrets" map like that. |
What problem does the new feature solve?
copy
stmt can carry senstive data like S3 API key or secret. This makes leaking easily.What does the feature do?
Right now the senstive values are all stored in plain strings, and we have to write special redacting codes for printing them. It's better we use
SecretString
for them.A follow up of #3744.
Implementation challenges
The text was updated successfully, but these errors were encountered: