Last Updated: 2024-02-22
For security reasons, many data sources are not publicly accessible. In such cases, Starburst Galaxy connects to these data sources using one of the following secure methods.
The first method involves configuring an SSH tunnel using a bastion host.
A bastion host is a Linux server or Virtual Machine (VM) with both public and private IP addresses. It is typically configured to allow only SSH tunneling and no other applications. on port 22 for access. Access to the bastion host is usually restricted to port 22, which is the SSH port.
This is the method outlined in this tutorial.
The second method uses PrivateLink to create a secure connection. Starburst offers several tutorials to guide you step-by-step through this process.
In this tutorial, you will learn how to configure an SSH tunnel for use with Starburst Galaxy. You will work in both the Starburst Galaxy UI and a terminal window.
Once you've completed this tutorial, you will be able to:
Starburst tutorials are designed to get you up and running quickly by providing bite-sized, hands-on educational resources. Each tutorial explores a single feature or topic through a series of guided, step-by-step instructions.
As you navigate through the tutorial you should follow along using your own Starburst Galaxy account. This will help consolidate the learning process by mixing theory and practice.
Starburst Galaxy separates users by role. Configuring an SSH tunnel will require access to a role with appropriate privileges. Today, you'll be using the accountadmin role.
This is a quick step, but an important one.
Your current role is listed in the top right-hand corner of the screen.
Now it's time to begin configuring an SSH tunnel that uses your bastion host.
Your bastion host will act as a gateway between your private, internal network and the public, external internet. It allows secure access to these internal resources by acting as a single entry point, enforcing strict access controls, and monitoring and logging access attempts.
Start by creating a new SSH tunnel in Starburst Galaxy. This will be used by your bastion host to communicate with your private Starburst Galaxy cluster.
Now it's time to generate an RSA key. Later, you will add this key to your SSH tunnel's authorized_keys
file. This will enable the secure connection..
Now it's time to access your bastion host using SSH. This can be achieved in a number of different ways.
ssh bastion
.~/.ssh/authorized_keys
file with the following command.vi ~/.ssh/authorized_keys
Now it's time to take the RSA key generated in Starburst Galaxy and add it to the authorized_keys
file in your /.ssh
folder.
authorized_keys
file, move your cursor to the end of the file.a
. authorized_keys
file.:wq
, and press return to save and quit the file.authorized_keys
file to ensure that the key was copied into the file correctly using the following command:cat ~/.ssh/authorized_keys
exit
and press enter to exit your ssh connection to the bastion host.You're ready to complete the SSH tunnel configuration in Starburst Galaxy. To do this, you'll enter the user and IP address of your bastion host.
Congratulations! You have reached the end of this tutorial, and the end of this stage of your journey.
You're all set! Now you can use your SSH tunnel to configure access to various catalogs in your Starburst Galaxy account.
At Starburst, we believe in continuous learning. This tutorial provides the foundation for further training available on this platform, and you can return to it as many times as you like. Future tutorials will make use of the concepts used here.
Starburst has lots of other tutorials to help you get up and running quickly. Each one breaks down an individual problem and guides you to a solution using a step-by-step approach to learning.
Visit the Tutorials section to view the full list of tutorials and keep moving forward on your journey!