How to Manage Trusted Sources for Vultr Managed Apache Kafka®

Updated on November 27, 2024

Vultr Managed Apache Kafka® allows customers to add IP addresses as trusted sources for their Kafka database. Users can easily configure and manage a list of approved IP addresses, enhancing security by controlling which sources can access their data streams. This straightforward interface helps ensure that only authorized connections are permitted, allowing customers to maintain a secure environment while enabling seamless data flow.

Follow this guide to manage trusted sources for Vultr Managed Apache Kafka® using the Vultr Customer Portal, API, and CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and select Databases.

    Database selection products menu

  2. Select the target database.

    Selecting a target database

  3. Navigate to Trusted Sources under Overview and click Edit.

    Edit the trusted sources

  4. Specify a list of the IP addresses of the servers that you want to allow to connect to the database and click Save.

    Add IP addresses as trusted sources

  1. List all the databases by sending a GET request to the List Managed Databases endpoint and note the target database's ID.

    console
    $ curl "https://api.vultr.com/v2/databases" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PUT request to the Update Managed Database endpoint to define the IP addresses of the servers that you want to allow to connect to the database in array format and specify the target database's ID.

    console
    $ curl "https://api.vultr.com/v2/databases/<database-id>" \
        -X PUT \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "trusted_ips" : ["192.0.2.1","192.0.2.2","192.0.2.3"]        
        }'
    

    Visit the Update Managed Database endpoint to view additional attributes to add to your request.

  1. List all databases and note the target database's ID.

    console
    $ vultr-cli database list --summarize
    
  2. Define the IP addresses of the servers that you want to allow to connect to the database and specify the database's ID.

    console
    $ vultr-cli database update <database-id> \
    --trusted-ips "192.0.2.1,192.0.2.2,192.0.2.3"
    

    Run vultr-cli database update --help to view all options.