Keptn v1 reached EOL December 22, 2023. For more information see https://bit.ly/keptn
This documentation is for an older Keptn release. Please consider the newest one when working with the latest Keptn.

Basic Authentication

The Keptn Bridge has a basic authentication feature, which can be controlled by setting the following two environment variables in the deployment of the bridge::

  • BASIC_AUTH_USERNAME - username
  • BASIC_AUTH_PASSWORD - password

Enable Authentication

  • Basic authentication is enabled when executing the below command. This command creates a secret with the two variables: BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD.

    keptn configure bridge --user=<USER> --password=<PASSWORD>
    

    Note: Replace <USER> and <PASSWORD> with the desired credentials.

  • Restart the pod of the Keptn Bridge by executing:

    kubectl -n keptn delete pods --selector=run=bridge
    

Disable Authentication

  • To disable the basic authentication, delete the secret by executing:

    kubectl -n keptn delete secret bridge-credentials
    
  • Restart the pod of the Keptn Bridge by executing:

    kubectl -n keptn delete pods --selector=app.kubernetes.io/name=bridge