puppet 6.22.1 → 6.23.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +14 -14
  3. data/ext/osx/puppet.plist +2 -0
  4. data/lib/puppet/application/agent.rb +12 -5
  5. data/lib/puppet/application/apply.rb +2 -1
  6. data/lib/puppet/application/device.rb +2 -1
  7. data/lib/puppet/application/resource.rb +2 -1
  8. data/lib/puppet/application/script.rb +2 -1
  9. data/lib/puppet/configurer/downloader.rb +2 -1
  10. data/lib/puppet/defaults.rb +5 -3
  11. data/lib/puppet/file_serving/fileset.rb +14 -2
  12. data/lib/puppet/functions/all.rb +1 -1
  13. data/lib/puppet/functions/camelcase.rb +1 -1
  14. data/lib/puppet/functions/capitalize.rb +2 -2
  15. data/lib/puppet/functions/downcase.rb +2 -2
  16. data/lib/puppet/functions/get.rb +5 -5
  17. data/lib/puppet/functions/group_by.rb +13 -5
  18. data/lib/puppet/functions/lest.rb +1 -1
  19. data/lib/puppet/functions/new.rb +100 -100
  20. data/lib/puppet/functions/partition.rb +4 -4
  21. data/lib/puppet/functions/require.rb +5 -5
  22. data/lib/puppet/functions/sort.rb +3 -3
  23. data/lib/puppet/functions/tree_each.rb +7 -9
  24. data/lib/puppet/functions/type.rb +4 -4
  25. data/lib/puppet/functions/upcase.rb +2 -2
  26. data/lib/puppet/http/resolver/server_list.rb +15 -4
  27. data/lib/puppet/http/service/compiler.rb +69 -0
  28. data/lib/puppet/http/service/file_server.rb +2 -1
  29. data/lib/puppet/indirector/catalog/compiler.rb +1 -0
  30. data/lib/puppet/indirector/file_metadata/rest.rb +1 -0
  31. data/lib/puppet/parser/functions/fqdn_rand.rb +14 -6
  32. data/lib/puppet/pops/types/p_sem_ver_type.rb +8 -2
  33. data/lib/puppet/pops/types/p_sensitive_type.rb +10 -0
  34. data/lib/puppet/provider/package/nim.rb +11 -6
  35. data/lib/puppet/provider/service/systemd.rb +13 -3
  36. data/lib/puppet/provider/service/windows.rb +38 -0
  37. data/lib/puppet/provider/user/directoryservice.rb +25 -12
  38. data/lib/puppet/reference/configuration.rb +1 -1
  39. data/lib/puppet/transaction/additional_resource_generator.rb +1 -1
  40. data/lib/puppet/type/file.rb +19 -1
  41. data/lib/puppet/type/file/selcontext.rb +1 -1
  42. data/lib/puppet/type/service.rb +18 -38
  43. data/lib/puppet/type/tidy.rb +21 -2
  44. data/lib/puppet/type/user.rb +38 -20
  45. data/lib/puppet/util/selinux.rb +30 -4
  46. data/lib/puppet/version.rb +1 -1
  47. data/locales/puppet.pot +109 -101
  48. data/man/man5/puppet.conf.5 +272 -252
  49. data/man/man8/puppet-agent.8 +1 -1
  50. data/man/man8/puppet-apply.8 +1 -1
  51. data/man/man8/puppet-catalog.8 +1 -1
  52. data/man/man8/puppet-config.8 +1 -1
  53. data/man/man8/puppet-describe.8 +1 -1
  54. data/man/man8/puppet-device.8 +1 -1
  55. data/man/man8/puppet-doc.8 +1 -1
  56. data/man/man8/puppet-epp.8 +1 -1
  57. data/man/man8/puppet-facts.8 +1 -1
  58. data/man/man8/puppet-filebucket.8 +1 -1
  59. data/man/man8/puppet-generate.8 +1 -1
  60. data/man/man8/puppet-help.8 +1 -1
  61. data/man/man8/puppet-key.8 +1 -1
  62. data/man/man8/puppet-lookup.8 +1 -1
  63. data/man/man8/puppet-man.8 +1 -1
  64. data/man/man8/puppet-module.8 +1 -1
  65. data/man/man8/puppet-node.8 +1 -1
  66. data/man/man8/puppet-parser.8 +1 -1
  67. data/man/man8/puppet-plugin.8 +1 -1
  68. data/man/man8/puppet-report.8 +1 -1
  69. data/man/man8/puppet-resource.8 +1 -1
  70. data/man/man8/puppet-script.8 +1 -1
  71. data/man/man8/puppet-ssl.8 +1 -1
  72. data/man/man8/puppet-status.8 +1 -1
  73. data/man/man8/puppet.8 +2 -2
  74. data/spec/fixtures/ssl/127.0.0.1-key.pem +107 -57
  75. data/spec/fixtures/ssl/127.0.0.1.pem +52 -31
  76. data/spec/fixtures/ssl/bad-basic-constraints.pem +57 -35
  77. data/spec/fixtures/ssl/bad-int-basic-constraints.pem +57 -35
  78. data/spec/fixtures/ssl/ca.pem +57 -35
  79. data/spec/fixtures/ssl/crl.pem +28 -18
  80. data/spec/fixtures/ssl/ec-key.pem +11 -11
  81. data/spec/fixtures/ssl/ec.pem +33 -24
  82. data/spec/fixtures/ssl/encrypted-ec-key.pem +12 -12
  83. data/spec/fixtures/ssl/encrypted-key.pem +108 -58
  84. data/spec/fixtures/ssl/intermediate-agent-crl.pem +28 -19
  85. data/spec/fixtures/ssl/intermediate-agent.pem +57 -36
  86. data/spec/fixtures/ssl/intermediate-crl.pem +31 -21
  87. data/spec/fixtures/ssl/intermediate.pem +57 -36
  88. data/spec/fixtures/ssl/pluto-key.pem +107 -57
  89. data/spec/fixtures/ssl/pluto.pem +52 -30
  90. data/spec/fixtures/ssl/request-key.pem +107 -57
  91. data/spec/fixtures/ssl/request.pem +47 -26
  92. data/spec/fixtures/ssl/revoked-key.pem +107 -57
  93. data/spec/fixtures/ssl/revoked.pem +52 -30
  94. data/spec/fixtures/ssl/signed-key.pem +107 -57
  95. data/spec/fixtures/ssl/signed.pem +52 -30
  96. data/spec/fixtures/ssl/tampered-cert.pem +52 -30
  97. data/spec/fixtures/ssl/tampered-csr.pem +47 -26
  98. data/spec/fixtures/ssl/unknown-127.0.0.1-key.pem +107 -57
  99. data/spec/fixtures/ssl/unknown-127.0.0.1.pem +50 -29
  100. data/spec/fixtures/ssl/unknown-ca-key.pem +107 -57
  101. data/spec/fixtures/ssl/unknown-ca.pem +55 -33
  102. data/spec/integration/application/resource_spec.rb +30 -0
  103. data/spec/lib/puppet/test_ca.rb +2 -2
  104. data/spec/unit/application/agent_spec.rb +7 -2
  105. data/spec/unit/configurer/downloader_spec.rb +6 -0
  106. data/spec/unit/configurer_spec.rb +23 -0
  107. data/spec/unit/file_serving/fileset_spec.rb +60 -0
  108. data/spec/unit/gettext/config_spec.rb +12 -0
  109. data/spec/unit/http/service/compiler_spec.rb +123 -0
  110. data/spec/unit/indirector/catalog/compiler_spec.rb +14 -10
  111. data/spec/unit/parser/functions/fqdn_rand_spec.rb +15 -1
  112. data/spec/unit/pops/types/p_sem_ver_type_spec.rb +18 -0
  113. data/spec/unit/pops/types/p_sensitive_type_spec.rb +18 -0
  114. data/spec/unit/provider/package/nim_spec.rb +42 -0
  115. data/spec/unit/provider/service/init_spec.rb +1 -0
  116. data/spec/unit/provider/service/openwrt_spec.rb +3 -1
  117. data/spec/unit/provider/service/systemd_spec.rb +42 -8
  118. data/spec/unit/provider/service/windows_spec.rb +202 -0
  119. data/spec/unit/provider/user/directoryservice_spec.rb +67 -35
  120. data/spec/unit/ssl/state_machine_spec.rb +19 -5
  121. data/spec/unit/transaction/additional_resource_generator_spec.rb +0 -2
  122. data/spec/unit/transaction_spec.rb +18 -20
  123. data/spec/unit/type/file/selinux_spec.rb +3 -3
  124. data/spec/unit/type/service_spec.rb +59 -188
  125. data/spec/unit/type/tidy_spec.rb +17 -7
  126. data/spec/unit/type/user_spec.rb +45 -0
  127. data/spec/unit/util/selinux_spec.rb +87 -16
  128. data/tasks/generate_cert_fixtures.rake +2 -2
  129. metadata +4 -2
