damienfern/vault-symfony-bundle
This bundle integrates Hashicorp Vault secrets into your Symfony application by injecting secrets in environment variables.
Add the damienfern/vault-symfony-bundle package to your require section in the composer.json file.
$ composer require damienfern/vault-symfony-bundle
To use token authentication, you need to configure the bundle with the token obtained from Vault.
Here is an example configuration:
# config/packages/vault.yaml
vault:
address: 'http://localhost:8200' # Vault server address
path: 'myapp/config' # Path to your secrets in Vault
token: 'yourtoken' # Your Vault token
To use AppRole authentication, you need to configure the bundle with the role_id and secret_id obtained from Vault.
Here is an example configuration:
# config/packages/vault.yaml
vault:
address: 'http://localhost:8200' # Vault server address
path: 'myapp/config' # Path to your secrets in Vault
app_role:
role_id: ''
secret_id: ''
How can I help you explore Laravel packages today?