hiera-eyaml 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b9a21a2c014fd073b1733d4c9c8ac2422b4d011f22f9ceb700834ce13710090
4
- data.tar.gz: e8672bc02e4f4e9c41c8bba28677a99c06f08b5fd870936b660bb495d6df0e26
3
+ metadata.gz: 52e473749562bee1ea90166d3a1470d1661b27215493d53b4b955f2a273956f0
4
+ data.tar.gz: bcede59bf2a9251fe80d35b041db0790037e3f5dabe93783a60edd454337ba23
5
5
  SHA512:
6
- metadata.gz: ac59e7c61933e8db2d074bf267c2d45a8cc3aacc23a2a4b732483529506d9cb089ed144794f1b37e010407646a461ca64cd1fc4f4cb53b9b81a65318d604fbad
7
- data.tar.gz: f8fe859c0a1a855b0138690362a8e3952f0fa0756540135d314e117668d8936159a3d7862d0bf3e91ce9eba2efa0d30284f301037ecac7683133a5f6dcfb43a8
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)
@@ -2,7 +2,7 @@ class Hiera
2
2
  module Backend
3
3
  module Eyaml
4
4
 
5
- VERSION = "3.1.0"
5
+ VERSION = "3.1.1"
6
6
  DESCRIPTION = "Hiera-eyaml is a backend for Hiera which provides OpenSSL encryption/decryption for Hiera properties"
7
7
 
8
8
  class RecoverableError < StandardError
@@ -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
- @public_key_pem ||= File.read public_key
42
- public_key_x509 = OpenSSL::X509::Certificate.new( @public_key_pem )
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
- @private_key_pem ||= File.read private_key
58
- private_key_rsa = OpenSSL::PKey::RSA.new( @private_key_pem )
57
+ private_key_pem = File.read private_key
58
+ private_key_rsa = OpenSSL::PKey::RSA.new( private_key_pem )
59
59
 
60
- @public_key_pem ||= File.read public_key
61
- public_key_x509 = OpenSSL::X509::Certificate.new( @public_key_pem )
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.0
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 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist