Skip to content

Database connection export -> import fails to include any encrypted private keys #36956

@joeyJsonar

Description

@joeyJsonar

Bug description

Export a working big query database, and delete the database and try to import it.
It looks like it works, but it fails when testing connection and it fails when creating dataset.

This is due to the functionality that Superset only exports the serialized database connection and doesn't include any encrypted private keys. This is meant for extra security, but I will change it so that editing the imported Google BigQuery connection will prompt for uploading these 'Service Account' credentials again.

Screenshots/recordings

1201.import.database.mp4

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:databasesRelated to database configurations and connections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions