Basic Authentication
This page describes configuring basic authentication in Lenses.
Basic authentication is set in the config.yaml for HQ under the http.users key, as an array of usernames and passwords.
Passwords need to bcrypt hashes.
This ensures that the passwords are hashed and secure rather than stored in plaintext. For instance, instead of using "builder" directly, it should be hashed using bcrypt.
An example of a bcrypt-hashed password looks like this:
$2a$12$XQW..XQrtZXCvbQWertqQeFi/1KoQW4eNephNXTfHqtoW9Q4qih5G
.
Always ensure that you replace plaintext passwords with their bcrypt counterparts to securely authenticate users.
You can use the Lenses CLI to create a bcrypt password:
Last updated
Was this helpful?