hako-vault 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hako-vault.gemspec +2 -1
- data/lib/hako/env_providers/vault.rb +1 -2
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ab8f9cf0880782503565e24819fe1ba10a0514c
|
4
|
+
data.tar.gz: 116f4a68bc5e8195d36d96ad0b61b99ac9dc364d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88a1f61545a4fb1fb7f4ba059ca2afc3536b373e3d760b40edca4423a1c3ea0c352d4dec3fb011a9b03bf2cbe542b5c3c3b476e64f419614c19e464f6f8160a2
|
7
|
+
data.tar.gz: 53c6bc27a8eced1ef346e394d9e6f8e5a1a1843e76392288fbeb13b65507461558351e4e3b8225b3dfc7321050999901c7973ff56b32053d2a42f966472aaad6
|
data/hako-vault.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'hako-vault'
|
8
|
-
spec.version = '0.1.
|
8
|
+
spec.version = '0.1.1'
|
9
9
|
spec.authors = ['Kohei Suzuki']
|
10
10
|
spec.email = ['eagletmt@gmail.com']
|
11
11
|
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
+
spec.add_dependency 'hako'
|
24
25
|
spec.add_development_dependency 'bundler'
|
25
26
|
spec.add_development_dependency 'rake'
|
26
27
|
spec.add_development_dependency 'rubocop'
|
@@ -26,7 +26,6 @@ module Hako
|
|
26
26
|
@http.use_ssl = true
|
27
27
|
end
|
28
28
|
@directory = options['directory']
|
29
|
-
@token = ENV['VAULT_TOKEN']
|
30
29
|
end
|
31
30
|
|
32
31
|
# @param [Array<String>] variables
|
@@ -36,7 +35,7 @@ module Hako
|
|
36
35
|
@http.start do
|
37
36
|
variables.each do |key|
|
38
37
|
req = Net::HTTP::Get.new("/v1/secret/#{@directory}/#{key}")
|
39
|
-
req['X-Vault-Token'] =
|
38
|
+
req['X-Vault-Token'] = ENV['VAULT_TOKEN']
|
40
39
|
res = @http.request(req)
|
41
40
|
case res.code
|
42
41
|
when '200'
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hako-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hako
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
104
|
version: '0'
|
91
105
|
requirements: []
|
92
106
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.8
|
94
108
|
signing_key:
|
95
109
|
specification_version: 4
|
96
110
|
summary: Provide variables from Vault to hako
|