Skip to main content

Password protection

This is only available for deployment of static assets and NodeJS server. If you deploy from a dockerfile or a module, the feature is not avaiilable.

By default, no authentication is required to access your static assets.

With our platform you can set a password protection to a particular environment to restrict access to authorized users only.

Enabling authentication

To activate authentication on an environment, you have to add authorized users to an environment using the command below:

npx warp env auth basic add [user] [password]

During the command you will have to select a project and the environment you want to protect. If you don't have fill the command with parameters you will be invited to enter a user name and a password.

Note that

  • you can add authentication for multiple users,
  • you have to deploy to enable the authentication.

After deployment, when accessing your assets you'll be invite to enter credential.

authentication

Disabling authentication

To disable authentication on an environment, you have to delete authorized users to an environment using the command below:

npx warp env auth basic delete [user]

Note that

  • The authentication is enabled if at least one user is assigned to authentication otherwise is it disabled,
  • you have to deploy to enable the change.