mirror of
https://github.com/pgplex/pgconsole.git
synced 2026-04-26 01:46:00 +03:00
[GH-ISSUE #3] Expose connection hooks #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgconsole#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dbousamra on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/pgplex/pgconsole/issues/3
Originally assigned to: @tianzhou on GitHub.
Summary
Connection hooks for dynamically resolving database credentials
Problem
Some workflows require dynamically resolving connection details (e.g. starting a local proxy and fetching credentials from a secrets manager) before a database connection can be established. The tool currently assumes static connection parameters, which makes these setups unsupported.
Proposed Solution
Add support for connection lifecycle hooks (pre-connect / on-connect) that allow running custom commands or scripts to dynamically supply host, port, username, and password at connection time.
Additional Context
Example use case:
This pattern is common for cloud-managed databases and secrets-based auth.
@tianzhou commented on GitHub (Feb 10, 2026):
Didn't expect this coming up so soon :)
@dbousamra commented on GitHub (Feb 16, 2026):
Hi Tianzhou. I see the app is now open source. Would this be suitable for me to submit a PR for? Do you have a recommended approach - is hooks what we want?