Download the PHP package etracksystems/laravel-docker-secrets without Composer
On this page you can find all versions of the php package etracksystems/laravel-docker-secrets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download etracksystems/laravel-docker-secrets
More information about etracksystems/laravel-docker-secrets
Files in etracksystems/laravel-docker-secrets
Package laravel-docker-secrets
Short Description Use Docker Swarm Secrets in your Laravel config files
License MIT
Homepage https://github.com/etracksystems/laravel-docker-secrets
Informations about the package laravel-docker-secrets
Laravel Docker Secrets
This package, which was forked from , allows you to use docker swarm secrets in your Laravel config files. Note there are some limitations, see the usage below.
Installation
Via Composer
Usage
This package provides two helper methods that you can use in your laravel config files. Due to the way Laravel parses the config files, you can only use them in the env() method. In practice this is almost always exactly what you want, as it allows you to override the secrets locally for development.
You can also store encrypted docker secrets. Note that the secret must be encrypted using your app's key. This is useful if you share your swarm with a team. Other projects can't just mount your secrets and view them.
Finally, you can also return a default value if the secret isn't available.
Creating encrypted secret
This package offers a command to easily generate an encrypted secret which you can then store in Docker Swarm. It uses the project's app secret for encryption so make sure that this same key is also used in the service that uses the Swarm secret. You can also simply use Tinker to create encrypted secrets.
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Cor Bosman - original author of the corbosman/laravel-docker-secrets packages which this was forked from.
License
Please see the license file for more information.