cs-icon.svg

Password Protection for Environments

Development, staging, and production environments refer to common stages of software development where an application or system is deployed and operated in isolated environments. Access to the development and staging environments is usually restricted from public access as it is in these environments that new features, code changes, and updates are tested, built, and validated before they are published on the web in the production environment.

The Password Protection feature of Contentstack Launch allows you to enable access restrictions to your development and staging environments in Launch using the Basic Auth method in order to prevent them from being accessed by search engines and the public.

This document guides you through enabling and disabling password protection for your environments in Contentstack Launch.

Prerequisites

  1. Contentstack account
  2. Access to Launch for your organization
  3. A project already deployed in Launch

Enable Password Protection for your Environment

Follow the steps below to enable password protection for your environment:

  1. From the Launch landing page, click the project card to open your project.
  2. In the Environments screen, go to the environment for which you want to provide password protection, click the ellipses under Actions, and then click Settings.
  3. Launch_Venus2_Env_Settings

  4. In Settings > Environments, click the Password Protection tab.
    Launch_Pwd_Protection_Venus2_Tab_GitHUb.png
  5. Click the Enable Password Protection toggle button to enable it.
    Launch_Pwd_Protection_Venus2_EnableToggle.png
  6. Enter a username in the Username field and password in the Password field for your current environment, not exceeding 200 characters each.
    Launch_Pwd_Protection_Venus2_Credentials.png
  7. Note: The username must not contain the colon (:) character.

  8. Click the Save Password Protection Settings button.
  9. Note: The protection is specific to the selected environment. All domains within this environment will be automatically password protected.

You have now successfully enabled and set password protection for your environment.

All visitors to the site or application hosted on this environment will be prompted to enter this username and password when they try to access the environment URL.

Launch_Password_Protection_Access

Best Practices: It is common that most modern web browsers cache Basic Auth credentials after they are successfully entered the first time. For this reason, and because the username and password set for each environment is shared for all users with whom you share these credentials, it is recommended that you change this password periodically (i.e., every three months).

Disable Password Protection for your Environment

Follow the steps below to disable password protection for your environment:

  1. From the Launch landing page, click the project card to open your project.
  2. In the Environments screen, go to the environment for which you want to disable password protection, click the ellipses under Actions, and then click Settings.
  3. Launch_Venus2_Env_Settings

  4. In Settings > Environments, click the Password Protection tab.
    Launch_Pwd_Protection_Venus2_Tab_GitHUb.png
  5. Click the Enable Password Protection toggle button again to disable the password protection.
    Launch_Pwd_Protection_Venus2_Disable.png
  6. Click the Yes, Disable button.
    Launch_Pwd_Protection_Venus2_Disable_Modal.png

You have now successfully disabled password protection for your environment. This allows anyone with the environment URL to access your environment.

Was this article helpful?
^