Enabling SSO through SAML
SAML overview
Security Assertion Markup Language (SAML) is a standard for exchanging authentication requests and responses between service providers (SPs) and identity providers (IdPs). You can integrate your Tanium environment with an IdP to give users single sign-on (SSO) access to Tanium Console.
SAML enables SPs to give users access to applications across multiple security domains through an SSO authentication service that the IdP provides. Upon receiving an authentication request, the IdP responds with a SAML assertion, which is a message that indicates whether a user authenticated successfully. In the context of the Tanium Core Platform, enabling SAML means configuring the Tanium Server as an SP. You can configure the Server to support both IdP-initiated and SP-initiated SSO or only IdP-initiated SSO. You cannot configure only SP-initiated SSO.
The Tanium Server does not support user authorization (role-based access control) through SAML. To control the features, settings, and information that users are allowed to see and use after accessing Tanium Console, assign user groups, roles, personas, and computer groups to the users. For more information, see Managing users.
Only users who have the Administrator reserved role can see and manage the SAML configuration.
To troubleshoot cases where a user cannot sign in to Tanium Console through SAML, see User account status and user group status.
IdP-initiated SSO
In some enterprises, users are expected to access many or all applications by signing into a single SSO portal that the enterprise IdP provides. After you enable SAML on the Tanium Server, users can access Tanium Console through the IdP SSO portal. An IdP-initiated workflow has the following phases (matching the numbers in the figure IdP-initiated SAML SSO):
|
|
A user signs into the IdP SSO portal using an enterprise user name and password, and clicks an application tile (the Tanium Console tile in this case). |
|
|
The IdP returns a signed response (which contains a SAML assertion) that indicates the user authenticated successfully. The user browser automatically forwards the response to the SP (the Tanium Server in this case). |
|
|
The SP uses the IdP certificate to verify that the SAML response signature is valid. |
|
|
The SP provides the user access to the application. |
SP-initiated SSO
An SP-initiated workflow has the following phases (matching the numbers in the figure SP-initiated SAML SSO):
|
|
The user tries to access the application (Tanium Console in this case) directly through the SP (the Tanium Server in this case). |
|
|
The SP redirects the user to authenticate through the IdP. The user browser processes the redirection automatically. |
|
|
The user signs in to the IdP. |
|
|
The IdP returns a signed response (which contains a SAML assertion) that indicates the user authenticated successfully. The user browser automatically forwards the response to the SP. |
|
|
The SP uses the IdP certificate to verify that the SAML response signature is valid. |
|
|
The SP provides the user access to the application. |
Before you begin
You must meet the following prerequisites before configuring a SAML integration:
-
Tanium Console users
Work with the IdP administrator to identify which users must access Console through the IdP. The IdP administrator is responsible for configuring authentication through an Active Directory (AD) or Lightweight Directory Access Protocol (LDAP) server and managing user access through the IdP. For information about setting up an application through an IdP, see your IdP documentation.
Important: An administrator must create Console users if they are local to the Tanium Server (see Create a user) or must import the users from an LDAP server (see Importing and authenticating users through LDAP). -
(Optional) IdP metadata file
Obtain an IdP metadata file from the IdP administrator. This XML file specifies IdP-specific settings that enable the Tanium Server to trust the IdP. For example, the file specifies the entity ID, also known as the audience Uniform Resource Identifier (URI), which is the globally unique identifier for the IdP in SAML communications. Usually and ideally, the metadata file also includes the IdP certificate, which the Server must use to validate SAML responses and assertions from the IdP. Otherwise, you must obtain the certificate from the IdP administrator separately from the metadata file. The certificate file must be Privacy Enhanced Mail (PEM)-encoded.
-
Request-signing certificate
Generate a certificate for signing authentication requests from the Tanium Server. Some IdPs require signed requests. For more information, see Generate a request-signing certificate.
-
(IdP-initiated SSO only) SSO portal URLs
If changes occur to the URLs where Console users access the IdP SSO portal, work with the IdP administrator when rolling out the changes.
Generate a request-signing certificate
Some IdPs require a digital signature on SAML requests from an SP such as the Tanium Server. To enable the IdP to authenticate requests, you must generate a request-signing certificate and private key. The Server uses the key to sign the requests and the IdP uses the certificate to validate the signature.
The request-signing certificate also supports encrypting SAML assertions from the IdP through SAML token encryption. The IdP uses the public key in the certificate to encrypt the assertions and the Tanium Server uses the private key to decrypt the assertions. A SAML integration with the Tanium Server supports the following algorithms for SAML token encryption:
|
Type |
Name |
Identifier |
|---|---|---|
|
Key transport |
RSA_OAEP |
http://www.w3.org/2009/xmlenc11#rsa-oaep |
|
RSA_v15 |
http://www.w3.org/2001/04/xmlenc#rsa-1_5 |
|
|
Encryption |
AES_256_CBC |
http://www.w3.org/2001/04/xmlenc#aes256-cbc |
Generate a request-signing certificate in a Tanium Appliance deployment
To generate a request-signing certificate in a Tanium Appliance deployment, see Install a custom certificate. In an active-active deployment, you can use one certificate and key for both Tanium Servers.
Generate a request-signing certificate in a Windows deployment
After generating the SAML request-signing certificate and private key, you must restart the Tanium Server for it to read the certificate. Therefore, perform the following steps during a period when restarting the Server will not interrupt critical operations. In an active-active deployment, you generate the certificate and key files on one Server (either peer), copy the files to the peer Server, and restart both Servers.
Configure SAML on the Tanium Server
Perform the following steps to configure SP-initiated or IdP-initiated SAML SSO.
Configure SAML on the IdP
Work with an IdP administrator to configure the IdP for integration with the Tanium Server.
Before you begin
Perform one of the following tasks based on whether the IdP supports metadata exchange documents:
-
Supported: Import the Tanium metadata file into the IdP to automatically configure settings that you already configured on the Tanium Server. For more information, see the last step of Configure SAML on the Tanium Server.
-
Not supported: Record the settings that you must manually enter in the IdP:
-
Sign in to Tanium Console as a user with the Administrator role.
-
From the Main menu, go to .
-
Record the Tanium Entity ID and Tanium ACS URLs values and provide them to the administrator who will configure the IdP for integration with the Tanium Server.
-
Configure Tanium Server settings on the IdP
The specific steps to configure an IdP for integration with an SP (the Tanium Server in this case) vary by IdP vendor. However, all IdPs require the following settings. If you imported the Tanium metadata file, settings from that file are automatically configured in the IdP and you just have to verify them.
-
Tanium Entity ID
-
Tanium ACS URLs
-
NameID format: Set to Unspecified. In SAML assertions, the NameID value must match the User Name (not the Display Name) of a user on the Tanium Server. For more information, see View user details. If the Server imports users through LDAP, the NameID value must match the User Name Property value for each user.
-
RelayState: Set to no value (blank). The Tanium Server does not process this setting.
After the administrator configures the IdP, users can start accessing Tanium Console through SSO. For more information, see Sign in to Console.
Disable or enable SAML SSO
Initially, you enable SAML SSO by performing the steps under Enabling SSO through SAML. If disabling SSO becomes necessary, such as for troubleshooting authentication issues, you can later re-enable it. While SSO is disabled, users must enter their username and password to sign in to Tanium Console.
Events might prevent SSO from working, such as if the connection to the IdP goes down. In such cases, users can access Console through sign-in credentials only if you selected Allow users to sign in with username and password in the SAML configuration. If you deselected that option, you must Disable SP-initiated SSO without Console access to re-enable access through sign-in credentials.
Disable SSO through Console
- From the Main menu, go to .
- Click Disable SAML.
Enable SSO through Console
- From the Main menu, go to .
- Click Enable SAML.
- (Optional) Select Enable SP-initiated SSO and edit the SP-Initiated SSO Configuration options if necessary.
- Click Save.
Disable SP-initiated SSO without Console access
Tanium Appliance and Windows deployments have separate procedures for disabling SP-initiated SSO without accessing Tanium Console.
Appliance: Disable SSO
-
Sign in to the TanOS console as a user with the tanadmin role.
-
Enter 2-X (Tanium Operations > Advanced Operations).
-
Enter 7 to disable SAML SSO.
Windows: Disable SSO
-
Access the Tanium Server CLI. If necessary, elevate permissions to open the command prompt as the administrator user.
-
Go to the Tanium Server installation folder.
-
Run the following command:
CODETaniumReceiver global-settings set console_saml_sp_enabled 0Wait up to a minute for the change to apply, or restart the Tanium Server service to apply the change immediately. You can find the Tanium Server service in the Windows Services program.