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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9644d3be1fdfcdd2e01ea42a1a0abd2e695bd3b2e9fe156083b10f64fb61540
4
- data.tar.gz: 6b467122d7066368cf662a37c00f7d9bad88e7c4e1d9aabbb7dc12d54fed70cc
3
+ metadata.gz: 25943604a0d0c1ecf990e5dd50957ead16063674131ac14b97c0f1dfa70526ec
4
+ data.tar.gz: a6282afcb3e99108abb97623e3304adcad0025d78193c7680c441f8be905a16c
5
5
  SHA512:
6
- metadata.gz: 4b8f3ecbae4f6085c442ff12aa87560d884016a1bae709e7110a6a766d53b133986b148ccb69772acf2d3eb2ddba77c26a0305e41992f5e319ad4a485fe666ee
7
- data.tar.gz: 9f081fb88da05525f0666a05994a2299136e1f52c37d2979607849dd4db752cb71e15802ac3cdbfeffc515c6f57aba73a1d91c7c32fa8e703f4d667bca0abbd0
6
+ metadata.gz: 6bf7b7f0d5cee948e82611da96eafedf13592b55cfd53af0bf9e314ac698825cd5ca4a9ed4e855e034a3aa751a893f8bbc1ef4b836d2a519bf5a5919d75113d5
7
+ data.tar.gz: e76954478cfbc3eac2e6e4ea880077bcc7e22193f1f2f6945fafc172ea9f7e8a9be2ca7c7ab5be75ed7b6abbf49ca5209cc8be67f93983eaaa78162332c8e1c9
data/.gitignore CHANGED
@@ -1,4 +1,6 @@
1
1
  .rspec_status
2
+ sanctum.yaml
3
+ vault/
2
4
  /.bundle/
3
5
  /.yardoc
4
6
  /_yardoc/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sanctum (0.8.5.rc3)
4
+ sanctum (0.8.5.rc4)
5
5
  gli (~> 2.18)
6
6
  hashdiff (~> 0.3)
7
7
  vault (~> 0.12)
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
- vault_client.logical.read(me).data[:data]
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
@@ -3,7 +3,7 @@ require 'pathname'
3
3
 
4
4
  module Sanctum
5
5
  class VaultTransit
6
- include Colorizer
6
+ extend Colorizer
7
7
 
8
8
  def self.encrypt(vault_client, secrets, transit_key)
9
9
  transit_key = Pathname.new(transit_key)
@@ -1,3 +1,3 @@
1
1
  module Sanctum
2
- VERSION = "0.8.5.rc3"
2
+ VERSION = "0.8.5.rc4"
3
3
  end
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.rc3
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-20 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vault