Note:

Configure OCI Identity and Access Management as a SSO Source for the Rapid7 Command Platform

Introduction

Oracle Cloud Infrastructure (OCI) is Oracle’s cloud computing platform that offers a comprehensive set of cloud services, including computing, storage, networking, databases, and identity management. OCI is designed for both traditional applications and newer cloud-native workloads, providing scalability, security, and performance at various service levels. OCI also supports a robust identity and access management (IAM) system that includes features like SAML to enable single sign-on (SSO) for enhanced security and user convenience. OCI’s SAML-based identity federation allows enterprises to integrate with external identity providers, streamlining user access across various OCI resources.

Rapid7 is a leading provider of cybersecurity solutions, focusing on threat detection, vulnerability management, and incident response. With tools like InsightIDR and InsightVM, Rapid7 enables organizations to detect and manage vulnerabilities across their infrastructure, including cloud environments. Rapid7’s SAML integration feature simplifies authentication by allowing organizations to connect with identity providers like OCI. This connection empowers users with single sign-on capabilities, improving security by reducing password dependency while also enabling seamless access to Rapid7’s security tools and insights.

This tutorial walks through the tasks to configure Oracle Cloud Infrastructure Identity and Access Management (OCI IAM) as a Single Sign-On (SSO) source for the Rapid7 Command Platform using Security Assertion Markup Language (SAML) 2.0. This allows you to use OCI IAM to manage user authentication for Rapid7 Command Platform.

Audience

OCI IAM professionals and Rapid7 administrators.

Objectives

Prerequisites

Task 1: Configure SSO Settings in Rapid7 Command Platform

In this task, we will configure SSO settings using SAML 2.0 in the Rapid7 Command Platform.

  1. To access the SSO Settings, follow the steps:

    1. Go to the Rapid7 Command Platform homepage and click the Administration link.

    2. Click the settings icon.

    3. Click Authentication Settings and SSO Settings.

    Image 2

  2. Select Other from the Select your Identity Provider (IdP) drop-down menu.

    Image 3

    Note: We will upload the IdP certificate later after completing Task 2.

  3. Copy Assertion Consumer Service (ACS) URL, Audience (EntityID) and Relay State URLs. Once done, go to Task 2.

    Image 6

  4. Copy Entity ID and SingleSignOnService URL from the metadata downloaded in Task 2 and use it in Issuer URL and Single Sign-On URL respectively in the Configured Insight Platform section.

    Image 22

    Image 12

    Note: Format of single sign-on URL is https://idcs-##############.identity.oraclecloud.com/fed/v1/idp/sso.

  5. Upload IdP Certificate.

    Image 5

  6. Setup a Default Access Profile that new users should be assigned. After you set up this default access profile, it will be automatically assigned to all new user accounts created through your OCI IAM. Access for existing user accounts will not be impacted.

    Image 13

    Image 14

    Image 28

  7. Enable IdP user group synchronization. Synchronizing OCI IAM groups with the Rapid7 Command Platform allows your OCI IAM to govern Rapid7 Command Platform user group membership. OCI users assigned to IdP groups are automatically assigned to matching user groups in the Rapid7 Command Platform. Users assigned in this way inherit all defined product, role, and data permissions as long as they remain part of the original IdP group.

    Image 16

    Image 15

  8. Click Yes to enable SSO through external IdP.

    Image 17

  9. Click Download to download SP’s Metadata.

    Image 23

  10. Extract X509Certificate from it to create a .pem file.

    Image 26

Task 2: Create a SAML Application in OCI IAM Identity Domains

We will create a SAML application in the respective OCI IAM Identity Domains. This is necessary to establish a secure communication link between OCI IAM and the Rapid7 Command Platform using the SAML 2.0 protocol for SSO.

  1. Log in to the OCI Console, go to Identity & Security and click Domains.

    Image 19

  2. Select your domain, click Integrated Applications to Add Application, select SAML application and click Launch Workflow.

    Image 20

  3. Enter the Name, Relay State for your application and click Next.

    Image 11

  4. In the Configure single sign on section, enter Entity ID , Assertion consumer URL, select Name ID format as Unspecified, Name ID value as Username and upload the Signing certificate downloaded from the Rapid7 console.

    Image 8

    Note: Once SSO is configured in Rapid7 Command Platform, then the certificate can be extracted from the downloaded metadata.

  5. In the Additional configurations section, select Include signing certificate in signature and deselect Enable single logout. Keep the other parameter as default.

    Image 9

    Note: Select or deselect the Enable single logout feature based on your requirement. Enabling the feature will require the SLO URLs to be added in the respective field.

  6. Use the following configuration in the Attribute configuration section.

    Image 10

    Note: The following attribute statements in the image are mandatory for authentication to the Rapid7 Command Platform.

  7. Click Finish and Activate to complete the setup.

  8. Download Signing Certificate and Identity Provider Metadata. Once done, go back to Task 1.4 and continue.

    Image 21

Task 3: Group Synchronization

Group synchronization allows you to control user group assignment from within OCI IAM.

This capability is made possible by including an attribute in the SAML response labelled rbacGroups that contains the name(s) of Rapid7 Command Platform groups for each user. The users will be automatically assigned to the corresponding groups in the Rapid7 Command Platform and will inherit the product, role, and resource access associated with those groups.

Note: When we enabled Group Sync, IdP users will be removed from any Rapid7 Command Platform groups not included in their SAML assertion. IdP users will retain any roles or permissions assigned directly to them, including those from a default access profile.

To create user groups in Rapid7 Command Platform, navigate to Administration, User Management and click User Groups.

Task 4: Configure User Groups

As group synchronization requires the use of Rapid7 Command Platform user groups, it is important that you have configured groups before activating.

  1. Add the group attribute. In OCI IAM, we need to ensure that the users are assigned to groups with the same name as the corresponding Rapid7 Command Platform user group. If you have not already created these groups, follow the steps:

    1. In the OCI Identity Domains Console, navigate to Groups.

    2. Click Create group.

    3. Enter the same Name as the corresponding Rapid7 Command Platform user group.

    4. In the Users section, select the users to assign this group.

    5. Click Create.

    Once your groups are configured, you need to add an attribute to the SAML assertion containing the names of the groups each user is assigned to.

  2. Add the attribute to your SAML assertion in OCI IAM Identity Domains.

    1. In the OCI OCI Identity Domains Console, navigate to Integrated applications and select your Rapid7 application.

    2. Click Edit SSO Configuration in the SAML Settings section.

    3. Add the following Attribute Statement and click Save.

    Image 27

    All the information we require from your OCI IAM to synchronize users to Rapid7 Command Platform user groups will now be included when users authenticate using SSO.

Task 5: Test the SSO

  1. Go to the Rapid7 Insight URL (https://insight.rapid7.com) and click Sign in with SSO.

    Image 24

  2. Enter the credentials.

    Image 18

    You are now successfully logged into the Rapid7 Command Platform.

    Image 25

    Also the user gets added to the user groups automatically based on the group membership in OCI IAM.

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.