hiera-eyaml 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/hiera/backend/eyaml.rb +1 -1
- data/lib/hiera/backend/eyaml/encryptors/pkcs7.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e473749562bee1ea90166d3a1470d1661b27215493d53b4b955f2a273956f0
|
4
|
+
data.tar.gz: bcede59bf2a9251fe80d35b041db0790037e3f5dabe93783a60edd454337ba23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5731dc618fa18e0dd8cb4262b7dc5be549dae7d935861e90a4f107ae1d3cc64109543a983f500a2d582efb5e22500f8f9b95aaaae508a3df5027e6cc579cd17
|
7
|
+
data.tar.gz: 2fe8b8c7fabbc6ec255e7019c9516d178ae945a42512434ba1eeb2266aff5964bce4ee2a19d8d00a8011ae1cf577fa4e936e95bb014f114f2b48a853f31768a5
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v3.1.1](https://github.com/voxpupuli/hiera-eyaml/tree/v3.1.1) (2019-11-12)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.1.0...v3.1.1)
|
8
|
+
|
9
|
+
**Merged pull requests:**
|
10
|
+
|
11
|
+
- Revert "Cache key strings." [\#290](https://github.com/voxpupuli/hiera-eyaml/pull/290) ([alexjfisher](https://github.com/alexjfisher))
|
12
|
+
|
5
13
|
## [v3.1.0](https://github.com/voxpupuli/hiera-eyaml/tree/v3.1.0) (2019-11-11)
|
6
14
|
|
7
15
|
[Full Changelog](https://github.com/voxpupuli/hiera-eyaml/compare/v3.0.0...v3.1.0)
|
data/lib/hiera/backend/eyaml.rb
CHANGED
@@ -38,8 +38,8 @@ class Hiera
|
|
38
38
|
public_key = self.option :public_key
|
39
39
|
raise StandardError, "pkcs7_public_key is not defined" unless public_key
|
40
40
|
|
41
|
-
|
42
|
-
public_key_x509 = OpenSSL::X509::Certificate.new(
|
41
|
+
public_key_pem = File.read public_key
|
42
|
+
public_key_x509 = OpenSSL::X509::Certificate.new( public_key_pem )
|
43
43
|
|
44
44
|
cipher = OpenSSL::Cipher::AES.new(256, :CBC)
|
45
45
|
OpenSSL::PKCS7::encrypt([public_key_x509], plaintext, cipher, OpenSSL::PKCS7::BINARY).to_der
|
@@ -54,11 +54,11 @@ class Hiera
|
|
54
54
|
raise StandardError, "pkcs7_public_key is not defined" unless public_key
|
55
55
|
raise StandardError, "pkcs7_private_key is not defined" unless private_key
|
56
56
|
|
57
|
-
|
58
|
-
private_key_rsa = OpenSSL::PKey::RSA.new(
|
57
|
+
private_key_pem = File.read private_key
|
58
|
+
private_key_rsa = OpenSSL::PKey::RSA.new( private_key_pem )
|
59
59
|
|
60
|
-
|
61
|
-
public_key_x509 = OpenSSL::X509::Certificate.new(
|
60
|
+
public_key_pem = File.read public_key
|
61
|
+
public_key_x509 = OpenSSL::X509::Certificate.new( public_key_pem )
|
62
62
|
|
63
63
|
pkcs7 = OpenSSL::PKCS7.new( ciphertext )
|
64
64
|
pkcs7.decrypt(private_key_rsa, public_key_x509)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-eyaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Poulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optimist
|