How to Manage Trusted Sources for Vultr Managed Apache Kafka®

Updated on 28 August, 2025

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, CLI, or Terraform.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  • Terraform
  1. Navigate to Products and select Databases.
  2. Select the target database.
  3. Navigate to Trusted Sources under Overview and click Edit.
  4. Specify a list of the IP addresses of the servers that you want to allow to connect to the database and click Save.
  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.

  1. Open your Terraform configuration for the existing Managed Apache Kafka® resource.

  2. Add or update the trusted_ips argument with the approved source IP addresses.

    terraform
    resource "vultr_database" "kafka" {
        # ...existing fields (database_engine, region, plan, label, etc.)
    
        trusted_ips = [
            "192.0.2.1",
            "192.0.2.2",
            "192.0.2.3"
        ]
    }
    
  3. Apply the configuration and observe the following output:

    Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Comments

No comments yet.