rails_kms_credentials 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_kms_credentials/store/azure_key_vault/client/base.rb +6 -0
- data/lib/rails_kms_credentials/store/azure_key_vault/client/client_credentials.rb +0 -4
- data/lib/rails_kms_credentials/store/azure_key_vault/client/managed_identity.rb +3 -1
- data/lib/rails_kms_credentials/store/azure_key_vault.rb +1 -1
- data/lib/rails_kms_credentials/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: 532e8e95ed3635abe5c43507b35822004aba639aa7e54c6288e2d7c67c206c9b
|
4
|
+
data.tar.gz: 30bd1527ede5fd129a31941a5252b98196ce1b12c997f10576c29c83ed583b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b76e471786e5ac4d9ab8e1017e23916fcd469f1144e5352e72d25e644cc9e646bd8e7823b7629254723f11c30a60fba819e402d1405079033e3f26338c6bbe1
|
7
|
+
data.tar.gz: 616d9251fb153f967579886457d0370651a17425e693cb31af31c9966f1bb9a88713036bf455ca120095b6ace6ad84f2f72b3d0457b13a253a654d3685a3873f
|
@@ -27,8 +27,10 @@ module RailsKmsCredentials
|
|
27
27
|
|
28
28
|
def access_token
|
29
29
|
return @access_token if instance_variable_defined?(:@access_token)
|
30
|
+
url = 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net'
|
31
|
+
url += "&client_id=#{client_config['client_id']}" if client_config['client_id']
|
30
32
|
@_access_token_response = HTTParty.get(
|
31
|
-
|
33
|
+
url,
|
32
34
|
{
|
33
35
|
headers: { Metadata: 'true' },
|
34
36
|
}
|
@@ -23,7 +23,7 @@ module RailsKmsCredentials
|
|
23
23
|
@client = @_client_klass.new self
|
24
24
|
@secret_prefix = case config['client']['secret_prefix']
|
25
25
|
when true
|
26
|
-
Rails.application.class.
|
26
|
+
Rails.application.class.name.split('::').first.underscore.dasherize
|
27
27
|
when String
|
28
28
|
config['client']['secret_prefix']
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_kms_credentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Yelverton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|