SlideShare a Scribd company logo
Encrypting sensitive
data for Puppet
Simon Hildrew!
The Guardian
@sihil
WHY BOTHER
It’ll only come back and slap you in the face
Encrypting sensitive data for puppet
http://www.flickr.com/photos/35211570@N00/3144456275
Shared
Puppet

Sensitive
Puppet

Merge to
puppet
masters
Shared
Puppet

puppet master

private key
first stop: hiera-gpg
--db-host:
db.internal.gnm
username: cheese
password: wensleydale

vs.

<85>^A^L^C<96><AB>e2*<E0>
2^A^G<FE>:<8A><8C>c!
<E5><C8><C0><88><B5><B1>2
<91>K<F5><8F><9E>w<A5><C9
><FB>^Y<93>'_<C5>H<C7>f<A
1><FC>V1]<EC>^D<DD>I<B8><
81><96><FD><AA>Q<D6>w8<DD
>~Q[H^M<88>r<E4>i<F2>^AZ8
^E<C1><AF>^E<C5><DE>'2EL<
A4>=<9D><FF><8B><BB>c:AW*
C<C0><8A><CE><CD>S<F4>b09
^Ca+<E0><D8>/
<85><F7><8D>N<D9>R<9E>c<F
4><93>$<AF>^L<CA><E0>7
http://www.flickr.com/photos/31348155@N03/7028040701

http://www.flickr.com/photos/9763931@N04/5443386117

$ git diff 0bdc4ea33 cat.jpeg
Binary files a/cat.jpeg and b/cat.jpeg differ
Encrypting sensitive data for puppet
hiera-eyaml
--plain-property: You can see me
encrypted-property: >

ENC[PKCS7,Y22exl+OvjDe+drmik2XEeD3VQtl1uZJXFFF2NnrMXDWx0csyqLB/2NOWefv

NBTZfOlPvMlAesyr4bUY4I5XeVbVk38XKxeriH69EFAD4CahIZlC8lkE/uDh

jJGQfh052eonkungHIcuGKY/5sEbbZl/qufjAtp/ufor15VBJtsXt17tXP4y

l5ZP119Fwq8xiREGOL0lVvFYJz2hZc1ppPCNG5lwuLnTekXN/OazNYpf4CMd

/HjZFXwcXRtTlzewJLc+/gox2IfByQRhsI/AgogRfYQKocZgFb/DOZoXR7wm

IZGeunzwhqfmEtGiqpvJJQ5wVRdzJVpTnANBA5qxeA==]
$ eyaml decrypt -e test.eyaml
---

plain-property: You can see me

encrypted-property: >

DEC::PKCS7[You can’t see me without a key]!
$ eyaml edit test.eyaml
Encrypting sensitive data for puppet
Encrypting sensitive data for puppet
Encrypting sensitive data for puppet
--plain-property: You can see me
encrypted-property: >
ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAw
DQYJKoZIhvcNAQEBBQAEggEAxqeLyrOtMJy392yNwpNUKPIJ441SRVAMNi84
wEGZVc9TIsRkWmMJGxpe+jy9edqnl552pbmD+B5ecfYQ5dehDVeos2CzFrMo
CAV+qqvYml1nkbiBdPreZeUVZCLQLOw9I03z+iSEokGUy0x9702zjjK1mafq
HWC/ClzdZh1UGxd+1hyGrw/dDOVsZqdLT1bWT+MT5BiyVlmeHFDMy7XFuJkg
ER73t1WOC0sOrWwua37yKneDA/J5sFYrRypVD+QKLoFMtgxYYBldcenn+whB
EJkMNrVTJzGkzo9HPaZ/dJFvBVGPDo6MxRqMFf2Tx/3Mq7bq6Ckoa6PNQiEz
4BS88TBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBAvO3CeT6tosqRc8Vuu
fOo3gCB5JxY9ihIbnUJJl0Iuw0qeS6UsqKJ7HSst6+qRH90t5w==]
new-encrypted-property: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQY

JKoZIhvcNAQEBBQAEggEAK7otMYeHetnvkQVXQkjedR/2bXSA6KlDlI7rFBsrXpwsj5A8UBo8N3t5MgKx6kMPQN6T3ILNBA/1

