Download the PHP package agz/laravel-gcp-secret-injector without Composer
On this page you can find all versions of the php package agz/laravel-gcp-secret-injector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agz/laravel-gcp-secret-injector
More information about agz/laravel-gcp-secret-injector
Files in agz/laravel-gcp-secret-injector
Package laravel-gcp-secret-injector
Short Description Include GCP secrets in you laravel environment without explicitly declaring them in your .env files
License MIT
Informations about the package laravel-gcp-secret-injector
Load secrets into your environmental variable without declaring it in your .env
This package helps load sensitive data from you Google Cloud Secret Manager into your laravel environment instead of explictly defining it in your .env file.
Prerequisite
You need to already have google/cloud-secret-manager
installed in your project.
Installation
You can install this package via composer:
To publish the config file run the vendor publish command:
Configuration
After publishing the secret inject assets, its configuration will be located at config/secret-injector.php. The configuration allows you to configure you environmental variables against the your Google Cloud secrets.
The project_id
points to your google cloud project id. The includedEnvs
tells configures what environments which you want the library to be active. For example, by default is configured to be just production. Meaning that once your APP_ENV is set to production, then the library will pull secrets from your Google Cloud Secret Manager in to your environment.
The secrets
is used to configure what environmental variables should point to which secrets.
For example:
Testing
Contributors
License
The MIT License (MIT). Please see License File for more information.