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.
Navigate to Products and select Databases.
Select the target database.
Navigate to Trusted Sources under Overview and click Edit.
Specify a list of the IP addresses of the servers that you want to allow to connect to the database and click Save.
List all the databases by sending a GET
request to the List Managed Databases endpoint and note the target database's ID.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
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.
$ 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.
List all databases and note the target database's ID.
$ vultr-cli database list --summarize
Define the IP addresses of the servers that you want to allow to connect to the database and specify the database's ID.
$ 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.