/postgres-vault-auth

Plugin for the IntelliJ IDEA for fetching database credentials from Vault

Primary LanguageKotlin

PostgreSQL Vault Auth

Build Version Downloads

Fetches credentials for a PostgreSQL database from Vault.

This plugin assumes that vault is installed and available. If you're not authenticated against Vault, the OIDC method is selected (which will trigger your browser to open a tab with the signin process).

Configuration (macOS)

Until the plugin provides a way of configuring itself, the Vault address can be configured using the VAULT_ADDR environment variable.

To make sure it is set for the IntelliJ editor, run the following and restart IntelliJ:

launchctl setenv VAULT_ADDR https://vault-addr.example.org

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Postgres Vault Auth" > Install Plugin

  • Manually:

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

Postgres SVG logo Copyright

Copyright © 2021, Daniel Lundin

Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.