Skip to content

Avoiding logging/leaking auth credentials during sqlpage.exec() calls #218

Answered by lovasoa
matthewlarkin asked this question in Q&A
Discussion options

You must be logged in to vote

SQLPage calls just the command you pass to it (so if you run curl, it will launch the curl binary, not bash). It the collects the program's stdout and makes it available to your sql file. If you don't print it explicitly, it won't be printed.
So nothing is printed to SQLPage's logs at the default logging level, and nothing gets into bash_history, since bash isn't even part of the picture.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by matthewlarkin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants