sekreto 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sekreto/config.rb +1 -0
- data/lib/sekreto/railtie.rb +1 -1
- data/lib/sekreto/version.rb +1 -1
- data/lib/sekreto.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b4f15a52a583144261e8caedc8b7c777cbac50d60fa4e82114853643e90fea
|
4
|
+
data.tar.gz: a7c090f7207e1891f99e94ba02d3a697b3fe8d14bb370cdd9b8d55274d3bd75a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbf68b03a6c59e32678fadab5601d1a9a8a88e352d76cd03341ff5b6cd7ccef9f8c701766d911d335f4efae20886c86542c1d751285f76dec2c1ef1ee46657f8
|
7
|
+
data.tar.gz: e1ec6ffc2d9042d9d28347af0d96b51a9ffc2bce71b6cdee1c595f14a3fc3e153c3682050c346c13eb08f59d33956343fb041b4a6223f28d73c7bf7a41773fff
|
data/lib/sekreto/config.rb
CHANGED
data/lib/sekreto/railtie.rb
CHANGED
@@ -5,7 +5,7 @@ module Sekreto
|
|
5
5
|
# Defaults the prefix to Rails app name and Rails.env e.g. foo-staging
|
6
6
|
# Defaults allowed envs to check Rails.env is production or staging
|
7
7
|
class Railtie < ::Rails::Railtie
|
8
|
-
config.
|
8
|
+
config.before_configuration do
|
9
9
|
app_name = ::Rails.application.class.to_s.split('::').first.downcase
|
10
10
|
|
11
11
|
Sekreto.setup do |setup|
|
data/lib/sekreto/version.rb
CHANGED
data/lib/sekreto.rb
CHANGED
@@ -33,6 +33,7 @@ module Sekreto
|
|
33
33
|
# @return [String] - The value of the stored secret
|
34
34
|
def get_value(secret_id, prefix = nil)
|
35
35
|
fail 'Not allowed env' unless config.is_allowed_env.call
|
36
|
+
|
36
37
|
secrets_manager.get_secret_value(
|
37
38
|
secret_id: secret_name(secret_id, prefix)
|
38
39
|
).secret_string
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sekreto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Autolist Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-secretsmanager
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.12.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.12.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|