samson_secret_puller 0.1.0 → 0.2.0
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/lib/samson_secret_puller.rb +10 -0
- 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: 39b201322c86d7f1fc1e70407bd761ceda3d8292
|
4
|
+
data.tar.gz: b19d85d1493fb9326e679f023375762be7c84833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9603daa9562373888672de0b1d46558886e1c1e2f80467e73d1b192889cb261778cf3f5521a44cda63b1f23af896ffd73c6868b67452e6ae14c5cea6eba5824
|
7
|
+
data.tar.gz: 42557448e86904b68f84f6703355a2cf9eb3d0af0c24406520dffc589db2860bd533e5a94b9565f2fddbfead0d3df61b05f56cc19f20691255c5f9377471eabf
|
data/lib/samson_secret_puller.rb
CHANGED
@@ -21,6 +21,16 @@ module SamsonSecretPuller
|
|
21
21
|
secrets
|
22
22
|
end
|
23
23
|
|
24
|
+
# When we run in kubernetes we need to read secrets from ENV and secret storage
|
25
|
+
# but other parts of the apps or gems do not need to know about this
|
26
|
+
def replace_ENV! # rubocop:disable Style/MethodName
|
27
|
+
old = $VERBOSE
|
28
|
+
$VERBOSE = nil
|
29
|
+
Object.const_set(:ENV, self)
|
30
|
+
ensure
|
31
|
+
$VERBOSE = old
|
32
|
+
end
|
33
|
+
|
24
34
|
private
|
25
35
|
|
26
36
|
def secrets
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samson_secret_puller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|