@@ -6,43 +6,64 @@ Certificate:
6
6
  Issuer: CN=Unknown CA
7
7
  Validity
8
8
  Not Before: Jan 1 00:00:00 1970 GMT
9
- Not After : Mar 10 06:54:16 2030 GMT
9
+ Not After : Apr 18 18:46:23 2031 GMT
10
10
  Subject: CN=127.0.0.1
11
11
  Subject Public Key Info:
12
12
  Public Key Algorithm: rsaEncryption
13
- RSA Public-Key: (1024 bit)
13
+ RSA Public-Key: (2048 bit)
14
14
  Modulus:
15
- 00:c9:00:0c:66:d2:2d:df:a0:cc:4c:a5:7a:5b:67:
16
- 10:f1:d2:06:ac:01:0e:da:55:19:a3:dd:b7:85:9c:
17
- f1:53:e6:a9:b4:c7:33:43:55:12:0e:e5:ec:cc:75:
18
- 28:e4:d2:36:2a:02:85:9e:a6:58:4e:f3:ba:91:83:
19
- 54:d2:b7:46:d4:00:b4:fc:86:9b:db:10:07:a7:8e:
20
- 47:e5:f0:27:1f:62:eb:94:68:37:c8:c4:d4:fc:ea:
21
- 0e:b0:94:5d:c3:5a:99:08:6c:f3:27:33:71:5a:47:
22
- 62:3e:df:18:10:d4:c0:08:2d:f1:47:6b:c1:19:46:
23
- 3e:32:2f:b4:57:91:50:4c:8f
15
+ 00:c3:c8:2b:f4:88:83:50:13:f7:3d:f8:b6:b8:7b:
16
+ d0:58:7e:88:9c:a5:c2:30:72:36:9d:9a:d1:73:79:
17
+ c1:6d:06:3f:3b:f3:10:b6:87:3d:55:a4:e2:a9:c1:
18
+ 48:d4:fd:30:8f:36:46:2f:96:bc:a5:e4:35:d9:89:
19
+ b2:8b:8b:90:ab:9a:b1:f9:ed:fa:67:3e:ea:27:42:
20
+ 59:67:bb:69:18:e6:d7:0d:1a:0e:ad:c2:58:62:24:
21
+ 05:6e:18:39:db:09:7d:96:a5:c9:c7:56:ba:68:e0:
22
+ 06:27:37:15:e9:5c:f3:bf:b0:29:9b:0d:c7:ea:54:
23
+ a7:41:3f:11:11:db:23:3b:23:33:3e:c7:9c:d7:82:
24
+ 99:23:df:c2:5a:4d:90:2f:73:64:92:bc:b8:f5:b5:
25
+ 3f:56:e2:5d:95:e2:a8:3f:fa:ed:96:af:b8:3d:63:
26
+ fd:cd:24:2d:27:32:c8:41:7e:38:e8:02:3e:87:ce:
27
+ ab:f2:40:4d:a2:ec:42:ea:b5:14:ff:9d:ca:4b:d9:
28
+ de:84:4d:45:b7:d9:d9:56:7b:e3:7d:af:de:19:76:
29
+ 91:cb:72:e9:b0:02:ca:8b:75:f8:54:23:ae:03:ab:
30
+ ec:48:ba:d6:c9:1a:0b:5b:7d:f9:f1:d7:9a:1a:83:
31
+ 89:b9:f7:e7:ea:2c:11:2f:0f:c4:63:78:ff:5b:80:
32
+ be:0f
24
33
  Exponent: 65537 (0x10001)
