Skip to content

klinux/plugin.secret.hashicorp.vault

 
 

Repository files navigation

Plugin para o GoCD para usar o Hashicorp Vault como secrets

Este plugin habilita o GoCD para usar o Hashicorp Vault como servidor de secrets.

Compilar o plugin

./gradlew clean test assemble

Ou execute

make all

Par buildar a lib e colocar na pasta para o GoCD usar a lib.

Rodar o vault e unseal

executar o docker-compose para subir os servicos do vault

cd vault-docker
docker-compose up -d

para parar estes servicos do vault

docker-compose down

executar o docker-compose para subir os servicos do gocd

cd gocd-docker
docker-compose up -d

para parar estes servicos do gocd

docker-compose down

acessar o container do vault

docker-compose exec vault sh

iniciar o vault

vault operator init

unseal o vault

for key in <unseal_key1> <unseal_key2> <unseal_key3>; do vault operator unseal "${key}"; done

Para acessar o Vault use o seguinte endereco

http://localhost:8200/ui

Licença

Copyright 2019 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

This plugin can using Vault kv inside gocd pipelines. Here you can use to manage secrets: https://docs.gocd.org/19.8.0/configuration/secrets_management.html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 88.0%
  • HTML 10.5%
  • Makefile 1.5%