SSL
SSL Overview
SSL (Secure Socket Layer) is a security protocol which encrypts the connections established between Webserver and the client (browser).
In this chapter, we learn how Spinnaker communicates from external parties to Spinnaker Instance, which might be any requests between
Browser & Spinnaker UI (Deck)
Deck and Gateway (API gateway)
Client and Gate
Steps to Generate Self Signed Cert
A self-signed certificate is an identity certificate that is signed by the same entity whose identity it certifies. In technical terms a self-signed certificate is one signed with its own private key.
Instructions in this chapter allows user to generate a Self-signed certificate key and server certificate, openssl will be used.
Follow the below instruction to create self-signed certificate
Execute the below commands to create CA key
Execute the below commands to Self-sign the Certificate
Note: Incase if External CA Certificate is being used, skip to the next section to enable the same on Spinnaker.
Steps to Create Server Certificate
From this Section, let’s learn how to create Certificate Authority and import the same to a Server Certificate.
Execute the below command, to create a Server key and save it safe.
Execute the below command, to generate a certificate signing request for the server. Ensure to specify localhost or Fully Qualified Domain Name of Gate as the Common Name.
Execute the below command, to use CA sign the server’s request. If, external CA is being used, vendor will take care of this step.
To make the server certificate to importable format convert it to JKS.
Note
This creates a p12 keystore file with your certificate imported under the alias “spinnaker” with the key password $YOUR_KEY_PASSWORD.
Execute the below command, to create a JKS file by importing CA Certificate
To import the server certificate, execute the below
Now Spinnaker is all set to use the Java Keystore, which has all the certificate authority and server certificate.
Steps to Configure SSL for Gate and Deck
Execute the below commands, separate to enable SSL for Gate and Deck. We can use ‘Halyard’ to do the same.
For Gate:
For Deck:
Steps to Deploy Spinnaker with SSL
Execute the below command to deploy Spinnaker with all the SSL settings
Verify SSL Setup
To Verify SSL setup, ensure to access all the Spinnaker Endpoints like Gate or Deck over SSL.
Next Steps
To Proceed further one much choose an authentication method
OAuth 2.0
SAML
LDAP
X.509
Last updated