SlideShare a Scribd company logo
ROTATING PASSWORDS WITH ANSIBLE
AND HASHIVAULT
OUR PRACTICAL OVERVIEW OF SECRET
MANAGEMENT BY INTEGRATING
HASHICORP'S VAULT WITH ANSIBLE
Keith Resar
@KeithResar
@KeithResar
Keith Resar: Bio
Wear many hats
@KeithResar Keith.Resar@RedHat.com
Coder
Open Source Contributor and Advocate
Infrastructure Architect
7 PRINCIPLES OF DEVSECOPS
● Humans create poor quality passwords, let’s generate them
automatically
● An automated task would allow increased password rotation
frequency
● Continuous deployment of password rotations would be ideal
● An automated task can be tested, and will never go beyond its scope
● Storing the password in a shared-secret vault is our break glass
● Integrating with AD would be great, allowing seamless runtime access
control
● Passwords should not be stored in Git, deploy scripts, etc
ANSIBLE VAULT
VS
HASHICORP VAULT
ANSIBLE VAULT ENABLES STORING SENSITIVE
DATA SUCH AS PASSWORDS OR KEYS IN
ENCRYPTED FILES,
RATHER THAN AS PLAINTEXT IN YOUR
PLAYBOOKS OR ROLES.
ANSIBLE VAULT
● No External dependencies
● Encrypt entire files or individual secrets
● Version control, commit alongside playbooks
ANSIBLE VAULT USAGE
> ansible-vault {create,rekey,edit,encrypt} foo.yml
> ansible-playbook foo.yml --ask-vault-pass
MOVING BEYOND ANSIBLE VAULT
● Storing static information vs. Dynamic database
● Separation of automation from secrets
● Supporting password leases
Rotating Passwords With Ansible and HashiVault
HASHICORP VAULT PRIMER
HASHICORP VAULT VIA ANSIBLE
DEMO APPLICATION KEY ROTATION
DEMO SECRET LOOKUP
WHAT’S NEXT
● Application Support
● Notifications
● Tests
● External verification of secret inventory and
change date
RESOURCES
ROTATE PASSWORDS WITH ANSIBLE AND HASHIVAULT
http://far-oeuf.com/.../...ansible-hashivault
ANSIBLE LOOKUP PLUGIN FOR HV SECRETS
https://github.com/jhaals/ansible-vault
ANSIBLE MINNEAPOLIS MEETUP
https://www.meetup.com/Ansible-Minneapolis/
@KeithResar
@KeithResar
THANKS!

More Related Content

PPTX
Using Puppet With A Secrets Server
PDF
Recipe for good secrets management
PPTX
Security For Humans
PDF
DerbyCon 2019: Prepare to be Boarded! A Tale of Kubernetes, Plunder, and Cryp...
PPTX
DevSecOps in 10 minutes
PDF
Analyzing Pwned Passwords with Spark and Scala
PDF
Troubleshooting tldr
PPTX
Security Observability for Cloud Based Applications
Using Puppet With A Secrets Server
Recipe for good secrets management
Security For Humans
DerbyCon 2019: Prepare to be Boarded! A Tale of Kubernetes, Plunder, and Cryp...
DevSecOps in 10 minutes
Analyzing Pwned Passwords with Spark and Scala
Troubleshooting tldr
Security Observability for Cloud Based Applications

What's hot (20)

