Select Page
by

Yugandhar Kumar Pidugu

|
last updated on April 21, 2023
Share

Introduction: 

This blog will guide you as to how to enable basic form authentication for Spinnaker via Halyard without involving any third party. 

For that, you first exec into the halyard pod. 

Below is the command to exec into the halyard pod: 

				
					Kubectl exec -it <> -n <> --bash
				
			

Step 1 : 

Follow this path to edit the content in the file:

				
					vi ~/.hal//profiles/gate-local.yml
				
			

Note: 

is usually “default”

 Now add the below content to the file gate-local.yml

 

				
					security:
  basicform:
    enabled: true
  user:
    name: <>
    password: <>
				
			
Download Spinnaker Center Of Excellence Solution Brief

Step 2: 

Then you have to follow the below mentioned file path: 

				
					vi ~/.hal//profiles/settings-local.js
				
			

Once you are there, add the following content: 

				
					window.spinnakerSettings.authEnabled = true;
				
			

Then, apply the changes by  command  

				
					hal deploy apply 
				
			

Finally, you will be prompted with a form to enter the username and password  to access Spinnaker UI.

About OpsMx

Founded with the vision of “delivering software without human intervention,” OpsMx enables customers to transform and automate their software delivery processes. OpsMx builds on open-source Spinnaker and Argo with services and software that helps DevOps teams SHIP BETTER SOFTWARE FASTER.

3 Comments

  1. ashutosh joshi

    i am getting below error in gate pod while deploying basic auth in spinnaker , followed above steps :

    Key: security.basic.enabled
    Reason: The security auto-configuration is no longer customizable.

    gate-local.yml contains following :
    security:
    basicform:
    enabled: true
    user:
    name: *****
    password: ******

    Reply
  2. brian

    I followed the instruction but seems it is not working, even I use incognito mode to test, it doesn’t requires the username and password.

    Reply
  3. brian

    I found out it is the indent issue, once fix indent it is working fine.

    Reply

Leave a Reply to ashutosh joshi Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.