Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use VS Code Secret Storage for database password #3540

Open
2 tasks done
hongbo-miao opened this issue Dec 26, 2024 · 0 comments
Open
2 tasks done

Allow to use VS Code Secret Storage for database password #3540

hongbo-miao opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"

Comments

@hongbo-miao
Copy link

hongbo-miao commented Dec 26, 2024

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

Currently Continues saves database password in plain text at ~/.continue/config.json which is not that secured:

{
  "contextProviders": [
    {
      "name": "database",
      "params": {
        "connections": [
          {
            "name": "examplePostgres",
            "connection_type": "postgres",
            "connection": {
              "user": "username",
              "host": "localhost",
              "database": "exampleDB",
              "password": "yourPassword",
              "port": 5432
            }
          },
          {
            "name": "exampleMssql",
            "connection_type": "mssql",
            "connection": {
              "user": "username",
              "server": "localhost",
              "database": "exampleDB",
              "password": "yourPassword"
            }
          }
        ]
      }
    }
  ]
}

Solution

I don't have a perfect way in mind. As I know Continue supports multiple IDEs.
For VS Code, one option is to allow to save in VSCode Secret Storage. This is what this DBCode plugin does. In VS Code ~/Library/Application Support/Code/User/settings.json, it refers as

{
  "dbcode.connections": [
    {
      "connectionId": "V76A15foqKcw2ZcD-AkWy",
      "name": "examplePostgres",
      "driver": "postgres",
      "connectionType": "host",
      "host": "localhost",
      "port": 5432,
      "ssl": true,
      "username": "username",
      "password": "",
      "savePassword": "secretStorage",
      "connectionTimeout": 30
    }
  ]
}
@sestinj sestinj self-assigned this Dec 26, 2024
@dosubot dosubot bot added area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:enhancement Indicates a new feature request, imrovement, or extension "needs-triage"
Projects
None yet
Development

No branches or pull requests

2 participants