k7HFhRAsd5biJ2g1Y4NO8iS7Jedm+zlZ6MQPK0NNtU3+hNHYUfv63jmqKMb9GWswTPaS6fTiWz/+mLl1chWBuK9BW9b6xW6Ob

OxmK4kYf9xOo7w+OrJy02j4zLNVqCzOrb1zge5GvYmH1n+IncBz1WyPAoWJEjnFD1X6fdO32ulN1IYLzUSXkSVAASeN5Hb00/

8GRtyQE1hNeS4ea640n/yHidGH3uTGnjNU9QoIqX7Yaqnpc/4E8WWY975gICNeFO/PBN1kLzBMBgkqhkiG9w0BBwEwHQYJYIZ

IAWUDBAEqBBDmVUe4sJBuxBVvmPAQcIhngCBx3IP8BWsyypcX3q8rRql3/GwPHeJ5moe6Mt1KEMcWpw==]
$ git diff a946fd1906c2fb0e489d60a9700b4c4d5a4a21ec test.eyaml
index b94910e..5c8508a 100644
--- a/test.eyaml
+++ b/test.eyaml
@@ -10,3 +10,4 @@
EJkMNrVTJzGkzo9HPaZ/dJFvBVGPDo6MxRqMFf2Tx/3Mq7bq6Ckoa6PNQiEz
4BS88TBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBAvO3CeT6tosqRc8Vuu
fOo3gCB5JxY9ihIbnUJJl0Iuw0qeS6UsqKJ7HSst6+qRH90t5w==]
+new-encrypted-property: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEh
hiera-eyaml-gpg
list of GPG
recipients for
encrypting eyaml
files
That’s all
More info at https://github.com/TomPoulton/hiera-eyaml
!

Let us know if you use it and please do make pull
requests.

More Related Content

PDF
4 multi pump systems off grid water papa ram pump
PDF
papa pump off grid water pump far away from public utilities - papa ram pump
PDF
Alimentos suplementarios-para-rumiantes
PDF
Know007
PDF
Know006
PDF
Determinacion minimos cuadrados
PPTX
Grade 4 math graphic
PDF
Dossier Presentación del Albergue El Último Bucardo
4 multi pump systems off grid water papa ram pump
papa pump off grid water pump far away from public utilities - papa ram pump
Alimentos suplementarios-para-rumiantes
Know007
Know006
Determinacion minimos cuadrados
Grade 4 math graphic
Dossier Presentación del Albergue El Último Bucardo

What's hot (18)

PDF
Dec 2090 honorarios sca
PDF
[NUGU Conference 2018] 세션 B-5 : TTS & SKML 소개
PDF
Plan1
PDF
Tlwin.moemaka.1
PDF
Ugly Duck Clothing UK eBay Store
PDF
Vetiver taludes australia paultroung
PDF
Ugly Duck Clothing Ebay Listing Template Design
PDF
Homophones
PDF
Attention-Based Adaptive Selection of Operations for Image Restoration in the...
PDF
july release (1)lt prep satchel paige atl
PDF
En planning 13 - 19 juillet
PDF
A research paper introduction of Universal transformers
PDF
How to make Halloween more accessible for kids with special needs macaroni kid
PDF
1 teste 5ano1
PDF
Toan t1 chuong 5-tich_phan_motbien_4
PDF
Radyoaktivite
PDF
Ppt emco product
Dec 2090 honorarios sca
[NUGU Conference 2018] 세션 B-5 : TTS & SKML 소개
Plan1
Tlwin.moemaka.1
Ugly Duck Clothing UK eBay Store
Vetiver taludes australia paultroung
Ugly Duck Clothing Ebay Listing Template Design
Homophones
Attention-Based Adaptive Selection of Operations for Image Restoration in the...
july release (1)lt prep satchel paige atl
En planning 13 - 19 juillet
A research paper introduction of Universal transformers
How to make Halloween more accessible for kids with special needs macaroni kid
1 teste 5ano1
Toan t1 chuong 5-tich_phan_motbien_4
Radyoaktivite
Ppt emco product
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Building Integrated photovoltaic BIPV_UPV.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
sap open course for s4hana steps from ECC to s4
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
Ad

Encrypting sensitive data for puppet