Learn how to configure your Cassandra instance to accept incoming connections.
Cloud Databases allow you to focus on building and deploying cloud applications while OVHcloud takes care of the database infrastructure and maintenance in operational conditions.
Requirements
- A Public Cloud project in your OVHcloud account
- Access to the OVHcloud Control Panel
- A Cassandra database running on your OVHcloud Managed Databases (this guide can help you to meet this requirement)
Instructions
Configure your Cassandra instance to accept incoming connections
Before establishing a connection, we must verify that our Cassandra instance is properly configured.
Log in to your OVHcloud Control Panel and open your Public Cloud
project. Click on Databases
in the left-hand navigation bar and select your Cassandra instance.
Step 1: Verify your user roles and password
Select the Users
tab. Verify that you have a user with a configured password. If you don't remember the user's password, you can either create a new user or regenerate the password of an existing user.
NOTE: Be careful! By doing so, you will need to update all the places where you already use this user/password pair.
You can add more users by clicking the + Add user
button.
Enter a username, then click Create User
.
You can delete a user or regenerate a password via the more options ...
button.
Step 2: Authorize incoming connections from the Cassandra client
NOTE: For security reasons, the default network configuration doesn't allow any incoming connections. It is thus critical that you authorize suitable IP addresses to successfully access your database.
In this step, select the Configuration
tab. IP addresses must be authorized here before they can connect to your database.
In the IPs panel, add single IP addresses or blocks to allow access to the database using the add +
button.
When finished, click Save changes
.
If you want to allow connections from the outside, you can enter the IP 0.0.0.0/0. Please use it carefully.
Collect required information
Select the Dashboard
tab to find the required login credentials in the Connection information section.
Click the Users
to get the username.
Go further
Visit the GitHub examples repository to find out how to connect to your database with several languages.
For more information and tutorials, please see our other Managed Databases & Analytics or Platform as a Service guides. You can also explore the guides for other OVHcloud products and services.