25
34
  X509v3 extensions:
26
35
  X509v3 Subject Alternative Name:
27
36
  DNS:127.0.0.1, DNS:127.0.0.2
28
37
  Signature Algorithm: sha256WithRSAEncryption
29
- 4a:a3:2e:2a:8f:6f:0e:5e:70:19:26:59:05:1d:59:3f:c5:39:
30
- 49:c4:cd:73:99:f2:08:8c:bc:fa:28:e4:33:38:f1:50:a3:0c:
31
- 8e:3b:a3:93:9e:37:5c:69:c0:d9:2d:f2:2e:31:d7:5a:61:d6:
32
- 91:22:6d:3c:1b:4f:c3:b6:57:13:5e:c9:5a:c8:6c:2e:bc:d6:
33
- 42:5b:f0:64:ec:7e:03:3c:f1:43:d9:f9:b7:f1:37:db:a5:0f:
34
- b9:87:f5:4d:01:93:b4:a6:40:05:dc:ca:fd:31:5b:14:66:f0:
35
- 84:70:48:0c:b8:49:11:3d:f6:9e:aa:e7:b4:21:5b:e6:cc:67:
36
- ca:d9
38
+ c5:f2:04:d3:b9:16:b1:fa:4a:2f:b8:0c:30:ef:ce:bd:2e:4f:
39
+ 25:b6:aa:6f:c8:ae:1a:b4:e7:e6:86:51:28:34:53:ff:58:07:
40
+ 68:d8:a0:ce:79:c7:2f:71:2c:55:1c:67:82:05:7d:f4:ce:d8:
41
+ b7:d7:71:67:03:e8:a2:38:34:16:83:8c:df:c3:27:80:e2:f9:
42
+ 12:83:a0:49:e1:f3:5f:1d:c0:e2:68:91:77:f0:1d:a6:63:8b:
43
+ 1d:96:ee:46:ec:41:cd:3c:55:63:a9:4b:5c:68:d6:44:67:47:
44
+ 43:4a:21:8b:13:a2:10:06:5c:0f:1b:d5:e7:4d:b3:72:aa:bd:
45
+ cc:ac:e7:cf:8b:89:51:3c:d0:d3:0e:75:37:91:a0:e4:73:5b:
46
+ 74:80:7d:64:a3:ee:4d:69:7d:97:15:35:1a:a9:a8:2a:f6:12:
47
+ d1:b7:73:ad:f1:ca:d9:9b:96:d6:66:ac:14:e5:88:2d:7e:ce:
48
+ 20:61:94:4a:18:41:27:8e:2d:ad:45:d7:2e:ff:a8:d6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9IiDUBP3Pfi2uHvQWH6InKXCMHI2nZrRc3nBbQY/O/MQtoc9VaTiqcFI1P0wjzZG
58
+ L5a8peQ12Ymyi4uQq5qx+e36Zz7qJ0JZZ7tpGObXDRoOrcJYYiQFbhg52wl9lqXJ
59
+ x1a6aOAGJzcV6Vzzv7Apmw3H6lSnQT8REdsjOyMzPsec14KZI9/CWk2QL3Nkkry4
60
+ 9bU/VuJdleKoP/rtlq+4PWP9zSQtJzLIQX446AI+h86r8kBNouxC6rUU/53KS9ne
61
+ hE1Ft9nZVnvjfa/eGXaRy3LpsALKi3X4VCOuA6vsSLrWyRoLW3358deaGoOJuffn
62
+ 6iwRLw/EY3j/W4C+DwIDAQABoyMwITAfBgNVHREEGDAWggkxMjcuMC4wLjGCCTEy
63
+ Ny4wLjAuMjANBgkqhkiG9w0BAQsFAAOCAQEAxfIE07kWsfpKL7gMMO/OvS5PJbaq
64
+ b8iuGrTn5oZRKDRT/1gHaNigznnHL3EsVRxnggV99M7Yt9dxZwPoojg0FoOM38Mn
65
+ gOL5EoOgSeHzXx3A4miRd/AdpmOLHZbuRuxBzTxVY6lLXGjWRGdHQ0ohixOiEAZc
66
+ DxvV502zcqq9zKznz4uJUTzQ0w51N5Gg5HNbdIB9ZKPuTWl9lxU1GqmoKvYS0bdz
67
+ rfHK2ZuW1masFOWILX7OIGGUShhBJ44trUXXLv+o1iyiAVQoFhWEXpQtVqKQszFA
68
+ OqgEjUJVRRB6/hlN2bTvlS7Pbig/yxJ9qjSWYLIpfmzDvTv3TG4xJWC1lg==
48
69
  -----END CERTIFICATE-----
