on_container 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/on_container/load_env_secrets.rb +5 -5
- data/lib/on_container/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819d1f5a057f277e3b816eedd99435c9816b6d1ec6ff2e79e2d90798b5b74648
|
4
|
+
data.tar.gz: 163f0552ec15c2b0199934ec81313d8708877339e20504c427f270e228ecc94b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c10e11aa18e20cd8fb02ee53018f5477c1ec661ef6c43329b6c0a74814d0bb7b00f785c9966f2006670e0c73858c36d719ff5177ece9b35fb54fbc33743808
|
7
|
+
data.tar.gz: 900379b6246d9d44f301a81213e965feec8cb1235bd514fc9235b3e5fd5dc97b5f91399f25b18ac7efd0596e9a15e878766f85726e98040b30a688e80f0519db
|
@@ -12,10 +12,10 @@ OnContainer::Secrets::GoogleCloud::EnvLoader.perform!
|
|
12
12
|
|
13
13
|
# Process only a known list of env vars that can filled by reading a file (i.e.
|
14
14
|
# a docker secret):
|
15
|
-
Dir["#{ENV.fetch('SECRETS_PATH', '/run/secrets
|
16
|
-
|
17
|
-
|
18
|
-
secret_envvarname =
|
15
|
+
Dir["#{ENV.fetch('SECRETS_PATH', '/run/secrets')}/**/*"].map do |path|
|
16
|
+
Pathname.new(path)
|
17
|
+
end.select(&:file?).each do |secret_filepath|
|
18
|
+
secret_envvarname = secret_filepath.basename('.*').to_s.upcase
|
19
19
|
|
20
20
|
# Skip if variable is already set - already-set variables have precedence over
|
21
21
|
# the secret files:
|
@@ -55,4 +55,4 @@ url_keys.each do |url_key|
|
|
55
55
|
ENV[url_key] = uri.to_s
|
56
56
|
end
|
57
57
|
|
58
|
-
# STDERR.puts ENV.inspect
|
58
|
+
# STDERR.puts ENV.inspect
|
data/lib/on_container/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: on_container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|