armrest 0.2.1 → 0.2.2
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/CHANGELOG.md +3 -0
- data/lib/armrest/api/auth/cli.rb +4 -2
- data/lib/armrest/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: 8d1a435132d293f351949c1d9d2e77cb28e9fd78184249244c1ec6d8ae857c47
|
|
4
|
+
data.tar.gz: 7fd1d29acd2f837924d0fc0f4cb15bf8253a43c955a46fca30c5eb25b3e9eaa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9412dafc2f04867514458f21e9a14c8df14658ad622a212660bf74fb5ec5de84f486f3343048d2ab2421fb0ccf892c98a9dd0c0f954ee83554035b6aa189c203
|
|
7
|
+
data.tar.gz: b9aa3ab20fab1fa45a1f4507aad1e6400bacc04058eb6b1fc2ccb8473319a38add55bb1aec41d348ed0e014d031a8afcdf1d86591e4454ff0149ea0921643103
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [0.2.2] - 2023-12-31
|
|
7
|
+
- [#8](https://github.com/boltops-tools/armrest/pull/8) cli auth scope for vault secrets
|
|
8
|
+
|
|
6
9
|
## [0.2.1] - 2023-12-22
|
|
7
10
|
- [#6](https://github.com/boltops-tools/armrest/pull/6) Adjust the AZ timeout
|
|
8
11
|
|
data/lib/armrest/api/auth/cli.rb
CHANGED
|
@@ -22,10 +22,12 @@ module Armrest::Api::Auth
|
|
|
22
22
|
data.deep_transform_keys { |k| k.underscore } # to normalize the structure to the other classes
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
# and will update it only when it expires. So dont think we need to handle caching
|
|
25
|
+
# The az cli command itself has it's own caching. So dont think we need to handle caching
|
|
27
26
|
def get_access_token
|
|
28
27
|
command = "az account get-access-token -o json"
|
|
28
|
+
if resource.include?("vault.azure.net")
|
|
29
|
+
command += " --scope https://vault.azure.net/.default"
|
|
30
|
+
end
|
|
29
31
|
logger.debug "command: #{command}"
|
|
30
32
|
out = `#{command}`
|
|
31
33
|
if $?.success?
|
data/lib/armrest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: armrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-12-
|
|
11
|
+
date: 2023-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|