@@ -1,67 +1,117 @@
1
- RSA Private-Key: (1024 bit, 2 primes)
1
+ RSA Private-Key: (2048 bit, 2 primes)
2
2
  modulus:
3
- 00:c1:5e:5d:26:ae:73:17:5a:70:37:ac:42:25:ca:
4
- 05:10:86:17:23:6c:28:84:48:2a:4a:d4:b0:3a:2a:
5
- d8:33:ae:58:67:6f:9b:4f:a6:b4:87:b1:ec:37:00:
6
- 69:8d:d5:cf:71:8a:96:e1:4a:f8:c8:81:36:f9:43:
7
- ad:d8:d6:76:83:27:99:a4:48:17:c2:ef:9c:22:40:
8
- 4b:c6:58:21:88:e5:1d:37:79:4e:ba:31:e6:52:ec:
9
- 8c:23:ed:d6:ce:3b:58:ad:82:c7:ae:28:47:d4:e7:
10
- cc:31:ac:78:c9:02:87:d0:b1:91:09:f6:1e:9a:c3:
11
- 4f:f6:5a:fe:a2:21:0e:c0:95
3
+ 00:ea:16:4c:26:71:56:ac:35:bb:2b:f6:1b:18:58:
4
+ 16:0f:1c:39:3f:4d:02:e4:b2:a7:8b:bd:fe:99:57:
5
+ f2:a5:a8:15:01:79:0d:1d:f6:d9:12:db:d5:26:a2:
6
+ f6:58:af:4b:2c:aa:46:7a:53:63:9f:1f:1a:9e:1c:
7
+ fc:9a:8e:20:c8:c8:c8:db:4d:50:8d:4e:19:83:a1:
8
+ 9d:54:49:26:7b:3a:e0:77:1d:7d:88:01:80:46:32:
9
+ 70:47:16:08:71:de:12:94:67:fd:71:1f:41:56:93:
10
+ 15:91:68:bd:05:3b:67:96:1f:7a:4d:d5:1e:b6:ac:
11
+ 41:1f:f0:ce:d3:2d:96:d9:7c:ad:cd:be:b3:32:66:
12
+ 18:03:2c:83:98:f1:e8:96:6f:85:0f:e1:1f:93:d0:
13
+ f9:09:43:8c:b1:ea:43:26:32:a5:c6:d2:32:75:2d:
14
+ ed:72:9d:bf:3a:bb:f3:4e:d0:0c:ac:ba:6b:fd:7f:
15
+ 66:d8:12:40:4e:49:e7:d4:ec:70:03:71:37:cb:5e:
16
+ cc:d3:4f:f3:d2:cc:e2:39:eb:79:6c:71:e5:d1:0e:
17
+ 45:4c:7a:3d:6f:39:e8:16:e7:de:60:eb:01:e7:80:
18
+ 4e:42:1d:1c:33:0a:eb:f9:10:2c:5c:ed:0c:58:0b:
19
+ 8c:fd:6d:f4:19:49:8a:a2:81:ab:04:b0:cb:7a:61:
20
+ 1f:d3
12
21
  publicExponent: 65537 (0x10001)
13
22
  privateExponent:
14
- 60:5b:b7:ab:98:ee:fd:4a:31:f5:6c:3f:a2:39:23:
15
- 80:f2:71:01:53:da:74:e0:c9:42:74:ee:44:6e:29:
16
- 42:c7:b4:82:06:d9:ac:3d:74:64:d2:42:d5:bd:bc:
17
- db:d3:1a:06:88:7b:5b:55:52:d8:07:9b:ef:66:cc:
18
- 70:eb:9e:2e:2b:7e:c1:34:84:9a:83:34:b2:70:c6:
19
- 59:72:60:a0:f4:f5:d9:f2:76:ae:bf:7d:23:35:ee:
20
- ad:b1:2d:c1:fe:05:7d:5b:7f:2c:da:87:ec:6e:b0:
21
- a3:08:c9:bd:e5:30:a4:c2:6e:6e:50:c0:5e:31:f6:
22
- 33:ef:86:57:64:45:b7:c1
23
+ 00:b5:87:11:0a:86:bd:d5:d1:dd:12:1c:49:aa:b9:
24
+ 34:72:07:4b:05:a1:ac:ea:b8:f8:60:cf:b7:8e:26:
25
+ bb:8e:67:27:d2:fa:92:87:78:13:a2:22:43:cb:30:
26
+ 78:a5:11:5a:d4:8a:3f:19:41:6d:71:c9:e7:14:52:
27
+ 1a:39:a8:9a:17:da:4c:98:73:fe:51:76:0d:27:1c:
28
+ bf:2a:cb:87:41:ec:c8:80:d6:a7:b0:3e:a9:c0:c6:
29
+ 00:77:bf:c8:50:b5:0b:e7:76:34:fd:f2:64:f2:c4:
30
+ 20:e7:a0:37:64:c5:4a:71:0a:7c:07:bb:8b:93:d1:
31
+ 44:b7:86:40:7d:57:4f:31:db:98:22:21:d5:f3:b0:
32
+ 57:4e:f6:c9:a4:08:43:3d:d8:ce:59:aa:a7:1f:da:
33
+ 93:40:11:cf:8c:14:9d:f3:10:9f:cf:0a:d0:cf:2b:
34
+ b6:ea:e5:3c:92:9f:c2:6f:24:86:71:15:61:49:7b:
35
+ 77:48:c1:d2:13:67:1a:f7:c0:89:3d:3d:87:cf:6e:
36
+ 5c:e4:46:28:fe:33:89:3c:09:fc:50:3c:b7:a9:25:
37
+ 3c:f2:a5:a0:e1:e0:9c:d1:4a:3e:11:5b:10:1a:33:
38
+ 29:c7:ca:0b:ac:bf:c2:be:90:27:1f:ef:d7:d2:ca:
39
+ 5f:37:b3:b3:b9:3a:35:87:be:ca:c3:f7:59:03:f7:
40
+ 7e:f1
23
41
  prime1:
