Skip to content

Acquire database login credentials using an external command

License

Notifications You must be signed in to change notification settings

liff/db-external-command-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7a64567 · Apr 9, 2025
Apr 9, 2025
Mar 10, 2024
Nov 7, 2023
Apr 9, 2025
Aug 10, 2024
Mar 10, 2024
Mar 10, 2024
Apr 9, 2025
Mar 10, 2024
Aug 10, 2024
Nov 8, 2024
Apr 9, 2025
Apr 9, 2025
Nov 8, 2024
Nov 7, 2023
Dec 3, 2024
Apr 6, 2024

Repository files navigation

db-external-command-auth

Build Version Downloads

Use an external command to acquire database connection credentials.

Executes an external command and extracts database and username from its output. The command is executed in the project’s root directory, if that can be resolved.

The plugin will first attempt to extract the information from output from a Vault-like JSON with the following format:

{
  "data": {
    "username": "username",
    "password": "password"
  }
}  

Any extra fields are ignored.

If JSON parsing fails, the output is expected to be password and username separated by a newline:

password
username

The prefix username: is removed from the username, so the following also works:

password
Username: username

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "db-external-command-auth" > Install

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.