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

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.

About

Acquire database login credentials using an external command

Resources

License

Stars

Watchers

Forks

Packages

No packages published