-
Notifications
You must be signed in to change notification settings - Fork 2k
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
option to suppress db creds in error #4606
Comments
Hi @shackbarth! It looks like you missed a step or two when you created your issue. Please edit your comment (use the pencil icon at the top-right corner of the comment box) and fix the following:
As soon as those items are rectified, post a new comment (e.g. “Ok, fixed!”) below and we'll take a look. Thanks! *If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@sailsjs.com |
ok fixed! |
Hi @shackbarth, |
@shackbarth I like this idea. |
(although really, I don't think it needs to be an option- we could just make sure to exclude it) |
@shackbarth what did you do about this in the end? I think this is the same issue as #4595, which I submitted balderdashy/sails-postgresql#283 to fix. However, the PR hasn't been accepted, and I'm looking for a long-term solution without forking |
I've released a node module to fix this issue at https://www.npmjs.com/package/sails-postgresql-redacted. To use:
|
Is this still open? |
Hi @mortbauer, we leave it to the author to close the issue. |
I can confirm that the latest sails-postgresql has fixed this password leak issue. Thanks @alxndrsn and the balderdash team! |
Waterline version: 0.13.6
Node version: 10.13.0
NPM version: 6.4.1
Operating system: Fedora 27
I'm in the habit of console.logging my errors, but I don't want my database password to get logged.
When I execute a waterline query against a stopped database I get an error along the lines of
Which I can trace to this line:
https://github.com/node-machine/machine/blob/850e87de1200b3985c04dadbd3554eea3c6f8613/lib/private/help-build-machine.js#L920
What I'd propose (and I'd be happy to make a PR) would be to change the previous line of
to something like
so as to allow the ability to opt out of this level of verbosity of the error logging.
What do you think?
The text was updated successfully, but these errors were encountered: