localvault 1.12.2 → 1.12.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02acc26385f42007abd7ba033716d5755f8a7c147a2f81a022ac839508cc4909
4
- data.tar.gz: 84b8ac3eda467e9df18a8befa60eff2879b2ff838a23d45cee3b65cf72134e96
3
+ metadata.gz: 6798f21f6875910fa68c5300a929b4c18e757a9c03251cd71d46bb46e6cd85b7
4
+ data.tar.gz: a40a445f7d92baad0645bc9ab2f2a900bda43d09a657e07735c565bb5f705f01
5
5
  SHA512:
6
- metadata.gz: 162ac0715abff981feeb7b8f2209c98e50d73c2e7061270fbc399075405ab8aed4fc4cd987d9a9286275e5b0c667b0e0793b8bddf74e969bbc069d5ce9fe7e94
7
- data.tar.gz: 1ea2253c3bf76d5f272583a8f86107b0c15c6dd1f39c68f2f44530749da2f659ae642e4294b23ff25f89fcb12204968e6e5b5736afbeb170e45390b1055363f5
6
+ metadata.gz: 45cf703a841eedc73c9b77ac19a92059075dd914c4c1075ff79beca784b61fce4396ffbf51b206315f55c6179c44270d3238a6174c479bc1a2e9e1e9bf4e34d7
7
+ data.tar.gz: 661933cfaa2a6f1a69a5459f0e87580912178e1faeeff0becf7823e4fbb007fa63fad8cfa2f7a05d363146309e20ef1ad4b316143d94a541ba1efb78ae3aa340
@@ -116,7 +116,7 @@ module LocalVault
116
116
  # disappearing from help.
117
117
  HELP_SECTIONS = [
118
118
  ["GETTING STARTED", %w[login config init demo]],
119
- ["SECRETS", %w[set get show groups list delete import env exec]],
119
+ ["SECRETS", %w[set get show reveal groups list delete import env exec]],
120
120
  ["VAULT MANAGEMENT", %w[vaults switch rekey unlock lock reset rename copy]],
121
121
  ["SYNC (requires localvault login)", %w[sync]],
122
122
  ["TEAM SHARING (requires localvault login)", %w[dashboard verify add remove team]],
@@ -526,6 +526,29 @@ module LocalVault
526
526
  abort_with "Wrong passphrase for vault '#{vault_name}'"
527
527
  end
528
528
 
529
+ desc "reveal [GROUP]", "Show secrets with values unmasked (same as `show --reveal`)"
530
+ long_desc <<~DESC
531
+ Show secrets with their values unmasked. Identical to `show --reveal`, and
532
+ it takes the same options — `reveal` is simply the verb most people reach
533
+ for. A bare argument is treated as the group to show.
534
+
535
+ \x05 localvault reveal # every secret, unmasked
536
+ \x05 localvault reveal CLOUDFLARE # one group
537
+ \x05 localvault reveal --group CLOUDFLARE # the same thing
538
+ \x05 localvault reveal -p kuickr -v intellectaco
539
+
540
+ Plaintext output is still gated: it refuses to print values when stdout is
541
+ not a terminal, so a redirect or a pipe can't quietly capture secrets.
542
+ DESC
543
+ method_option :group, aliases: "-g", type: :string, lazy_default: GROUP_ALL_SENTINEL, desc: "Show all groups or one group by name"
544
+ method_option :project, aliases: "-p", type: :string, desc: "Show only this project group"
545
+ def reveal(group = nil)
546
+ merged = options.merge("reveal" => true)
547
+ merged["group"] = group if group && merged["project"].nil?
548
+ self.options = merged
549
+ show
550
+ end
551
+
529
552
  desc "show", "Display secrets in a formatted table (masked by default)"
530
553
  long_desc <<~DESC
531
554
  Show secrets in the current vault. Values are masked by default.
@@ -1,3 +1,3 @@
1
1
  module LocalVault
2
- VERSION = "1.12.2"
2
+ VERSION = "1.12.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localvault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.2
4
+ version: 1.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nauman Tariq