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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/conjur/conjurenv.rb +14 -0
- data/lib/conjur/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4d7900d35da02505f1bfb843f9f79414fc49b5
|
4
|
+
data.tar.gz: 4c382758571b68d6de8c2e501c81726179cc987c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48fa15fa3e402e2d72bfffb14b8e895f5078ca2de8840abad219a76d65e07e64fd0e4c30dc7f78a16e24717738c0dc1dd31718d95ec9dd96e7c5655788df4512
|
7
|
+
data.tar.gz: 27f5ef9102d531e69a8d8821d71678914632ab4a398ff00ce934b968916709194bbb0d2b2467d6723087f61220132d6af2c059ca7c1fa9f548c8663f37495c56
|
data/CHANGELOG.md
CHANGED
data/lib/conjur/conjurenv.rb
CHANGED
@@ -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
|
data/lib/conjur/version.rb
CHANGED
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
|
+
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
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|