hiera-eyaml 1.1.4 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +28 -0
- data/PLUGINS.md +4 -0
- data/README.md +51 -41
- data/bin/eyaml +9 -357
- data/features/decrypts.feature +44 -0
- data/features/edit.feature +54 -0
- data/features/encrypts.feature +26 -0
- data/features/keys.feature +13 -0
- data/features/outputs.feature +30 -0
- data/features/plugin.feature +35 -0
- data/features/plugin_api.feature +16 -0
- data/features/puppet.feature +15 -0
- data/features/sandbox/convert_decrypted_values_to_uppercase.sh +2 -0
- data/features/sandbox/keys/private_key.pkcs7.pem +27 -0
- data/features/sandbox/keys/public_key.pkcs7.pem +18 -0
- data/features/sandbox/pipe_string.sh +5 -0
- data/features/sandbox/puppet/environments/local/test.eyaml +3 -0
- data/features/sandbox/puppet/hiera.yaml +17 -0
- data/features/sandbox/puppet/manifests/init.pp +3 -0
- data/features/sandbox/puppet/modules/test/manifests/init.pp +18 -0
- data/features/sandbox/puppet/puppet.conf +6 -0
- data/features/sandbox/supply_password.sh +7 -0
- data/features/sandbox/test_input.bin +0 -0
- data/features/sandbox/test_input.encrypted.txt +1 -0
- data/features/sandbox/test_input.txt +3 -0
- data/features/sandbox/test_input.yaml +114 -0
- data/features/step_definitions/environment_overrides.rb +3 -0
- data/features/support/env.rb +26 -0
- data/features/support/setup_sandbox.rb +21 -0
- data/features/valid_encryption.feature +12 -0
- data/hiera-eyaml.gemspec +1 -1
- data/lib/hiera/backend/eyaml.rb +19 -0
- data/lib/hiera/backend/eyaml/CLI.rb +110 -0
- data/lib/hiera/backend/eyaml/actions/createkeys_action.rb +24 -0
- data/lib/hiera/backend/eyaml/actions/decrypt_action.rb +67 -0
- data/lib/hiera/backend/eyaml/actions/edit_action.rb +47 -0
- data/lib/hiera/backend/eyaml/actions/encrypt_action.rb +80 -0
- data/lib/hiera/backend/eyaml/encryptor.rb +71 -0
- data/lib/hiera/backend/eyaml/encryptors/pkcs7.rb +99 -0
- data/lib/hiera/backend/eyaml/options.rb +32 -0
- data/lib/hiera/backend/eyaml/plugins.rb +65 -0
- data/lib/hiera/backend/eyaml/utils.rb +83 -0
- data/lib/hiera/backend/eyaml_backend.rb +108 -113
- data/sublime_text/README.md +16 -0
- data/sublime_text/eyaml.sublime-package +0 -0
- data/sublime_text/eyaml.syntax_definition.json +288 -0
- data/{bin → tools}/regem.sh +1 -1
- metadata +71 -7
- data/keys/.keepme +0 -0
- data/lib/hiera/backend/version.rb +0 -7
@@ -0,0 +1,44 @@
|
|
1
|
+
Feature: eyaml decrypting
|
2
|
+
|
3
|
+
In order to decrypt data
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to decrypt data in various ways
|
6
|
+
|
7
|
+
Scenario: decrypt a simple string
|
8
|
+
When I run `eyaml -d -s 'ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAJsIbL+DE4b5mbT4ozzsGximhweXkJakBXRNqi/TOBV5RnMjlAhik2NQGyZdrg4fmQynyQvI7lKPos5bmqT6Ltk0XxfL0l1x8MIdVLDu7JG72a+5bbU7EK/PlhwaeJ0QpnA0M34koNykSmcvdVUoIDag71lqw4Hmk8JQuXmo95gP0sXHvlahgxR522Z8MTEitfimtZPnHJVMjQEnBHIwXLkEfqUHH3RciED3AkeU+En63Ou7Nq1SqoC4ln0oL1L2gRqsyEKWF/cigcZfAggh9rva6wlthh+Fj7yJy7ALVG/AXwrF1sJfTR31+RMbzPbgOHXES8P4yQvQnx6LNUSKAgDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCSuNScp5k8F0RKt63fkoPrgCBYbnl44Wdv5mtaJmJcc0WIUcLTpixl1IY2uQ7IiI358w==]'`
|
9
|
+
Then the output should match /^one flew over the cuckoos nest$/
|
10
|
+
|
11
|
+
Scenario: decrypt a default encryption string
|
12
|
+
When I run `eyaml -d -s 'ENC[MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAJsIbL+DE4b5mbT4ozzsGximhweXkJakBXRNqi/TOBV5RnMjlAhik2NQGyZdrg4fmQynyQvI7lKPos5bmqT6Ltk0XxfL0l1x8MIdVLDu7JG72a+5bbU7EK/PlhwaeJ0QpnA0M34koNykSmcvdVUoIDag71lqw4Hmk8JQuXmo95gP0sXHvlahgxR522Z8MTEitfimtZPnHJVMjQEnBHIwXLkEfqUHH3RciED3AkeU+En63Ou7Nq1SqoC4ln0oL1L2gRqsyEKWF/cigcZfAggh9rva6wlthh+Fj7yJy7ALVG/AXwrF1sJfTR31+RMbzPbgOHXES8P4yQvQnx6LNUSKAgDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCSuNScp5k8F0RKt63fkoPrgCBYbnl44Wdv5mtaJmJcc0WIUcLTpixl1IY2uQ7IiI358w==]'`
|
13
|
+
Then the output should match /^one flew over the cuckoos nest$/
|
14
|
+
|
15
|
+
Scenario: decrypt an encrypted file
|
16
|
+
When I run `eyaml -d -f test_input.encrypted.txt`
|
17
|
+
Then the output should match /^danger will robinson$/
|
18
|
+
|
19
|
+
Scenario: decrypt an eyaml file
|
20
|
+
When I run `eyaml -d -y test_input.yaml`
|
21
|
+
Then the output should match /encrypted_string: DEC::PKCS7\[planet of the apes\]\!/
|
22
|
+
And the output should match /encrypted_block: >\n\s+DEC::PKCS7\[gangs of new york\]\!/
|
23
|
+
And the output should match /\- DEC::PKCS7\[apocalypse now\]\!/
|
24
|
+
And the output should match /\- DEC::PKCS7\[the count of monte cristo\]\!/
|
25
|
+
And the output should match /\- array4/
|
26
|
+
And the output should match /\- DEC::PKCS7\[dr strangelove\]\!/
|
27
|
+
And the output should match /\- array5/
|
28
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[kramer vs kramer\]\!/
|
29
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[the manchurian candidate\]\!/
|
30
|
+
And the output should match /\- >\n\s+tomorrow and tomorrow and\s*\n\s+tomorrow creeps/
|
31
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[much ado about nothing\]\!/
|
32
|
+
And the output should match /\- >\n\s+when shall we three meet again\n\s+in thunder/
|
33
|
+
And the output should match /\- DEC::PKCS7\[the english patient\]\!/
|
34
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[the pink panther\]\!/
|
35
|
+
And the output should match /\- >\n\s+i wondered lonely\s*\n\s+as a cloud/
|
36
|
+
And the output should match /\s+key5: DEC::PKCS7\[value5\]\!/
|
37
|
+
And the output should match /\s+key6: DEC::PKCS7\[value6\]\!/
|
38
|
+
|
39
|
+
Scenario: decrypt using STDIN
|
40
|
+
When I run `./pipe_string.sh ENC[MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAJsIbL+DE4b5mbT4ozzsGximhweXkJakBXRNqi/TOBV5RnMjlAhik2NQGyZdrg4fmQynyQvI7lKPos5bmqT6Ltk0XxfL0l1x8MIdVLDu7JG72a+5bbU7EK/PlhwaeJ0QpnA0M34koNykSmcvdVUoIDag71lqw4Hmk8JQuXmo95gP0sXHvlahgxR522Z8MTEitfimtZPnHJVMjQEnBHIwXLkEfqUHH3RciED3AkeU+En63Ou7Nq1SqoC4ln0oL1L2gRqsyEKWF/cigcZfAggh9rva6wlthh+Fj7yJy7ALVG/AXwrF1sJfTR31+RMbzPbgOHXES8P4yQvQnx6LNUSKAgDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCSuNScp5k8F0RKt63fkoPrgCBYbnl44Wdv5mtaJmJcc0WIUcLTpixl1IY2uQ7IiI358w==] eyaml -d --stdin`
|
41
|
+
Then the output should match /^one flew over the cuckoos nest$/
|
42
|
+
|
43
|
+
|
44
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Feature: eyaml editing
|
2
|
+
|
3
|
+
In order to edit encrypted data
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to edit data in various ways
|
6
|
+
|
7
|
+
Scenario: decrypt an eyaml file
|
8
|
+
Given my EDITOR is set to "/bin/cat"
|
9
|
+
When I run `bash -c 'cp test_input.yaml test_input.eyaml'`
|
10
|
+
When I run `eyaml -i test_input.eyaml`
|
11
|
+
Then the output should match /encrypted_string: DEC::PKCS7\[planet of the apes\]\!/
|
12
|
+
And the output should match /encrypted_default_encryption_string: DEC::PKCS7\[planet of the apes\]\!/
|
13
|
+
And the output should match /encrypted_block: >\n\s+DEC::PKCS7\[gangs of new york\]\!/
|
14
|
+
And the output should match /encrypted_default_encryption_block: >\n\s+DEC::PKCS7\[gangs of new york\]\!/
|
15
|
+
And the output should match /\- DEC::PKCS7\[apocalypse now\]\!/
|
16
|
+
And the output should match /\- DEC::PKCS7\[the count of monte cristo\]\!/
|
17
|
+
And the output should match /\- array4/
|
18
|
+
And the output should match /\- DEC::PKCS7\[dr strangelove\]\!/
|
19
|
+
And the output should match /\- array5/
|
20
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[kramer vs kramer\]\!/
|
21
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[the manchurian candidate\]\!/
|
22
|
+
And the output should match /\- >\n\s+tomorrow and tomorrow and\s*\n\s+tomorrow creeps/
|
23
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[much ado about nothing\]\!/
|
24
|
+
And the output should match /\- >\n\s+when shall we three meet again\n\s+in thunder/
|
25
|
+
And the output should match /\- DEC::PKCS7\[the english patient\]\!/
|
26
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[the pink panther\]\!/
|
27
|
+
And the output should match /\- >\n\s+i wondered lonely\s*\n\s+as a cloud/
|
28
|
+
And the output should match /\s+key5: DEC::PKCS7\[value5\]\!/
|
29
|
+
And the output should match /\s+key6: DEC::PKCS7\[value6\]\!/
|
30
|
+
And the output should match /multi_encryption: DEC::PLAINTEXT\[jammy\]\! DEC::PKCS7\[dodger\]!/
|
31
|
+
|
32
|
+
Scenario: decrypt and reencrypt an eyaml file
|
33
|
+
Given my EDITOR is set to "./convert_decrypted_values_to_uppercase.sh"
|
34
|
+
When I run `bash -c 'cp test_input.yaml test_input.eyaml'`
|
35
|
+
When I run `eyaml -i test_input.eyaml`
|
36
|
+
When I run `eyaml -d -y test_input.eyaml`
|
37
|
+
Then the output should match /encrypted_string: DEC::PKCS7\[PLANET OF THE APES\]\!/
|
38
|
+
And the output should match /encrypted_block: >\n\s+DEC::PKCS7\[GANGS OF NEW YORK\]\!/
|
39
|
+
And the output should match /\- DEC::PKCS7\[APOCALYPSE NOW\]\!/
|
40
|
+
And the output should match /\- DEC::PKCS7\[THE COUNT OF MONTE CRISTO\]\!/
|
41
|
+
And the output should match /\- array4/
|
42
|
+
And the output should match /\- DEC::PKCS7\[DR STRANGELOVE\]\!/
|
43
|
+
And the output should match /\- array5/
|
44
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[KRAMER VS KRAMER\]\!/
|
45
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[THE MANCHURIAN CANDIDATE\]\!/
|
46
|
+
And the output should match /\- >\n\s+tomorrow and tomorrow and\s*\n\s+tomorrow creeps/
|
47
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[MUCH ADO ABOUT NOTHING\]\!/
|
48
|
+
And the output should match /\- >\n\s+when shall we three meet again\n\s+in thunder/
|
49
|
+
And the output should match /\- DEC::PKCS7\[THE ENGLISH PATIENT\]\!/
|
50
|
+
And the output should match /\- >\n\s+DEC::PKCS7\[THE PINK PANTHER\]\!/
|
51
|
+
And the output should match /\- >\n\s+i wondered lonely\s*\n\s+as a cloud/
|
52
|
+
And the output should match /\s+key5: DEC::PKCS7\[VALUE5\]\!/
|
53
|
+
And the output should match /\s+key6: DEC::PKCS7\[VALUE6\]\!/
|
54
|
+
And the output should match /multi_encryption: DEC::PLAINTEXT\[JAMMY\]\! DEC::PKCS7\[DODGER\]\!/
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Feature: eyaml encrypting
|
2
|
+
|
3
|
+
In order to encrypt data
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to encrypt data in various ways
|
6
|
+
|
7
|
+
Scenario: encrypt a simple string
|
8
|
+
When I run `eyaml -e -o string -s some_string`
|
9
|
+
Then the output should match /ENC\[PKCS7,(.*?)\]$/
|
10
|
+
|
11
|
+
Scenario: encrypt a simple file
|
12
|
+
When I run `eyaml -e -o string -f test_input.txt`
|
13
|
+
Then the output should match /ENC\[PKCS7,(.*?)\]$/
|
14
|
+
|
15
|
+
Scenario: encrypt a binary file
|
16
|
+
When I run `eyaml -e -o string -f test_input.bin`
|
17
|
+
Then the output should match /ENC\[PKCS7,(.*?)\]$/
|
18
|
+
|
19
|
+
Scenario: encrypt a password
|
20
|
+
When I run `./supply_password.sh eyaml -e -o string -p`
|
21
|
+
Then the file "password.output" should match /ENC\[PKCS7,(.*?)\]/
|
22
|
+
|
23
|
+
Scenario: encrypt using STDIN
|
24
|
+
When I run `./pipe_string.sh encrypt_me eyaml -e -o string --stdin`
|
25
|
+
Then the output should match /ENC\[PKCS7,(.*?)\]$/
|
26
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Feature: eyaml key generation
|
2
|
+
|
3
|
+
In order to encrypt data with various encryption methods
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to generate keys and certs
|
6
|
+
|
7
|
+
Scenario: create some pkcs7 keys
|
8
|
+
When I run `eyaml -c --pkcs7-public-key keys/new_public_key.pem --pkcs7-private-key keys/new_private_key.pem`
|
9
|
+
Then the output should match /Keys created OK/
|
10
|
+
|
11
|
+
Scenario: create some plaintext keys
|
12
|
+
When I run `eyaml -n plaintext -c`
|
13
|
+
Then the output should match /success/
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Feature: eyaml outputs
|
2
|
+
|
3
|
+
In order to better understand the link between eyaml and yaml files
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to output encrypted data in various yaml formats
|
6
|
+
|
7
|
+
|
8
|
+
Scenario: encrypt a simple string with default output
|
9
|
+
When I run `eyaml -e -s some_string`
|
10
|
+
Then the output should match /string: ENC\[PKCS7,(.*?)\]/
|
11
|
+
And the output should match /block: >\s*\n\s*ENC\[PKCS7,(.*?)\]/
|
12
|
+
|
13
|
+
Scenario: encrypt a simple string with examples output
|
14
|
+
When I run `eyaml -e -o examples -s some_string`
|
15
|
+
Then the output should match /string: ENC\[PKCS7,(.*?)\]/
|
16
|
+
And the output should match /block: >\s*\n\s*ENC\[PKCS7,(.*?)\]/
|
17
|
+
|
18
|
+
Scenario: encrypt a simple string with string output
|
19
|
+
When I run `eyaml -e -o string -s some_string`
|
20
|
+
Then the output should match /^ENC\[PKCS7,(.*?)\]$/
|
21
|
+
|
22
|
+
Scenario: encrypt a simple string with raw output
|
23
|
+
When I run `eyaml -e -o raw -s some_string`
|
24
|
+
Then the output should match /^ENC\[PKCS7,(.*?)\]$/
|
25
|
+
And the output should contain "\n"
|
26
|
+
|
27
|
+
Scenario: encrypt a simple string with block output
|
28
|
+
When I run `eyaml -e -o block -s some_string`
|
29
|
+
Then the output should match /^\s+ENC\[PKCS7,(.*?)\]$/
|
30
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Feature: eyaml plugins
|
2
|
+
|
3
|
+
In order to encrypt data with various encryption methods
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to encrypt data in various ways
|
6
|
+
|
7
|
+
Scenario: encrypt using plaintext plugin
|
8
|
+
When I run `eyaml -e -n plaintext -o string -s hello`
|
9
|
+
Then the output should match /ENC\[PLAINTEXT,(.*?)\]$/
|
10
|
+
|
11
|
+
Scenario: decrypt using plaintext plugin
|
12
|
+
When I run `eyaml -d -n plaintext -s 'ENC[PLAINTEXT,aGVsbG8=]'`
|
13
|
+
Then the output should match /^hello$/
|
14
|
+
|
15
|
+
Scenario: decrypt using inferred plugin
|
16
|
+
When I run `eyaml -d -s 'ENC[PLAINTEXT,aGVsbG8=]'`
|
17
|
+
Then the output should match /^hello$/
|
18
|
+
|
19
|
+
Scenario: decrypt using forced plaintext plugin
|
20
|
+
When I run `eyaml -d -n plaintext -s 'ENC[aGVsbG8=]'`
|
21
|
+
Then the output should match /^hello$/
|
22
|
+
|
23
|
+
Scenario: decrypt using two plugins
|
24
|
+
When I run `eyaml -d -s 'ENC[PLAINTEXT,cmVkIGxvcnJ5IA==]ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAaezXCbx6WspcsKsCkgr9thLEckRppDvQyFloAHqswDNXllHxTSJDYlyoi96YvO96wazffdWO05TMs7HmkqJHkRzoTLGTdXSMz2Mu14QkUDe0zZyB0hl8qTbTcHzrw3ybUEJZEZ45Eenmr5VKuoBina7XJdIAXW8Ps4L/Dj7zsXlUxuyjDWu2WUd2X4gxO3W1SGfntk4OQ41NKXYKPIZLAXWMjC4VFh20tKXFwYhCpAanTBRNWgLBX3Dwg+c/l35EW8OQLfdaOQ30R/DgcoSsAZJveH3xqBv7UOes7vONLSYXTek6yFJBll7EuGbA/Mdw4gxd1qtCBdf48IiPPR0peTA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCNWcGBqa8joAd0RMRzvx9VgBAf6PsvDZEa5cWdBaoTM/lP]'`
|
25
|
+
Then the output should match /^red lorry blue lorry/
|
26
|
+
|
27
|
+
Scenario: decrypt using two plugins with default plaintext
|
28
|
+
When I run `eyaml -d -n plaintext -s 'ENC[cmVkIGxvcnJ5IA==]ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAaezXCbx6WspcsKsCkgr9thLEckRppDvQyFloAHqswDNXllHxTSJDYlyoi96YvO96wazffdWO05TMs7HmkqJHkRzoTLGTdXSMz2Mu14QkUDe0zZyB0hl8qTbTcHzrw3ybUEJZEZ45Eenmr5VKuoBina7XJdIAXW8Ps4L/Dj7zsXlUxuyjDWu2WUd2X4gxO3W1SGfntk4OQ41NKXYKPIZLAXWMjC4VFh20tKXFwYhCpAanTBRNWgLBX3Dwg+c/l35EW8OQLfdaOQ30R/DgcoSsAZJveH3xqBv7UOes7vONLSYXTek6yFJBll7EuGbA/Mdw4gxd1qtCBdf48IiPPR0peTA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCNWcGBqa8joAd0RMRzvx9VgBAf6PsvDZEa5cWdBaoTM/lP]'`
|
29
|
+
Then the output should match /^red lorry blue lorry/
|
30
|
+
|
31
|
+
Scenario: decrypt using two plugins with default pkcs7
|
32
|
+
When I run `eyaml -d -n pkcs7 -s 'ENC[PLAINTEXT,cmVkIGxvcnJ5IA==]ENC[MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAaezXCbx6WspcsKsCkgr9thLEckRppDvQyFloAHqswDNXllHxTSJDYlyoi96YvO96wazffdWO05TMs7HmkqJHkRzoTLGTdXSMz2Mu14QkUDe0zZyB0hl8qTbTcHzrw3ybUEJZEZ45Eenmr5VKuoBina7XJdIAXW8Ps4L/Dj7zsXlUxuyjDWu2WUd2X4gxO3W1SGfntk4OQ41NKXYKPIZLAXWMjC4VFh20tKXFwYhCpAanTBRNWgLBX3Dwg+c/l35EW8OQLfdaOQ30R/DgcoSsAZJveH3xqBv7UOes7vONLSYXTek6yFJBll7EuGbA/Mdw4gxd1qtCBdf48IiPPR0peTA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCNWcGBqa8joAd0RMRzvx9VgBAf6PsvDZEa5cWdBaoTM/lP]'`
|
33
|
+
Then the output should match /^red lorry blue lorry/
|
34
|
+
|
35
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Feature: eyaml plugin api
|
2
|
+
|
3
|
+
In order to develop new encryption plugins for eyaml
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to use the eyaml tool to exercise the encryption plugins in various ways
|
6
|
+
|
7
|
+
Scenario: verify plugin options are available in eyaml
|
8
|
+
When I run `eyaml --help`
|
9
|
+
Then the output should match /plaintext-diagnostic-message/
|
10
|
+
And the output should match /pkcs7-private-key/
|
11
|
+
And the output should match /pkcs7-public-key/
|
12
|
+
|
13
|
+
Scenario: exercise plugin options for a plugin
|
14
|
+
When I run `eyaml -n plaintext -c --plaintext-diagnostic-message marker12345`
|
15
|
+
Then the output should match /Create_keys: marker12345/
|
16
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Feature: eyaml hiera integration
|
2
|
+
|
3
|
+
In order to use eyaml as a hiera plugin
|
4
|
+
As a developer using hiera-eyaml
|
5
|
+
I want to verify that hiera-eyaml works within puppet and hiera
|
6
|
+
|
7
|
+
Scenario: verify puppet3 with hiera can use hiera-eyaml to decrypt data
|
8
|
+
When I run `rm -f /tmp/eyaml_puppettest.1 /tmp/eyaml_puppettest.2 /tmpeyaml_puppettest.3 2>/dev/null`
|
9
|
+
When I run `puppet apply --confdir ./puppet --node_name_value localhost puppet/manifests/init.pp`
|
10
|
+
When I run `cat /tmp/eyaml_puppettest.1`
|
11
|
+
Then the output should match /good night/
|
12
|
+
When I run `cat /tmp/eyaml_puppettest.2`
|
13
|
+
Then the output should match /and good luck/
|
14
|
+
When I run `cat /tmp/eyaml_puppettest.3`
|
15
|
+
Then the output should match /and good luck/
|
@@ -0,0 +1,27 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIEowIBAAKCAQEA0kX0qkf4FOHXuFqlVmbgo+UDrJdneH8XnmWM+stAs0XpzEQq
|
3
|
+
ErelZUhEi2x5z16RAsEw3cjd2BG78WHz1lcu3NP25BM990YQDl6e9pvmeMNA+wCK
|
4
|
+
1bwD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U5VNDy5Lanh3y8S2XwCJpjArhEcJNfwrf4yz3luQcKD3x91FR3NUYPjJOiTHl9lzxEJm4Mod7ioSj62FcP79qgULWqTKpxMpG4LPwCo/J84jhTkl+fhL/Bs/tmujgpLqBO000kdg4ZmrYrwYqpK6vgcFzVtZJEB3Tq8nXD9hSuAzA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBBFKh+qgHj0ajgtgpsFq5NEgBB/nP/DgjeKtd+D2MX6sOTv]
|
3
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
:backends:
|
3
|
+
- yaml
|
4
|
+
- eyaml
|
5
|
+
|
6
|
+
:hierarchy:
|
7
|
+
- environments/%{environment}/%{module_name}
|
8
|
+
|
9
|
+
:yaml:
|
10
|
+
:datadir: ./puppet
|
11
|
+
|
12
|
+
:logger: console
|
13
|
+
|
14
|
+
:eyaml:
|
15
|
+
:datadir: ./puppet
|
16
|
+
:pkcs7_private_key: ./keys/private_key.pkcs7.pem
|
17
|
+
:pkcs7_public_key: ./keys/public_key.pkcs7.pem
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class test::run {
|
2
|
+
|
3
|
+
file { "/tmp/eyaml_puppettest.1":
|
4
|
+
ensure => present,
|
5
|
+
content => hiera("plaintext_string"),
|
6
|
+
}
|
7
|
+
|
8
|
+
file { "/tmp/eyaml_puppettest.2":
|
9
|
+
ensure => present,
|
10
|
+
content => hiera("encrypted_string"),
|
11
|
+
}
|
12
|
+
|
13
|
+
file { "/tmp/eyaml_puppettest.3":
|
14
|
+
ensure => present,
|
15
|
+
content => inline_template("<%= scope.function_hiera(['encrypted_string']) %>"),
|
16
|
+
}
|
17
|
+
|
18
|
+
}
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAgO8TSTj+8D1EyN7T1p2a7Y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Nx+PAJswsFAV4DOCbXdf2BisyYbM3na35MVfyb6ggDegrE
|
18
|
+
ebOxxDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCWeGlYS5cQoX78L6LK
|
19
|
+
/mczgCD/pI7usp1XPebnN8CngxHXuUjj5S+6IUpOW6l2JgUeWw==]
|
20
|
+
|
21
|
+
encrypted_default_encryption_block: >
|
22
|
+
ENC[MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAw
|
23
|
+
DQYJKoZIhvcNAQEBBQAEggEAYzeWn3MBLhOs4hokxMCWcDd9VuwCylQRUQ0w
|
24
|
+
KwCObeORw8PJkCDvi5ZIA2YkrvYTT6u3/7KfAiHd0Rg1WLb9et0Mg/Fd3DFF
|
25
|
+
7qhqOGHoQt3+4eKzlcikeR0/Lqrq2vTpqZ2Sw1CZ7Dn+Z4ll95p7lp97rb2J
|
26
|
+
kYTVroLYGWEcsS3JZLL4/l3z0bJbXNKKqJ1aHCAFq+wmWXeb6cDvvyHFg2N/
|
27
|
+
vGPFEQjP7AbWhxHxXDbYIGcU073u5NtE40JXL8SH82iHxqRF8s9g6Dh5cmjg
|
28
|
+
AY2pkBD9e6N78NNx+PAJswsFAV4DOCbXdf2BisyYbM3na35MVfyb6ggDegrE
|
29
|
+
ebOxxDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCWeGlYS5cQoX78L6LK
|
30
|
+
/mczgCD/pI7usp1XPebnN8CngxHXuUjj5S+6IUpOW6l2JgUeWw==]
|
31
|
+
|
32
|
+
simple_array:
|
33
|
+
- array1
|
34
|
+
- array2
|
35
|
+
- array3
|
36
|
+
|
37
|
+
encrypted_array_with_strings:
|
38
|
+
- ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAPBII8uG/2up91TFBV4Ro5h7qkSlREXyiABQtIjfmR+hw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I6aP6LQrPU20ZmGApzw==]
|
57
|
+
- >
|
58
|
+
ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAw
|
59
|
+
DQYJKoZIhvcNAQEBBQAEggEALr1EHJG+jshOtmsxWVdnu/rtJuWiz3f6sO0F
|
60
|
+
x4or64faJpt6IvOMrY1VLMl72QNVGW5EZueh0uM9vgfhOXCMV42LGO6O0qXM
|
61
|
+
AmYyVL/07SomaXDuOTFuufdyScOYIj4xUxXPSIQPNZ3bef92K9UPh8HADXY9
|
62
|
+
2kxWVF2KQAkyzHpz0c0cuQjButz77oAYbyzN4l/l/o0X5teTrU5Ghly4i1c/
|
63
|
+
6KMn0eFZKY/midRePg8xXkkVCzlyS83dfmJOHboe7cw8t21q40od0+1H6AwF
|
64
|
+
WqhGAYW4qlQmj/x9ymXv9dxj8kYOmtL4x9eefZppCfwMmk6gSKnURTBe/Do2
|
65
|
+
QLWU3jBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBBUFtWWAaIlqDWgOofQ
|
66
|
+
/jpLgCDXTSezJvwONiokkl3MHryu/xsAlMGLyd4fDUC1XPQsRA==]
|
67
|
+
|
68
|
+
mixed_array_with_blocks:
|
69
|
+
- >
|
70
|
+
tomorrow and tomorrow and
|
71
|
+
tomorrow creeps in this petty
|
72
|
+
pace
|
73
|
+
- >
|
74
|
+
ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAw
|
75
|
+
DQYJKoZIhvcNAQEBBQAEggEAj9R0rZ98jseASAthfPUflx1oj2bNmOoCkfv9
|
76
|
+
H9PpsQnr4NzqrTpYLAX72sewLD2GZYAA61ukb8Z6KRjNg6iSTZjYuRA7jhRc
|
77
|
+
QV6NJ3KgYI7w4RJs4lUvYOIgZe6MwXjPDeoEaSTDDaee5pld5AT//MNXtPgp
|
78
|
+
Ez2ms9Ude+PvGbf7y38HKhkguSbDs34aacuz4X7IGEZCZMrbfxUo1M+HzPlY
|
79
|
+
RvlmjDHwWJmG9Aj1G439AKUwr7KJgTvPzzZLcXz/lENdjk92HLSEaRFMMnTJ
|
80
|
+
XkJLIXcBdzdd6gw+3WqEljQUYAmOv36avTZt7IA1AeCycTa+xDCKZ4gZE/O7
|
81
|
+
zasLkTBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBAI+wtFyu4rvbeY5Zwg
|
82
|
+
VR0ggCDK2aXbmJOBwtj6GyRBYokOEk8EcLuUTDh+GOvYaErUdQ==]
|
83
|
+
- >
|
84
|
+
when shall we three meet again
|
85
|
+
in thunder lightning or
|
86
|
+
in rain
|
87
|
+
|
88
|
+
mixed_array_with_random:
|
89
|
+
- ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEApxf3lqPCoidIFp5qvB21dUhlmCHx6JLm7rtt9m6rXwc35VrJVukSCIrjvAz1b/osEU+RdSEQh9WL2E65QHB9aHklWdu4SgR3QvC/TU4uVWQCvfy3g/bpX3D/j13BkSpe99nH0Va0kZpCnaorHEwiv9fvs5VneGIwSKiBIy/5lYdcmmHWPSlE+4G285XwznMKUqh+P/prUTn664oDA8LeRGitENfndmFGLPaoEbgfJLAQQlVPzt/DhR/YiYoG5qHh9445NAVo/MVq13SVzbxCwyg7WVrNTI3KK4Z2/hDiizRHpE/L7ceWfJiXCUQ4ouy2QvWNcNjmGTM0bRZDgep8XDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBBWzWT0Fn9sVdKPp0BoGWIcgCC0ga55Q3kw9i+D6acq4TOlI1rcdIyS/lwBSe7gixWQdg==]
|
90
|
+
- >
|
91
|
+
ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQAw
|
92
|
+
DQYJKoZIhvcNAQEBBQAEggEAZIrpP5Gtt54I4S68hrZj3pjaqO9IcEnX0J66
|
93
|
+
I7Zc8+r9VUsahJWSGlDutvmz5b8vo94ZqWy9vKaJFKBc762ih8YDhMKjDTKL
|
94
|
+
2Pbdshv/cbWF09oF2HoNqU+qC8OK+Uku+lf7F8UOmkzTsB2QS6LzQKXoZtff
|
95
|
+
WWum8ZNfShgCHsb6qy+1C/pNPNMSvO+JnFhTp7e7MS62wIAY6denn2ODCj4c
|
96
|
+
MJhU8siBOWcyIBOHDdlHr658qXfpixN3vmN4qpXoqD5A4r2rv5Jh0uqYNYdo
|
97
|
+
peROsTg5yYz46NovQF/iM4ZOed+jcHjANFW1+tLsT8MgesvN19pTpLyVeCdq
|
98
|
+
lwed8jBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBDs+GHGdE7N5Livn7K+
|
99
|
+
Dfs1gCBnNYMzne3ae3pyxKTf2FUaJyZWOgmCPMoWAwgr20Gkvw==]
|
100
|
+
- >
|
101
|
+
i wondered lonely
|
102
|
+
as a cloud
|
103
|
+
- the grand old duke of york
|
104
|
+
|
105
|
+
simple_hash:
|
106
|
+
key1: value1
|
107
|
+
key2: value2
|
108
|
+
|
109
|
+
encrypted_hash_value:
|
110
|
+
key5: ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQAwDQYJKoZIhvcNAQEBBQAEggEAfXcVAj7iddi1siO4eT3ZbJF6C3z+5iHOd8RXf/AFRV6ocQP3G70ABUcWpjp289Rc968/T1vHgsXjaUcyOl43XcjOdtizyYrNUkFGG02VPjeAa7rqSIAy9Ot58PGEFC+/gfyvFXCr7mQoP6QUE0qQbxsRt0icUhg0HXXFFtYlddJDEovdWy3KVjx7Dl0AxYp8zbEnXgTmUdfezl3P89fWce9wEq9AFNsFzbQKA25XTTt77xyGJvtZSOJSy4mB65e5VX0rb09kL93ofpgmra/0D3x13Afi5YJHtOSzWkHNoBwcvAXsigRrQcvFrgVDQhOK8J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