24
- 00:e1:d6:07:8c:c6:4d:90:fa:d6:40:9a:1f:e5:34:
25
- 50:16:72:9f:5b:83:c1:60:d5:73:39:c2:c6:ec:3a:
26
- ed:24:fe:aa:5d:16:14:ba:85:a4:7d:5a:94:e8:63:
27
- f9:dd:25:a8:2c:6b:ca:7c:43:c7:a9:92:ae:35:5c:
28
- 85:47:9e:51:e9
42
+ 00:f7:83:23:4b:6f:82:af:b6:7a:0f:1f:1a:05:21:
43
+ d1:a1:84:d1:07:24:db:dd:64:9f:16:84:eb:c4:bf:
44
+ ec:cf:2f:69:92:21:b8:88:05:24:8c:bc:c1:db:d0:
45
+ 38:53:bf:43:dc:5b:5e:42:7b:ad:de:d6:3a:04:9e:
46
+ a5:a7:f0:0b:2e:4e:2a:20:6f:95:7d:f0:be:ff:12:
47
+ c6:f4:d2:ca:39:e1:a5:c9:34:58:3b:3d:40:c1:88:
48
+ 63:c3:cc:87:02:25:70:88:58:df:ec:b6:d6:0c:9e:
49
+ 15:2d:57:e1:34:e9:2e:ac:51:cf:c4:83:dd:b6:11:
50
+ 44:23:b8:95:50:6c:40:ae:ed
29
51
  prime2:
30
- 00:db:32:2e:59:ea:22:83:ce:d3:d5:7b:cb:b9:81:
31
- b9:c2:4e:5b:08:ab:8f:66:21:34:55:61:50:57:02:
32
- 5e:d2:d9:09:8d:39:81:85:cd:4c:08:f3:b1:1a:b5:
33
- b4:0c:3b:77:5e:c1:e0:95:f1:98:c6:f5:58:88:42:
34
- 50:b0:c3:41:cd
52
+ 00:f2:1d:4d:7f:ee:9e:a5:0f:c9:73:a5:4d:fe:7c:
53
+ 0a:94:8e:c6:77:c8:ec:53:e0:03:f5:65:42:39:40:
54
+ 26:02:46:8f:05:3d:b9:ba:f2:29:8a:b4:3c:60:37:
55
+ 85:ee:e0:ba:e2:35:69:be:84:95:53:f3:fd:b8:b9:
56
+ 5b:51:76:10:2a:f8:b2:54:58:ab:e5:89:18:46:df:
57
+ 08:c0:4f:57:56:cc:1c:f2:53:e6:b6:91:c0:bd:9c:
58
+ c6:a8:8c:bf:a0:d4:b6:86:37:50:f9:69:78:95:bd:
59
+ 83:6f:5e:64:1a:b7:75:31:2c:a2:c5:c9:b7:b7:80:
60
+ c4:61:ac:fd:f7:c7:88:71:bf
35
61
  exponent1:
36
- 00:b2:c8:27:4d:f0:a6:f3:41:40:60:00:23:83:e5:
37
- f8:08:ed:50:ee:b7:cd:5d:05:5d:a4:ba:67:94:17:
38
- ca:28:e1:5a:a9:3a:93:ca:5d:86:2c:9e:8b:07:b6:
39
- 2d:d6:3e:bb:75:ff:17:5b:6c:a5:21:bf:37:1e:93:
40
- 52:07:b2:74:11
62
+ 3c:63:9c:9a:ed:2c:1f:9f:10:0c:dc:73:c6:c8:c7:
63
+ 92:f7:0a:e1:09:57:33:9f:37:49:91:48:cd:0a:5e:
64
+ c6:f6:34:75:d9:10:62:ef:8e:49:60:4c:94:4b:2b:
65
+ 53:13:99:85:0c:2d:e5:5e:b3:bf:68:d9:63:03:2a:
66
+ 3b:dd:4f:7d:0e:c9:2c:7c:cd:26:9b:34:9e:9b:80:
67
+ 3b:7f:aa:a3:90:b0:98:74:d3:0a:31:19:b9:9e:83:
68
+ 68:e4:60:14:5f:fa:22:ea:3c:48:4f:1b:ce:9c:4b:
69
+ 62:72:cc:99:d2:42:f6:fc:47:0b:15:79:64:d0:b5:
70
+ a5:59:85:e4:c7:64:c8:c9
41
71
  exponent2:
