mirror of
https://github.com/apache/superset.git
synced 2026-06-07 16:49:17 +00:00
feat(ssh_tunnel): Import/Export Databases with SSHTunnel credentials (#23099)
This commit is contained in:
@@ -68,6 +68,19 @@ class SSHTunnel(Model, AuditMixinNullable, ExtraJSONMixin, ImportExportMixin):
|
||||
EncryptedType(sa.String, app_config["SECRET_KEY"]), nullable=True
|
||||
)
|
||||
|
||||
export_fields = [
|
||||
"server_address",
|
||||
"server_port",
|
||||
"username",
|
||||
"password",
|
||||
"private_key",
|
||||
"private_key_password",
|
||||
]
|
||||
|
||||
extra_import_fields = [
|
||||
"database_id",
|
||||
]
|
||||
|
||||
@property
|
||||
def data(self) -> Dict[str, Any]:
|
||||
output = {
|
||||
|
||||
Reference in New Issue
Block a user