Skip to content

Commit a0ca0c0

Browse files
chore: Add docs for ssh tunneling (#23131)
Co-authored-by: Beto Dealmeida <[email protected]>
1 parent fbf10c3 commit a0ca0c0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

RESOURCES/FEATURE_FLAGS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ These features are **finished** but currently being tested. They are usable, but
6161
- GENERIC_CHART_AXES
6262
- GLOBAL_ASYNC_QUERIES [(docs)](https://github.com/apache/superset/blob/master/CONTRIBUTING.md#async-chart-queries)
6363
- RLS_IN_SQLLAB
64+
- SSH_TUNNELING [(docs)](https://superset.apache.org/docs/installation/setup-ssh-tunneling)
6465
- USE_ANALAGOUS_COLORS
6566
- UX_BETA
6667
- VERSIONED_EXPORT
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Setup SSH Tunneling
3+
hide_title: true
4+
sidebar_position: 13
5+
version: 1
6+
---
7+
8+
## SSH Tunneling
9+
10+
1. Turn on feature flag
11+
- Change [`SSH_TUNNELING`](https://github.com/apache/superset/blob/eb8386e3f0647df6d1bbde8b42073850796cc16f/superset/config.py#L489) to `True`
12+
- If you want to add more security when establishing the tunnel we allow users to overwrite the `SSHTunnelManager` class (here)[https://github.com/apache/superset/blob/eb8386e3f0647df6d1bbde8b42073850796cc16f/superset/config.py#L507]
13+
- You can also set the [`SSH_TUNNEL_LOCAL_BIND_ADDRESS`](https://github.com/apache/superset/blob/eb8386e3f0647df6d1bbde8b42073850796cc16f/superset/config.py#L508) this the host address where the tunnel will be accessible on your VPC
14+
15+
2. Create database w/ ssh tunnel enabled
16+
- With the feature flag enabled you should now see ssh tunnel toggle.
17+
- Click the toggle to enables ssh tunneling and add your credentials accordingly.
18+
- Superset allows for 2 different type authenticaion (Basic + Private Key). These credentials should come from your service provider.
19+
20+
3. Verify data is flowing
21+
- Once SSH tunneling has been enabled, go to SQL Lab and write a query to verify data is properly flowing.

0 commit comments

Comments
 (0)