42
- 63:f3:51:e7:76:38:1e:da:65:05:e7:d9:51:d1:b1:
43
- 9e:c4:94:06:34:14:c3:81:48:97:d6:34:08:38:f0:
44
- 7c:3c:b3:7a:4e:4a:9d:74:ab:c3:39:3b:fc:ed:f6:
45
- 17:cd:d5:f4:c3:7b:61:64:35:42:24:06:26:bb:f6:
46
- 87:63:c1:d1
72
+ 00:d5:ba:32:58:d5:cf:6c:0c:94:9c:26:f7:c3:c7:
73
+ c2:1b:44:32:45:39:b4:0d:92:ba:4b:dd:38:69:8b:
74
+ 8c:42:04:01:6a:f2:03:4b:d9:4b:fc:aa:80:85:bb:
75
+ 5d:da:f2:bd:66:c5:19:f4:d9:db:6c:81:fd:9f:1c:
76
+ d9:54:fe:f0:e4:ce:27:b6:37:94:7f:0a:d7:c8:70:
77
+ 48:ac:63:1d:c9:7c:63:ad:33:8d:7d:eb:0a:87:17:
78
+ a7:72:d0:d4:b4:e8:31:bc:27:86:ae:b5:81:82:46:
79
+ 0a:89:bc:7c:87:ed:1d:61:ec:72:40:41:82:91:55:
80
+ f5:85:f8:0d:35:b7:09:66:c7
47
81
  coefficient:
48
- 00:8a:5b:12:c8:57:3c:1e:95:32:eb:5e:e3:92:50:
49
- 2c:7b:6a:02:a4:18:48:30:cc:23:9f:79:91:dd:56:
50
- e8:ae:f7:93:47:ed:a6:26:35:6b:aa:7c:2c:f2:36:
51
- 01:33:f3:0f:df:50:c9:c8:0a:e7:6e:ec:ba:54:a0:
52
- 8d:0f:09:40:fd
82
+ 3d:9b:b0:01:4b:43:c3:bf:50:86:d8:c8:52:d4:4d:
83
+ 7a:05:40:2d:20:50:d4:4a:a9:33:a3:b8:d1:fc:6b:
84
+ eb:be:c9:df:44:f7:70:51:05:d8:58:d2:a0:d8:e0:
85
+ 36:fc:56:43:25:0f:2a:b6:41:a2:25:99:01:8b:d5:
86
+ 93:f4:d6:04:ae:4f:40:44:f6:f2:85:a8:9f:35:99:
87
+ 63:9d:ef:f9:f5:3e:5d:07:3c:96:23:a6:26:8c:28:
88
+ d1:60:cd:13:18:3b:41:e9:30:31:83:50:73:91:ba:
89
+ 5a:a3:69:d1:6e:a8:40:f2:72:df:e8:88:73:9c:a7:
90
+ ce:e7:9f:11:97:e5:04:6d
53
91
  -----BEGIN RSA PRIVATE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F/6Iuo8SE8bzpxLYnLMmdJC
111
+ 9vxHCxV5ZNC1pVmF5MdkyMkCgYEA1boyWNXPbAyUnCb3w8fCG0QyRTm0DZK6S904
112
+ aYuMQgQBavIDS9lL/KqAhbtd2vK9ZsUZ9NnbbIH9nxzZVP7w5M4ntjeUfwrXyHBI
113
+ rGMdyXxjrTONfesKhxenctDUtOgxvCeGrrWBgkYKibx8h+0dYexyQEGCkVX1hfgN
114
+ NbcJZscCgYA9m7ABS0PDv1CG2MhS1E16BUAtIFDUSqkzo7jR/GvrvsnfRPdwUQXY
115
+ WNKg2OA2/FZDJQ8qtkGiJZkBi9WT9NYErk9ARPbyhaifNZljne/59T5dBzyWI6Ym
116
+ jCjRYM0TGDtB6TAxg1Bzkbpao2nRbqhA8nLf6IhznKfO558Rl+UEbQ==
67
117
  -----END RSA PRIVATE KEY-----
@@ -6,21 +6,30 @@ Certificate:
6
6
  Issuer: CN=Unknown CA
7
7
  Validity
8
8
  Not Before: Jan 1 00:00:00 1970 GMT
9
- Not After : Mar 10 06:54:16 2030 GMT
9
+ Not After : Apr 18 18:46:23 2031 GMT
10
10
  Subject: CN=Unknown CA
11
11
  Subject Public Key Info:
12
12
  Public Key Algorithm: rsaEncryption
13
- RSA Public-Key: (1024 bit)
13
+ RSA Public-Key: (2048 bit)
14
14
  Modulus:
