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

Secure Authentication #44

Closed
ekawahyu opened this issue Jun 29, 2018 · 5 comments
Closed

Secure Authentication #44

ekawahyu opened this issue Jun 29, 2018 · 5 comments

Comments

@ekawahyu
Copy link

What would be the better way of doing authentication rather than modifying the Python code where the line saying password = None to password = 'mypassword'? Thanks.

@coleifer
Copy link
Owner

You can specify it from the command-line using -P or --password. This will cause you to be prompted to securely enter the password.

@ekawahyu
Copy link
Author

But if I run it as systemd service, ps -ax | grep sqlite_web would reveal the -P option to other users in the system. I am still trying to figure out how I can actually hash the password and not worry about keeping it as a plain text. Any suggestion? Thank you.

@coleifer
Copy link
Owner

coleifer commented Jun 29, 2018

It should not -- it will prompt you for a password which is collected securely (using getpass). The password is not even echo-ed back when you type it in.

@coleifer
Copy link
Owner

For what it's worth, if you're running it as a daemon, it might make sense to put nginx/apache in front of it and use nginx/apache basic auth to secure things.

@ekawahyu
Copy link
Author

alright, cool, thank you!

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

No branches or pull requests

2 participants