PDF
Analyzing Pwned Passwords with Spark and Scala
PPTX
AWS Security Week | Getting to Continuous Security and Compliance Monitoring ...
PDF
Rootconf admin101
PPTX
Lacework Kubernetes Meetup | August 28, 2018
PDF
All Your Containers Are Belong To Us
PDF
Analyzing Pwned Passwords with Spark - OWASP Meetup July 2018
PDF
Kubernetes meetup k8s_aug_2019
PDF
Serverless DevSecOps: Why We Must Make it Everyone's Problem | Hillel Solow
PDF
Batten Down the Hatches: A Practical Guide to Securing Kubernetes - RMISC 2019
PPTX
PuppetConf 2017: Securing Secrets for Puppet, Without Interrupting Flow- Ryan...
PPTX
ArcherySec 2.0 @ BlackHat Arsenal Europe 2020
PPTX
Archery Open Source Vulnerability Assessment and Management - null Bangalore ...
PPTX
All access demystifying certs
PPTX
hallenges of Monitoring Big Infrastructure - Icinga Camp Milan 2019
PPTX
Archery - BlackHat Asia 2018
PPTX
Lacework | Top 10 Cloud Security Threats
PPTX
Best pratices reliability & scalability on Azure
PPTX
Pacu ~ Rhino Security
PPTX
DevSecOps - CrikeyCon 2017
PPTX
Icinga @ OSMC 2014
Analyzing Pwned Passwords with Spark and Scala
AWS Security Week | Getting to Continuous Security and Compliance Monitoring ...
Rootconf admin101
Lacework Kubernetes Meetup | August 28, 2018
All Your Containers Are Belong To Us
Analyzing Pwned Passwords with Spark - OWASP Meetup July 2018
Kubernetes meetup k8s_aug_2019
Serverless DevSecOps: Why We Must Make it Everyone's Problem | Hillel Solow
Batten Down the Hatches: A Practical Guide to Securing Kubernetes - RMISC 2019
PuppetConf 2017: Securing Secrets for Puppet, Without Interrupting Flow- Ryan...
ArcherySec 2.0 @ BlackHat Arsenal Europe 2020
Archery Open Source Vulnerability Assessment and Management - null Bangalore ...
All access demystifying certs
hallenges of Monitoring Big Infrastructure - Icinga Camp Milan 2019
Archery - BlackHat Asia 2018
Lacework | Top 10 Cloud Security Threats
Best pratices reliability & scalability on Azure
Pacu ~ Rhino Security
DevSecOps - CrikeyCon 2017
Icinga @ OSMC 2014
Ad

Similar to Rotating Passwords With Ansible and HashiVault (20)

PPT
All Change! How the new economics of Cloud will make you think differently ab...
ODP
User Credential handling in Web Applications done right
PDF
Anastasia Vixentael - Don't Waste Time on Learning Cryptography: Better Use I...
PPTX
Zettaset Elastic Big Data Security for Greenplum Database
PPTX
Have I Been Pwned and Cloudflare
PPTX
Password Policies in Oracle Access Manager. How to improve user authenticatio...
PDF
The Emergent Cloud Security Toolchain for CI/CD
PPTX
What’s New in Cloudera Enterprise 6.0: The Inside Scoop 6.14.18
PDF
Big data at AWS Chicago User Group - 2014
PPTX
Password Management System: Enhancing Security and Efficiency
PDF
Keepler | Full-Stack Serverless Applications on GCP
PPTX
HDInsight Interactive Query
PPTX
Compliance Automation with InSpec - Chef NYC Meetup - April 2017
PDF
Serverless Architectures: Ein Survival Guide
PDF
DevOops & How I hacked you DevopsDays DC June 2015
PDF
Eliminating Secret Sprawl in the Cloud with HashiCorp Vault - 07.11.2018
PPTX
Quality code in wordpress
PDF
Introduction to Infrastructure as Code & Automation / Introduction to Chef
PPTX
Password Policies in Oracle Access Manager. How to improve user authenticatio...
PDF
Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...
All Change! How the new economics of Cloud will make you think differently ab...
User Credential handling in Web Applications done right
Anastasia Vixentael - Don't Waste Time on Learning Cryptography: Better Use I...
Zettaset Elastic Big Data Security for Greenplum Database
Have I Been Pwned and Cloudflare
Password Policies in Oracle Access Manager. How to improve user authenticatio...
The Emergent Cloud Security Toolchain for CI/CD
What’s New in Cloudera Enterprise 6.0: The Inside Scoop 6.14.18
Big data at AWS Chicago User Group - 2014
Password Management System: Enhancing Security and Efficiency
Keepler | Full-Stack Serverless Applications on GCP
HDInsight Interactive Query
Compliance Automation with InSpec - Chef NYC Meetup - April 2017
Serverless Architectures: Ein Survival Guide
DevOops & How I hacked you DevopsDays DC June 2015
Eliminating Secret Sprawl in the Cloud with HashiCorp Vault - 07.11.2018
Quality code in wordpress
Introduction to Infrastructure as Code & Automation / Introduction to Chef
Password Policies in Oracle Access Manager. How to improve user authenticatio...
Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...
Ad

