sanctum 0.8.5.rc3 → 0.8.5.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/sanctum/vault_secrets.rb +7 -1
- data/lib/sanctum/vault_transit.rb +1 -1
- data/lib/sanctum/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: 25943604a0d0c1ecf990e5dd50957ead16063674131ac14b97c0f1dfa70526ec
|
4
|
+
data.tar.gz: a6282afcb3e99108abb97623e3304adcad0025d78193c7680c441f8be905a16c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf7b7f0d5cee948e82611da96eafedf13592b55cfd53af0bf9e314ac698825cd5ca4a9ed4e855e034a3aa751a893f8bbc1ef4b836d2a519bf5a5919d75113d5
|
7
|
+
data.tar.gz: e76954478cfbc3eac2e6e4ea880077bcc7e22193f1f2f6945fafc172ea9f7e8a9be2ca7c7ab5be75ed7b6abbf49ca5209cc8be67f93983eaaa78162332c8e1c9
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -124,6 +124,7 @@ The configuration file is a Hash represented in YAML format with three possible
|
|
124
124
|
* Built in Backup features
|
125
125
|
* Performance optimizations
|
126
126
|
* Reorganize/cleanup code(add adapters, etc)
|
127
|
+
* Add delete command which will delete locally/remote secret
|
127
128
|
|
128
129
|
## Backup scenario.
|
129
130
|
One possible use case for sanctum is for backing up vault secrets. This feature is NOT built in yet.
|
@@ -58,7 +58,13 @@ module Sanctum
|
|
58
58
|
# me will contain /metadata if secrets_version 2 due to list_prefix method
|
59
59
|
if secrets_version == "2"
|
60
60
|
me = me.sub(/metadata/, "data")
|
61
|
-
|
61
|
+
# It's possible for a vault secret to be nil...
|
62
|
+
if vault_client.logical.read(me).nil?
|
63
|
+
warn red("vault secret '#{me}' contains a null vaule, ignoring...")
|
64
|
+
{}
|
65
|
+
else
|
66
|
+
vault_client.logical.read(me).data[:data]
|
67
|
+
end
|
62
68
|
else
|
63
69
|
vault_client.logical.read(me).data
|
64
70
|
end
|
data/lib/sanctum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanctum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.5.
|
4
|
+
version: 0.8.5.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corban Raun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vault
|