15
- 00:c1:5e:5d:26:ae:73:17:5a:70:37:ac:42:25:ca:
16
- 05:10:86:17:23:6c:28:84:48:2a:4a:d4:b0:3a:2a:
17
- d8:33:ae:58:67:6f:9b:4f:a6:b4:87:b1:ec:37:00:
18
- 69:8d:d5:cf:71:8a:96:e1:4a:f8:c8:81:36:f9:43:
19
- ad:d8:d6:76:83:27:99:a4:48:17:c2:ef:9c:22:40:
20
- 4b:c6:58:21:88:e5:1d:37:79:4e:ba:31:e6:52:ec:
21
- 8c:23:ed:d6:ce:3b:58:ad:82:c7:ae:28:47:d4:e7:
22
- cc:31:ac:78:c9:02:87:d0:b1:91:09:f6:1e:9a:c3:
23
- 4f:f6:5a:fe:a2:21:0e:c0:95
15
+ 00:ea:16:4c:26:71:56:ac:35:bb:2b:f6:1b:18:58:
16
+ 16:0f:1c:39:3f:4d:02:e4:b2:a7:8b:bd:fe:99:57:
17
+ f2:a5:a8:15:01:79:0d:1d:f6:d9:12:db:d5:26:a2:
18
+ f6:58:af:4b:2c:aa:46:7a:53:63:9f:1f:1a:9e:1c:
19
+ fc:9a:8e:20:c8:c8:c8:db:4d:50:8d:4e:19:83:a1:
20
+ 9d:54:49:26:7b:3a:e0:77:1d:7d:88:01:80:46:32:
21
+ 70:47:16:08:71:de:12:94:67:fd:71:1f:41:56:93:
22
+ 15:91:68:bd:05:3b:67:96:1f:7a:4d:d5:1e:b6:ac:
23
+ 41:1f:f0:ce:d3:2d:96:d9:7c:ad:cd:be:b3:32:66:
24
+ 18:03:2c:83:98:f1:e8:96:6f:85:0f:e1:1f:93:d0:
25
+ f9:09:43:8c:b1:ea:43:26:32:a5:c6:d2:32:75:2d:
26
+ ed:72:9d:bf:3a:bb:f3:4e:d0:0c:ac:ba:6b:fd:7f:
27
+ 66:d8:12:40:4e:49:e7:d4:ec:70:03:71:37:cb:5e:
28
+ cc:d3:4f:f3:d2:cc:e2:39:eb:79:6c:71:e5:d1:0e:
29
+ 45:4c:7a:3d:6f:39:e8:16:e7:de:60:eb:01:e7:80:
30
+ 4e:42:1d:1c:33:0a:eb:f9:10:2c:5c:ed:0c:58:0b:
31
+ 8c:fd:6d:f4:19:49:8a:a2:81:ab:04:b0:cb:7a:61:
32
+ 1f:d3
24
33
  Exponent: 65537 (0x10001)
25
34
  X509v3 extensions:
26
35
  X509v3 Basic Constraints: critical
@@ -28,32 +37,45 @@ Certificate:
28
37
  X509v3 Key Usage: critical
29
38
  Certificate Sign, CRL Sign
30
39
  X509v3 Subject Key Identifier:
31
- E9:58:70:FE:F1:C1:AA:5A:70:7A:C1:02:11:1D:9A:F4:60:4F:70:76
40
+ 16:C5:98:B8:84:0B:0A:43:CB:5A:D2:E0:55:C0:64:AB:89:F8:50:FD
32
41
  Netscape Comment:
33
42
  Puppet Server Internal Certificate
34
43
  X509v3 Authority Key Identifier:
35
- keyid:E9:58:70:FE:F1:C1:AA:5A:70:7A:C1:02:11:1D:9A:F4:60:4F:70:76
44
+ keyid:16:C5:98:B8:84:0B:0A:43:CB:5A:D2:E0:55:C0:64:AB:89:F8:50:FD
36
45
 
37
46
  Signature Algorithm: sha256WithRSAEncryption
38
- 00:45:89:e8:68:a7:50:8c:92:84:3c:c4:e6:10:00:29:27:99:
39
- c6:82:aa:aa:b5:0b:ef:97:58:bc:bb:e6:e7:93:7c:a7:ea:e5:
40
- 9a:61:1d:e3:4f:3f:f9:ac:c4:96:14:a5:1f:77:a6:01:dc:08:
41
- 15:9c:3f:66:29:92:80:49:e9:db:d9:22:fb:c3:86:bf:40:ab:
42
- 46:bf:c5:47:bb:c8:89:df:d4:ca:36:f5:08:c4:08:c6:0b:d6:
43
- 9e:8a:86:41:1e:7e:6f:a9:75:ef:8a:94:a9:fd:1a:9b:0f:55:
44
- 3a:55:e5:04:82:71:c3:47:78:62:8e:07:ed:dc:4e:ac:f9:33:
45
- 7b:27
47
+ 7d:0b:a0:2e:d4:fb:6b:29:04:d6:86:4e:89:94:4c:b5:d4:f7:
48
+ 79:5a:38:95:51:9a:80:03:82:93:c8:a7:4e:93:4a:4b:41:1a:
49
+ 85:f3:46:57:e1:70:50:ad:bb:4e:b9:d6:0c:00:e5:9e:4c:f7:
50
+ 26:3b:88:61:27:ad:fa:39:a7:36:e1:62:87:7a:dc:7d:f9:f6:
51
+ c1:ee:bc:db:f7:65:a1:b0:2a:06:ae:4b:cb:99:82:f5:8e:38:
52
+ 51:ac:c9:92:33:b9:7b:50:8b:c6:72:36:d3:f2:73:7d:58:13:
53
+ 00:21:4d:c6:70:9d:eb:70:58:bf:dc:34:94:7e:bc:ef:17:2d:
54
+ 9d:00:bd:55:f9:48:11:c0:8f:88:ea:a8:7c:5d:fb:88:fd:8c:
55
+ b4:00:1d:61:a7:4b:2a:90:ef:96:c1:28:2a:a0:95:ad:bb:b3:
56
+ af:3a:d5:93:1c:54:d7:c5:5b:26:a3:24:87:df:bd:68:74:fa:
57
+ e6:07:4e:13:b9:5f:54:19:ae:da:00:8c:ca:d6:ff:b7:94:6b:
58
+ 4f:ff:71:ca:2b:7d:ee:7e:32:ff:03:3e:60:a4:30:d4:7d:9c:
59
+ ab:97:0e:f7:80:ee:69:c0:28:a8:ec:6b:89:05:38:64:34:e8:
60
+ b2:e9:f3:a1:85:e7:3d:e1:64:3c:86:e4:fd:44:4f:3b:2a:f8:
61
+ d2:b4:93:22
46
62
  -----BEGIN CERTIFICATE-----
