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

[feature request] automate + "add connection" or inject connection details via code/config #256

Open
mratanusarkar opened this issue Sep 30, 2024 · 0 comments

Comments

@mratanusarkar
Copy link

mratanusarkar commented Sep 30, 2024

Issue

When using the ckolkman.vscode-postgres extension in GitHub Codespaces or dev containers, currently we have to manually add connection details (host, username, password, etc.) each time. This is time-consuming and repetitive, especially for projects with an "it-just-works" or "one-click-dev-setup" goal.

Request

Automate the PostgreSQL connection setup during the container build process in one of the following ways:

  1. via environment variables or configuration files (e.g., .devcontainer/devcontainer.json, .vscode/settings.json).
  2. or injecting connection details using code or .sh script instead of manually entering them through the VSCode GUI.

The goal is to automate this manual entry process.

I understand that saving the credentials in settings.json is not secure and is a bad practice.
But using devcontainer.json or setup.sh script to take the credentials from an .env file or process.env and inject them to auto add a new postgres connection would follow the best practices and would be a great and very useful feature!

Relevant Discussions

There are already ongoing discussions and feature requests from the community for similar use cases. Here are some relevant threads:

Conclusion:

This feature would save time, simplify developer workflows and enhance the experience, especially in environments like Dev Containers or GitHub Codespaces, where setting up database connections manually is inefficient.

Addressing this request can close multiple existing open issues and handle many use cases mentioned in the same.

@mratanusarkar mratanusarkar changed the title [Feature Request] Automate + "Add Connection" or Inject Connection Details via Code/Config [feature request] automate + "add connection" or inject connection details via code/config Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant