OpenStack

OpenStack is an open source software solution for creating private and public clouds.

Use Cases the Adapter Solves

  • Cloud Image Inventory: Maintain a complete inventory of virtual machine images, snapshots, and container images available across OpenStack Glance, including format, size, and visibility metadata.
  • Security and Compliance: Identify unprotected or publicly visible compute images across your OpenStack environment to ensure compliance with organizational security policies.

Asset Types Fetched

This adapter fetches the following types of assets:

  • Devices, Users, Compute Services, Networks, Load Balancers, Network Services, Network/Firewall Rules, Compute Images, Secrets

Data Retrieved through the Adapter

Devices - fields such as: Name, Status, VM State, Availability Zone

Compute Services (Hypervisors) - Fields such as Hypervisor Type, Host IP, Uptime, CPUs

Networks (Networks, Subnets, Floating IPs) - Fields such as Cloud ID, Name, State, Created At, CIDR Blocks

Network Services (Routers) - Fields such as Cloud ID, Name, Status, Created At

Network/Firewall Rules (Security Groups) - Fields such as Cloud ID, Policy Name, Action, Rules, and Access Ranges Allowed

Load Balancers - Fields such as Cloud ID, Name, Private IPs, Public IPs,

Users - Fields such as Username, Email, Description, Domain

Compute Images - Fields such as Cloud ID, Name, State, Size

Before You Begin

Required Ports

  • TCP port 443 (HTTPS)
  • TCP port 5000 (OpenStack Identity/Keystone API)
  • TCP port 8774 (OpenStack Compute/Nova API) - used for the connection test, Devices, Hypervisors and SSH Keypairs
  • TCP port 9292 (OpenStack Image/Glance API) - used for Compute Images
  • TCP port 9696 (OpenStack Networking/Neutron API) - used for Networks, Subnets, Floating IPs, Routers and Security Groups
  • TCP port 9876 (OpenStack Load Balancer/Octavia API) - used for Load Balancers

    Note:

    These are the OpenStack default ports. The adapter discovers the actual host and port of each service from the Keystone service catalog, so the Axonius node (or tunnel) must be able to reach the public endpoint URL of every service you enable. Run openstack catalog list to see them.

APIs

Axonius uses the OpenStack API.

Paths are relative to each service's endpoint in the Keystone catalog. On most deployments each service has its own host, for example https://:8774/v2.1/servers/detail, https://:9696/v2.0/networks and https://:9292/v2/images.

The following endpoints are called:

Authentication

  • POST /v3/auth/tokens

Devices

  • GET /compute/v2.1/servers/detail
  • GET /compute/v2.1/flavors/{id}
  • GET /compute/v2.1/images/{id}

Hypervisors (optional β€” Fetch Hypervisors as Assets)

  • GET /compute/v2.1/os-hypervisors/detail

Networks (optional β€” Fetch Networks)

  • GET /v2.0/networks

Subnets (optional β€” Fetch Subnets)

  • GET /v2.0/subnets

Floating IPs (optional β€” Fetch Floating IPs)

  • GET /v2.0/floatingips

Routers (optional β€” Fetch Routers)

  • GET /v2.0/routers

Security Groups (optional β€” Fetch Security Groups)

  • GET /v2.0/security-groups
  • GET /v2.0/ports - Used to find the IPv4 addresses of the ports that use each security group.

Load Balancers (optional β€” Fetch Load Balancers)

  • GET /v2/lbaas/loadbalancers

Users (optional β€” Fetch Users, requires admin)

  • GET /v3/users

SSH Keypairs (optional β€” Fetch SSH Keypairs, requires admin)

  • GET /compute/v2.1/os-keypairs

Compute Images (optional β€” Fetch Compute Images)

  • GET /v2/images (Glance)

Authentication Methods

  • Username and Password
  • Application Credentials

Required Permissions

The following permissions are required:

Read more in Default Roles

Standard User Role (Minimum)

Assign the reader or member role on the relevant OpenStack project. This is sufficient for fetching the following assets within the project scope:

  • Devices (servers)
  • Networks, Subnets, Floating IPs, Routers, Security Groups
  • Load Balancers
  • Compute Images (Glance GET /v2/images)

Note: Without admin access, the adapter only retrieves data from a single project, and Compute Images returns only images owned by or shared with that project.

Administrator Role (Required for certain features)

The admin role is required for the following:

  • Fetch Hypervisors as Assets β€” calls GET /compute/v2.1/os-hypervisors/detail, which is restricted to admin by default
  • Fetch Users β€” calls GET /v3/users, which requires admin or system-scoped reader
  • Fetch SSH Keypairs β€” calls GET /compute/v2.1/os-keypairs for all users; non-admin users can only retrieve their own keypairs
  • Run as Admin User β€” enables fetching data across multiple projects

Connecting the Adapter in Axonius

Required Parameters

  1. Authentication Type - Select between Username & Password and Application Credentials.

Required parameters for Username & Password authentication:

  1. User Name and Password - The credentials for a user account that has the permissions to fetch assets.
  2. User Domain – The domain where the user account is defined, for example default, cisco, ldap, etc.
  3. Project - The project name.
  4. Project Domain - The domain where the project/tenant is defined.

