4

I am aware of the fact that we can run a Q process with the -p parameter which enables other instances to connect to it and enables also a web interface on that port.

Is there a way how to secure the connection so there will be some kind of authorization? In the moment I don't like the fact that anyone can view and even execute queries on my database when it is running with the -p parameter.

SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
Jan Zyka
  • 17,460
  • 16
  • 70
  • 118

2 Answers2

5

You can add authentication by using -U:

-U /path/to/password.txt 

This file contains user:password where password is result of in q md5"password" and strip off 0x in front.

Thomas Smyth - Treliant
  • 4,993
  • 6
  • 25
  • 36
algolicious
  • 1,182
  • 2
  • 10
  • 14
4

there's also the .z.pw and .z.ac hooks, which can be used for more complex auth logic

Thomas Smyth - Treliant
  • 4,993
  • 6
  • 25
  • 36
Aaron Davies
  • 1,190
  • 1
  • 11
  • 17