Secure Oracle Cloud Infrastructure (OCI) with Mondoo
Continuously secure your Oracle Cloud Infrastructure (OCI) tenancy with Mondoo.
To connect an OCI tenancy to Mondoo, you create an OCI API key and add it to an OCI integration in your space. Mondoo then assesses the tenancy for misconfigurations and vulnerabilities.
Before you begin
- Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
- Access to an OCI tenancy
Create an OCI API key
Mondoo authenticates to OCI with an API key.
-
Log into the Oracle Cloud Console.
-
In the top-right corner, select your user profile icon, then My Profile.

-
In the bottom-left Resources menu, select API keys, then Add API key. To learn more, read Required Keys and OCIDs in the OCI documentation.

-
Select Download private key to download the PEM certificate.

-
Select Add, then Copy to copy the configuration file snippet OCI displays. Keep both the snippet and the PEM file handy for the next section.
The snippet looks like this, with your own values:
[DEFAULT] user=ocid1.user.oc1..<unique_ID> fingerprint=12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef tenancy=ocid1.tenancy.oc1..<unique_ID> region=us-ashburn-1 key_file=<path to your private keyfile> # TODO
Add an OCI integration
You need the Editor or Owner role, or another role with this permission. To see every role, read Roles and permissions.
In the Mondoo App, navigate to the space where you want to add the integration. Some integrations can also be added once at the organization level to cover every space with one connection. To see which ones, read Set up integrations once for your whole organization.
In the space's side navigation bar, select Integrations. In the top right, select INSTALL. On the Install Integration page, find the integration you want by browsing a category or searching by name:
-
Under Cloud Security, select Oracle Cloud Infrastructure.

-
Under Choose an integration name, enter a name that identifies the OCI tenancy.

-
Under Provide the config file snippet, paste the configuration snippet you copied earlier.

-
Under Provide your OCI private key, select UPLOAD .PEM FILE and choose the private key file you downloaded.
-
(Optional) Under Enable security policies (optional), enable the policies you want Mondoo to score the tenancy against. You can change them at any time. To learn how policies work, read Manage Policies.
-
(Optional) Under Set Annotations (optional), select + ADD ANNOTATION to add key-value pairs that Mondoo applies to every asset this integration discovers.
-
Select START SCANNING.
Manage your integration
To open the integration, navigate to the space and select Integrations in the side navigation bar. Select the Oracle Cloud Infrastructure card, then choose the integration.
The status appears on the integration page under Integration Details. Active means the integration is healthy and scanning. To learn what the other statuses mean and how to fix errors, read Integration Status and Troubleshooting.
Mondoo scans the tenancy as soon as you create the integration and then about every 6 hours. To learn more, read When Mondoo scans. At the top of the integration page, select RUN to request a fresh scan, or select the ... (more integration actions) button and then Pause to stop scheduled scans (Resume starts them again). To change the integration's settings, select the edit (pencil) icon. To use a new API key, read Replace the API key.
To remove the integration, select the trash can icon, then select DELETE in the Remove Integration dialog. Mondoo stops scanning the OCI tenancy.
Replace the API key
To replace the private key Mondoo uses, for example when you rotate keys or delete the old key in OCI, first add a new API key to the OCI user as described in Create an OCI API key. Each API key has its own fingerprint, so keep the new configuration file snippet as well as the new PEM file.
How you replace the key depends on where Mondoo stores it. When someone with permission to create and view credentials adds an OCI integration, Mondoo stores the API key, with its tenancy, user, region, and fingerprint, as a credential. Otherwise, the integration keeps the key itself. An existing integration can use either, and its edit form shows which.
-
If the integration uses a credential: The integration page shows a Credential section, and the edit form shows Managed by a credential under Authentication in place of the config file snippet and private key steps. Select the credential's name to open it, then select ACTIONS and Rotate. The tenancy, user, region, and fingerprint are prefilled from the stored credential. Change Key fingerprint to the new key's fingerprint, or select Paste config file and paste the new configuration file snippet. Then provide the new Private key (PEM) and select ROTATE. Every integration that uses the credential switches to the new key. To learn more, read Manage Integration Credentials.
-
If the integration stores its own key: Select the edit (pencil) icon. In Config file snippet, replace the prefilled values with the new configuration file snippet, so the fingerprint matches the new key. In OCI private key (optional update), select UPLOAD .PEM FILE and choose the new private key file, then select SAVE CHANGES. Leave the private key step empty to keep the existing key.
Next steps
Last updated on