More from Keith Resar (7)

PDF
Simple Tips and Tricks with Ansible
PPTX
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
PPTX
Hosting For Your Startup, Side Project, or Big Dollar App - Minnebar 12
PDF
Advanced Use of jinja2 for Templates
PPTX
DevFestMN 2017 - Learning Docker and Kubernetes with Openshift
PDF
Container Storage Best Practices in 2017
PDF
Importing Code and Existing Containers to OpenShift - Minneapolis Docker Meet...
Simple Tips and Tricks with Ansible
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Hosting For Your Startup, Side Project, or Big Dollar App - Minnebar 12
Advanced Use of jinja2 for Templates
DevFestMN 2017 - Learning Docker and Kubernetes with Openshift
Container Storage Best Practices in 2017
Importing Code and Existing Containers to OpenShift - Minneapolis Docker Meet...

Recently uploaded (20)

PDF
Getting Started with Data Integration: FME Form 101
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
project resource management chapter-09.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Approach and Philosophy of On baking technology
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
August Patch Tuesday
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
Getting Started with Data Integration: FME Form 101
Web App vs Mobile App What Should You Build First.pdf
Enhancing emotion recognition model for a student engagement use case through...
A comparative study of natural language inference in Swahili using monolingua...
OMC Textile Division Presentation 2021.pptx
Heart disease approach using modified random forest and particle swarm optimi...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
cloud_computing_Infrastucture_as_cloud_p
Univ-Connecticut-ChatGPT-Presentaion.pdf
project resource management chapter-09.pdf
Chapter 5: Probability Theory and Statistics
Approach and Philosophy of On baking technology
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
August Patch Tuesday
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Hindi spoken digit analysis for native and non-native speakers

Rotating Passwords With Ansible and HashiVault

  • 1. ROTATING PASSWORDS WITH ANSIBLE AND HASHIVAULT OUR PRACTICAL OVERVIEW OF SECRET MANAGEMENT BY INTEGRATING HASHICORP'S VAULT WITH ANSIBLE Keith Resar @KeithResar
  • 2. @KeithResar Keith Resar: Bio Wear many hats @KeithResar Keith.Resar@RedHat.com Coder Open Source Contributor and Advocate Infrastructure Architect
  • 3. 7 PRINCIPLES OF DEVSECOPS ● Humans create poor quality passwords, let’s generate them automatically ● An automated task would allow increased password rotation frequency ● Continuous deployment of password rotations would be ideal ● An automated task can be tested, and will never go beyond its scope ● Storing the password in a shared-secret vault is our break glass ● Integrating with AD would be great, allowing seamless runtime access control ● Passwords should not be stored in Git, deploy scripts, etc
  • 5. ANSIBLE VAULT ENABLES STORING SENSITIVE DATA SUCH AS PASSWORDS OR KEYS IN ENCRYPTED FILES, RATHER THAN AS PLAINTEXT IN YOUR PLAYBOOKS OR ROLES.
  • 6. ANSIBLE VAULT ● No External dependencies ● Encrypt entire files or individual secrets ● Version control, commit alongside playbooks
  • 7. ANSIBLE VAULT USAGE > ansible-vault {create,rekey,edit,encrypt} foo.yml > ansible-playbook foo.yml --ask-vault-pass
  • 8. MOVING BEYOND ANSIBLE VAULT ● Storing static information vs. Dynamic database ● Separation of automation from secrets ● Supporting password leases
  • 14. WHAT’S NEXT ● Application Support ● Notifications ● Tests ● External verification of secret inventory and change date
  • 15. RESOURCES ROTATE PASSWORDS WITH ANSIBLE AND HASHIVAULT http://far-oeuf.com/.../...ansible-hashivault ANSIBLE LOOKUP PLUGIN FOR HV SECRETS https://github.com/jhaals/ansible-vault ANSIBLE MINNEAPOLIS MEETUP https://www.meetup.com/Ansible-Minneapolis/