For applications requiring user management and authentication, Keep supports basic authentication with username and password.

When to Use

  • Self-Hosted Deployments: When you’re deploying Keep for individual use or within an organization.
  • Enhanced Security: Provides a simple yet effective layer of security for your Keep instance.

Setup Instructions

To start Keep with DB authentication, set the following environment variables:

Environment VariableDescriptionRequiredFrontend/BackendDefault Value
AUTH_TYPESet to ‘DB’ for database authenticationYesBoth-
KEEP_JWT_SECRETSecret for JWT token generationYesBackend-
KEEP_DEFAULT_USERNAMEDefault admin usernameNoBackendadmin
KEEP_DEFAULT_PASSWORDDefault admin passwordNoBackendadmin
KEEP_FORCE_RESET_DEFAULT_PASSWORDOverride the current admin passwordNoBackendfalse

Example configuration

Use the docker-compose-with-auth.yml for an easy setup, which includes necessary environment variables for enabling basic authentication.