SAML 2.0 authentication#
Starburst Enterprise platform (SEP) supports configuring SAML 2.0 authentication to implement single sign-on (SSO) for SEP clusters. When you configure SAML 2.0 with SEP, SEP acts as a SAML service provider and receives authenticated user data from an identity provider (IdP) using HTTPS as follows:
The SEP coordinator identifies the need for authentication and redirects your browser to the SAML IdP’s SSO service.
User provides credentials on the IdP login page for authentication.
The IdP redirects the user’s browser to SEP’s SAML Assertion Consumer Service.
SEP validates the SAML assertion and creates a JSON web token (JWT) for the session.
To enable SAML 2.0 authentication for SEP, configure your coordinator as described in this document. You do not need to make changes to your worker configuration; only the coordinator authenticates communication from clients.
Configuration#
To enable SAML 2.0 authentication for SEP, complete the following steps:
SEP coordinator configuration#
To implement SAML 2.0 authentication, you must secure the SEP coordinator with TLS.
The following example provides the minimum required configuration:
http-server.authentication.type=saml
http-server.https.port=8443
http-server.https.enabled=true
http-server.authentication.saml.sp.keystore.path=SAML_CERTIFICATE
http-server.authentication.saml.idp.metadata-file=https://identity-provider.com/saml/metadata
Property |
Description |
---|---|
|
(Optional) The value for the |
|
The path for a PEM file that either contains the certificate and private key to use for the SAML service provider, or specifies a JKS keystore that loads the certificate and private key. |
|
(Optional) If using a JKS keystore, the password to the keystore. |
|
(Optional) If using a JKS keystore, the alias of the key to use as the SAML service provider certificate. |
|
The URI or path to the identity provider’s metadata file. |
|
(Optional) The key for signing the JWT tokens that are generated for SAML-authenticated sessions. Defaults to a random value. |
|
(Optional) The duration in hours of SAML-authenticated sessions. Defaults
to |
|
(Optional) The regex pattern used to match the subject name from the SAML assertion. Uses the first match group as the username. |
|
(Optional) The file containing the rules for mapping the subject name from the SAML assertion to the username. |
|
(Optional) Maximum duration of a SAML authorization challenge. Defaults to
|
Identity provider configuration#
The following identity providers support SAML 2.0 authentication with SEP:
Azure Active Directory#
Use the following steps to configure Microsoft Azure Active Directory as a SAML 2.0 identity provider for SEP:
In the Azure portal, use the search bar to navigate to the Enterprise applications page.
From the top menu, select + New application.
Select + Create your own application.
In the Create your own application pane, enter a name for the app. Select the Integrate any other application option. Click Create.
Navigate to Manage > Single sign-on. Select the SAML option as your single sign-on method.
Download the XML file from your coordinator URL at
https://<host>:<port>/saml/metadata
.Click Upload metadata file. Select the XML file, and click Add.
Ensure that the Identifier (Entity ID) and Reply URL (Assertion Consumer Service URL) fields populate. Click Save.
In the SAML certificates section, copy the content of the App Federation Metadata Url field to your clipboard.
Okta#
Use the following steps to configure Okta as a SAML 2.0 identity provider for SEP:
In the Okta Admin Console, click the menu and select Applications > Applications.
In the Applications pane, click Create App Integration.
In the next pane, select SAML 2.0 and click Next.
This opens the Create SAML Integration pane. In the General Settings tab, enter a name for the app in the App name field. Click Next.
Download the XML file from your coordinator URL at
https://<host>:<port>/saml/metadata
.In the XML file, find the md:AssertionConsumerService element with attribute Binding equal to urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST. Copy the Location attribute to your clipboard.
In the Configure SAML tab in Okta, paste the attribute into the Single sign on URL field. Select the Use this for Recipient URL and Destination URL checkbox.
In the XML file, find the md:EntityDescriptor element. Copy the entityID attribute.
In the Configure SAML tab in Okta, paste the attribute into the Audience URI (SP Entity ID) field.
For all other fields, select the appropriate options or leave them in their default settings. Click Next.
Complete the Feedback tab, and click Finish
In Metadata details, copy the content of the Metadata URL field to your clipboard.
PingFederate#
Use the following steps to configure PingFederate as a SAML 2.0 identity provider for SEP. For more information, refer to the PingIdentity documentation.
In PingFederate, navigate to Applications > Integrations > SP Connections.
Click Create Connection.
In the Connection Template tab, select Do not use a template for this connection. Click Next.
In the Connection Type tab, select Browser SSO profiles. For protocol, select SAML 2.0. Click Next.
Download the XML file from your coordinator URL at
https://<host>:<port>/saml/metadata
.In the Import Metadata tab, upload the XML file.
In the General Info tab, ensure that the Entity ID, Connection Name, and Base URL fields populate. Click Next.
In the Browser SSO tab, click Configure Browser SSO.
In the SAML Profiles tab, select either the SP-initiated SSO or IDP-Initiated SSO option. Click Next.
In the Assertion Lifetime tab, enter your desired assertion validity time.
In the Assertion Creation tab, click Configure Assertion Creation.
In the Identity Mapping tab, select Standard. Click Next.
In the Attribute Contract tab, select Subject Name Format for SAML_SUBJECT. Click Next.
In the Authentication Source Mapping tab, click Map New Adapter Instance.
In the Adapter Instance tab, select an adapter instance. Click Next.
In the Mapping Method tab, select the Use only the adapter contract values in the SAML assertion option. Click Next.
In the Attribute Contract Fulfillment tab, select Adapter as the Source. For Value, select the attribute you want to use as the username. Click Next.
(Optional) In the Issuance Criteria tab, select any desired authorization conditions. Click Next.
In the Summary tab, click Done.
In the Authentication Source Mapping tab, click Next.
In the Summary tab, click Done.
In the Assertion Creation tab, click Next.
In the Protocol Settings tab, click Configure Protocol Settings.
Ensure that a POST binding, with /saml as the Endpoint URL, is added to the list. Click Next.
In the Allowable SAML Bindings tab, select POST. Click Next.
In the Signature Policy tab, select any desired signature policies. Click Next.
In the Encryption Policy tab, select your desired encryption policy. Click Next.
In the Protocol Settings Summary tab, click Done.
In the Protocol Settings tab, click Next.
In the Summary tab, click Done.
In the Browser SSO tab, click Next.
In the Credentials tab, click Configure Credentials.
In the Digital Signature Settings tab, select the desired Signing Certificate to use with the SSO service.
If you previously enabled signature verification for assertions, navigate to the Signature Verification Settings tab. Click Manage Signature Verification Settings to configure your signature verification.
If you previously enabled encryption for assertions, navigate to the Select XML Encryption Certificate tab. Select the certificate you want to use for encrypting SAML assertions.
In the Summary tab, click Done.
In the Credentials tab, click Next.
In the Activation & Summary tab, review your entries for the SEP SAML SP connection. Ensure the connection is active. Click Save.
In the SP Connections list, find your SEP SAML SP connection and click Select Action > Export Metadata.
Specify the path or URI to the exported metadata file with the
http-server.authentication.saml.idp.metadata-file
property in your SEP coordinator configuration.
KeyCloak#
Use the following steps to configure KeyCloak as a SAML 2.0 identity provider for SEP:
In KeyCloak, select the realm you want to use for SEP.
Download the XML file from your coordinator URL at
https://<host>:<port>/saml/metadata
.On the Clients page, click Import Clients.
Click Browse. Select the XML file.
Ensure that the Client ID field populates.
Enter a Name and Description for your SEP client.
If you want to encrypt SAML assertions, select On for Encrypt Assertions. Click Save.
In SAML capabilities > Name ID format, select a name ID format.
Make all other desired configuration changes. Click Save.
On the Realm Settings page, click SAML 2.0 Identity Provider Metadata next to Endpoints.