mtxr / vscode-sqltools

Database management for VSCode

Home Page:https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make SSL Requirements Optional

KerickHowlett opened this issue · comments

Is your feature request related to a problem? Please describe.
My company uses Bastion to SSH into certain AWS RDS (Postgres) instances; however, they don't have SSL certifications set up for these connections (for some reason).

From what I can tell, SQL Tools will not work WITHOUT a SSL certification.

(Although, I was told about this problem secondhand, so I may have this wrong or could be misunderstanding.)

Describe the solution you'd like
A means to toggle (enable/disable) the SSL requirement.

Describe alternatives you've considered
An additional JSON property setting within individual database configurations.

The property will accept the following three string values:

  • "always" (default): It will always choose to go with HTTPS (SSL), and never HTTP (non-SSL)
  • "never": It will always choose to go with HTTP (non-SSL) and never HTTPS (SSL).
  • "automatic": It will use either HTTP or HTTPS, depending what's available, first trying HTTPS before attempting HTTP.

Configuration Example:

{
    "database": "production",
    "driver": "PostgreSQL",
    "group": "ACME",
    "name": "Production",
    "port": 22,
    "previewLimit": 50,
    "server": "localhost",
    "username": "john1234",
    "ssl": "automatic" // <---- HERE
}