Required parameters for Application Credentials authentication:

  1. Application Credential ID and Application Credential Secret - See the following example (includes mock data):

    example-appcred:
      auth:
        auth_url: http://example.com/identity
        application_credential_id: 0123456789abcdef0123456789abcdef
        application_credential_secret: MOCK_SECRET_KEEP_IT_LONG_AND_RANDOM_STAY_SAFE_12
      auth_type: v3applicationcredential
      region_name: RegionOne

Optional Parameters

  1. Authentication URL - An authentication URL for the Identity service.

  2. Additional openstack hosts JSON file - You can configure a connection using parameters in this dialog box, or upload additional connection parameters them from a JSON file. The JSON file is in the format of a single list containing dictionaries, where each dictionary must contain:

    1. The Authentication URL
    2. Additional connection parameters, depending on the authentication method selected.

    Attention

    Each connection parameter must be configured either in the dialog box or in the JSON file (or both). When the parameters are configured in the JSON file, their values are used for that specific connection; If they are not configured in the JSON file, their values taken from the dialog box.

    Example JSON file:

[
  {
    "auth_url": "<auth url>", # (1)
    "username": "<username>", # (2)
    "password": "<password>", # (2)
    "project": "<project>", # (3)
    "domain": "<domain>", # (4)
    "verify": True/False # Verify SSL
  }
]
  1. Run as Admin user (default: enabled) - This option requires the user to have an admin role in OpenStack. If the user is not an admin, the connection will fail. Disable it to connect with non-admin credentials.

    Note

    Admin credentials can fetch data from multiple projects to which they are assigned. Non-admin credentials can only fetch data from a single project.

  2. Verify SSL - Select whether to verify the SSL certificate of the server against the CA database inside of Axonius. For more details, see SSL Trust & CA Settings.

To learn more about common adapter connection parameters and buttons, see Adding a New Adapter Connection.

Advanced Settings

Note

Advanced settings can either apply for all connections for this adapter, or you can set different advanced settings and/or different scheduling for a specific connection, refer to ​Advanced Configuration for Adapters.

Endpoint Config

This section lists different options to fetch specific asset types from specific endpoints. Enable the settings relevant to your needs.
Examples:

  • Enable Fetch Networks of sub-type floating_ips from Floating IPs to fetch Floating IP networks as Network assets in Axonius.
  • Enable Fetch Compute Images from Compute Images to fetch compute image data from OpenStack Glance, including virtual machine images, snapshots, architecture, operating system distribution, custom properties, and container images along with their metadata.

Additional settings

  • Fetch Hypervisors as Assets (Nova, admin only)
  • Fetch Networks, Fetch Subnets, Fetch Floating IPs (Neutron, Networks assets)
  • Fetch Routers (Neutron, Network Services assets)
  • Fetch Security Groups (Neutron, Network/Firewall Rules assets) - Each rule of an OpenStack security group is created as a separate Network/Firewall Rule asset with the asset type OpenStack Security Group. Before, each security group was a Network Services asset. Your saved setting is kept. See Security group rules.
  • Fetch Load Balancers (Octavia)
  • Fetch Users (Keystone, admin only)
  • Fetch SSH Keypairs (Nova, admin only)
  • Fetch Boot Volume Details (Nove servers that start from a Cinder volume, admin only)

Notes about endpoint settings

  • To fetch Users, you must have an admin user account with access to the Keystone Identity API (/v3/users)
  • To fetch Secrets from SSH Keypairs, you must have an admin user account with access to keypairs across all users via the Nova Compute API.

If the adapter connection is configured with a non-admin account, these endpoints will be automatically disabled.

Note

To learn more about Adapter Configuration tab advanced settings, see Adapter Advanced Settings.

Security group rules

When Fetch Security Groups is enabled, each rule of an OpenStack security group is one Network/Firewall Rule asset. The asset name has this form: <group>: <direction> <protocol> <ports> <from|to> <peer>.

  • Policy Name is the security group name, and Action is always Allowed.
  • The asset includes Security Group ID, Project ID, Ethertype, Remote Group ID, Remote Address Group ID, Description, and Stateful.
  • Rules has one entry with UUID, Action, Name, Description, Direction, IP Protocol, Source CIDRs, Destination CIDRs, From Ports, and To Ports.
  • Access Ranges Allowed has one entry for each rule, with Direction, Protocols, Match Source, and Match Destination. For an inbound rule, Match Source is the remote side, and Match Destination is the IPv4 addresses of the ports in the group, with the destination ports. For an outbound rule, Match Source is the group members, and Match Destination is the remote side, with the ports.
  • A rule with no protocol applies to any protocol. A rule with no port range on TCP, UDP, or any protocol applies to ports 1-65535. ICMP type and code are not ports.
  • The group members are the IPv4 addresses of the OpenStack ports that use the group, up to 1,000 for each group.
  • An IPv6 rule, a rule with a remote address group, or a rule with a side that has no known IPv4 member is fetched, but has no Access Ranges Allowed entry. If the ports request fails, the rules are fetched with no Access Ranges Allowed entry.

Troubleshooting

From Axonius version 10.0.1 the fetch history shows an error event per asset type ("Failed to fetch Compute Images due to ...") with the host and endpoint URL, so a blocked port shows up directly in Adapters Fetch History.


Did this page help you?