47
- MIICODCCAaGgAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDDApVbmtu
48
- b3duIENBMB4XDTcwMDEwMTAwMDAwMFoXDTMwMDMxMDA2NTQxNlowFTETMBEGA1UE
49
- AwwKVW5rbm93biBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwV5dJq5z
50
- F1pwN6xCJcoFEIYXI2wohEgqStSwOirYM65YZ2+bT6a0h7HsNwBpjdXPcYqW4Ur4
51
- yIE2+UOt2NZ2gyeZpEgXwu+cIkBLxlghiOUdN3lOujHmUuyMI+3WzjtYrYLHrihH
52
- 1OfMMax4yQKH0LGRCfYemsNP9lr+oiEOwJUCAwEAAaOBlzCBlDAPBgNVHRMBAf8E
53
- BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU6Vhw/vHBqlpwesECER2a
54
- 9GBPcHYwMQYJYIZIAYb4QgENBCQWIlB1cHBldCBTZXJ2ZXIgSW50ZXJuYWwgQ2Vy
55
- dGlmaWNhdGUwHwYDVR0jBBgwFoAU6Vhw/vHBqlpwesECER2a9GBPcHYwDQYJKoZI
56
- hvcNAQELBQADgYEAAEWJ6GinUIyShDzE5hAAKSeZxoKqqrUL75dYvLvm55N8p+rl
57
- mmEd408/+azElhSlH3em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uXtQi8ZyNtPyc31YEwAhTcZwnetwWL/cNJR+vO8XLZ0AvVX5SBHAj4jqqHxd+4j9
78
+ jLQAHWGnSyqQ75bBKCqgla27s6861ZMcVNfFWyajJIffvWh0+uYHThO5X1QZrtoA
79
+ jMrW/7eUa0//ccorfe5+Mv8DPmCkMNR9nKuXDveA7mnAKKjsa4kFOGQ06LLp86GF
80
+ 5z3hZDyG5P1ETzsq+NK0kyI=
59
81
  -----END CERTIFICATE-----
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+ require 'puppet_spec/files'
3
+
4
+ describe "puppet resource", unless: Puppet::Util::Platform.jruby? do
5
+ include PuppetSpec::Files
6
+
7
+ let(:resource) { Puppet::Application[:resource] }
8
+
9
+ describe "when handling file and tidy types" do
10
+ let!(:dir) { dir_containing('testdir', 'testfile' => 'contents') }
11
+
12
+ it 'does not raise when generating file resources' do
13
+ resource.command_line.args = ['file', dir, 'ensure=directory', 'recurse=true']
14
+
15
+ expect {
16
+ resource.run
17
+ }.to output(/ensure.+=> 'directory'/).to_stdout
18
+ end
19
+
20
+ it 'correctly cleans up a given path' do
21
+ resource.command_line.args = ['tidy', dir, 'rmdirs=true', 'recurse=true']
22
+
23
+ expect {
24
+ resource.run
25
+ }.to output(/Notice: \/File\[#{dir}\]\/ensure: removed/).to_stdout
26
+
27
+ expect(Puppet::FileSystem.exist?(dir)).to be false
28
+ end
29
+ end
30
+ end
@@ -30,7 +30,7 @@ module Puppet
30
30
  end
31
31
 
32
32
  def create_request(name)
33
- key = OpenSSL::PKey::RSA.new(1024)
33
+ key = OpenSSL::PKey::RSA.new(2048)
34
34
  csr = OpenSSL::X509::Request.new
35
35
  csr.public_key = key.public_key
36
36
  csr.subject = OpenSSL::X509::Name.new([["CN", name]])
@@ -127,7 +127,7 @@ module Puppet
127
127
  key = if opts[:key_type] == :ec
128
128
  key = OpenSSL::PKey::EC.generate('prime256v1')
129
129
  else
130
- key = OpenSSL::PKey::RSA.new(1024)
130
+ key = OpenSSL::PKey::RSA.new(2048)
131
131
  end
132
132
  cert = OpenSSL::X509::Certificate.new
133
133
  cert.public_key = if key.is_a?(OpenSSL::PKey::EC)
@@ -546,11 +546,16 @@ describe Puppet::Application::Agent do
546
546
  @puppetd.options[:digest] = :MD5
547
547
  end
548
548
 
549
+ def expected_fingerprint(name, x509)
550
+ digest = OpenSSL::Digest.new(name).hexdigest(x509.to_der)
551
+ digest.scan(/../).join(':').upcase
552
+ end
553
+
549
554
  it "should fingerprint the certificate if it exists" do
550
555
  cert = cert_fixture('signed.pem')
551
556
  allow_any_instance_of(Puppet::X509::CertProvider).to receive(:load_client_cert).and_return(cert)
552
557
 
553
- expect(@puppetd).to receive(:puts).with('(MD5) E2:BA:9A:EF:20:A8:7D:10:8D:82:9A:61:5D:FD:5B:33')
558
+ expect(@puppetd).to receive(:puts).with("(MD5) #{expected_fingerprint('md5', cert)}")
554
559
 
555
560
  @puppetd.fingerprint
556
561
  end
@@ -560,7 +565,7 @@ describe Puppet::Application::Agent do
560
565
  allow_any_instance_of(Puppet::X509::CertProvider).to receive(:load_client_cert).and_return(nil)
561
566
  allow_any_instance_of(Puppet::X509::CertProvider).to receive(:load_request).and_return(request)
562
567
 
563
- expect(@puppetd).to receive(:puts).with('(MD5) B8:4C:FB:31:AE:17:86:E3:AD:53:97:CA:F6:3C:4A:CB')
568
+ expect(@puppetd).to receive(:puts).with("(MD5) #{expected_fingerprint('md5', request)}")
564
569
 
565
570
  @puppetd.fingerprint
566
571
  end