manifest / integrations / hashicorp-vault
HashiCorp Vault integration for WordPress archived
HashiCorp Vault integration plugin for WordPress
by Human Made Limited · github.com/humanmade/hashicorp-vault
★ 12stars
4.6kcomposer installs
4forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/hashicorp-vault/archive/refs/heads/master.zipAlso on Packagist as humanmade/hashicorp-vault:
composer require humanmade/hashicorp-vaultFrom the readme
HashiCorp Vault integration for WordPress
Access Vault secrets, utilising WordPress APIs for maximum scalability.
A Human Made library.
HashiCorp Vault integration for WordPress is a library which provides access to Vault secrets in a scaleable manner.
It wraps the CSharpRU/vault-php library, and uses WordPress' transients API to provide familiar and necessary caching for WordPress developers. The library offers automatic re-fetching of secrets prior to lease expiry.
Current limitations:
Only token-based authentication is supported.
Tokens with a renewable lease are not renewed using Vault's API. Instead, this library will refetch the token prior to expiry.
Installation
This library is distributed as a WordPress plugin. Install with Composer, and activate the plugin in the usual way.
Usage
In wp-config.php, define your Vault token:
define( 'HMHASHICORPVAULTAUTHTOKEN', 'your-token-123' );
define( 'HMHASHICORPVAULTURL', 'https://example.com/your-vault/' );
Load the plugin in WordPress by requiring hashicorp-vault/plugin.php.
License
This project is made availabile with the MIT license.
Credits
Created by Human Made for enterprise-scale dig