承接 bearcodi/docker-secrets-exposer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bearcodi/docker-secrets-exposer

Composer 安装命令:

composer require bearcodi/docker-secrets-exposer

包简介

Docker secrets expander for Laravel environment configuration.

README 文档

README

Build Status laravel5.7 php7

A drop in package when using Laravel in a Docker Swarm setup and wanting to expand docker secrets easily.

But why?

Write a blurb about why you would want to use this, and why the value isn't just replaced or cached....security yo!!!

Installation

Hey, we all like composer here right??

composer require bearcodi/docker-secrets

Laravel setup

Its 2018, and Laravel is fun to dev packages for, is already setup!!!

Non Laravel projects

Hmmmm, need to think about this for Code Igniter.

Usage

Within you .env file, or from you docker-compose.yml stack file using environment variables, define your secret prefixing it with dockersecrets:// DSN.

DB_PASSWORD=dockersecrets://db-password

IMPORTANT If you are using a docker secret in your code not in a string context (ie. array key lookup) either cast it to a string (string) config("CONFIG_KEY") or use the expose() method on the return value as it is an instance of Bearcodi\DockerSecrets\Secret

The secret is then parsed and replaced with the Secret handler, when evalutated in a string usage the secret file value is returned on demand without exposing it in your applications environment.

Laravel environment key exclusions

Key Reason for exclusion
DB_CONNECTION The value is used in an array key lookup when establishing the database connection driver, see array key lookups

统计信息

  • 总下载量: 1.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固