conjur-cli 5.2.4 → 5.2.5

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
  SHA1:
3
- metadata.gz: 465b9de6e8a2c63bfc0ff50a4f421beac585e858
4
- data.tar.gz: 1fa9c46b64f9029a34bc37ea50492c5a14866be7
3
+ metadata.gz: 3e4d7900d35da02505f1bfb843f9f79414fc49b5
4
+ data.tar.gz: 4c382758571b68d6de8c2e501c81726179cc987c
5
5
  SHA512:
6
- metadata.gz: 908d69e05ec7941e47e724b484a828ce20e316c1abc4f9241d3c81cc9c5b6d09371a1e79b0ef2fe76608aa9af04728b884356191348e0e30f954555cfaa9bfa8
7
- data.tar.gz: 43a250909cbdef74620981d1a2b437117b2f74c19bfb146297b0ec50aaba6108b434cbea226329a75d755033ab1d21814665063cb853f4010ae4a8caac07cc94
6
+ metadata.gz: 48fa15fa3e402e2d72bfffb14b8e895f5078ca2de8840abad219a76d65e07e64fd0e4c30dc7f78a16e24717738c0dc1dd31718d95ec9dd96e7c5655788df4512
7
+ data.tar.gz: 27f5ef9102d531e69a8d8821d71678914632ab4a398ff00ce934b968916709194bbb0d2b2467d6723087f61220132d6af2c059ca7c1fa9f548c8663f37495c56
@@ -1,3 +1,7 @@
1
+ # 5.2.5
2
+
3
+ * Fix behavior of `conjur env` when [policy plugin](https://github.com/conjurinc/conjur-asset-policy) is installed.
4
+
1
5
  # 5.2.4
2
6
 
3
7
  * Fix behavior of `conjur env`, when detecting variables vs literals
@@ -21,6 +21,7 @@
21
21
  require 'conjur/api'
22
22
  require 'yaml'
23
23
 
24
+
24
25
  module Conjur
25
26
  class Env
26
27
 
@@ -82,6 +83,9 @@ module Conjur
82
83
  def parse(yaml, substitutions = {})
83
84
  YAML.add_tag("!var", ConjurVariable)
84
85
  YAML.add_tag("!tmp", ConjurTempfile)
86
+
87
+ fix_safeyaml! %w(!tmp !var)
88
+
85
89
  definition = YAML.load(yaml)
86
90
  raise "Definition should be a Hash" unless definition.kind_of?(Hash)
87
91
  # convert fixnums to literals -- to make definitions of e.g. ports more convenient
@@ -130,5 +134,15 @@ module Conjur
130
134
  ]
131
135
  end
132
136
 
137
+
138
+ private
139
+ def fix_safeyaml! tags
140
+ # Including `conjur-asset-policy` adds the safe_yaml gem, which patches
141
+ # YAML.load to do so without deserializing objects with custom tags.
142
+ if defined?(SafeYAML)
143
+ SafeYAML::OPTIONS[:whitelisted_tags] =
144
+ SafeYAML::OPTIONS[:whitelisted_tags].concat(tags).uniq
145
+ end
146
+ end
133
147
  end
134
148
  end
@@ -19,6 +19,6 @@
19
19
  # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  #
21
21
  module Conjur
22
- VERSION = '5.2.4'
22
+ VERSION = '5.2.5'
23
23
  ::Version=VERSION
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.4
4
+ version: 5.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafal Rzepecki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-12 00:00:00.000000000 Z
12
+ date: 2016-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport