GithubHelp home page GithubHelp logo

ryanprior / conjur-puppet-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 6 KB

PuppetConf 2017 Conjur Demo

Home Page: https://www.youtube.com/watch?v=jYvfSYDcLXk

License: Other

Shell 49.51% Puppet 50.49%
puppet security machine-identity automation devsecops secrets demo

conjur-puppet-demo's Introduction

Preparation πŸ™πŸ»

turn off notifications

restart Emacs

zoom in the frame

(require 'zoom-frm)
(zoom-in/out 1)
(zoom-frm-unzoom)
(zoom-in/out 8)

clean up old data

docker-compose down
rm -f puppet/manifests/secrets.pp

start up new containers

./start.sh

The Conjur Puppet Demo πŸ’ͺ🏻

Introduction

This demo was created for PuppetConf 2017

Manual Secrets Management πŸ˜³πŸ”“οΈπŸ€·πŸ»β€β™‚οΈ

The special DevOps thumb drive (aka SneakerNet πŸ‘Ÿ)

This is a manually managed β€œsecrets” manifest which ops must keep private: file:thumb-drive/secrets.pp

cp thumb-drive/secrets.pp puppet/manifests/secrets.pp
./run-agent.sh

Problems with manual secrets management πŸ’₯

Why Hiera is not the solution πŸ€”πŸ“šοΈ

Conjur Secrets Management πŸ‘ŒπŸ»πŸ€ πŸ”‘

cp conjur/secrets.pp puppet/manifests/secrets.pp
docker-compose exec -T client /demo/load-secrets.sh

Generate a hostfactory token and give it to the Puppet Master

./generate-hostfactory-token.sh

Put this token in file:puppet/manifests/secrets.pp

Run the Puppet agent again

./run-agent.sh

Take a look at the Conjur policy πŸ”Ž

It’s in file:conjur/app.yml

Rotate a secret πŸ”„

docker-compose exec -T client sh -c '
conjur variable values add app/postgres-password "long director down so"
conjur variable values add app/vendor-oauth-token "ee16b985-c72b-4cd3-abec-af38c056db00"
'

Let’s do just a couple cool Conjur things! β„οΈπŸ†’

What hosts have we created so far?

docker-compose exec -T client \
  conjur list -k host

What are all the roles can fetch the app’s postgres password?

docker-compose exec -T client \
               conjur resource permitted_roles \
               variable:app/postgres-password \
               execute

conjur-puppet-demo's People

Contributors

ryanprior avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.