Class: SettingsReader::VaultResolver::Engines::KV2

Inherits:
Abstract
  • Object
show all
Defined in:
lib/settings_reader/vault_resolver/engines/kv2.rb

Overview

Adapter to retrieve / renew secret from kv2 engine

Constant Summary collapse

MOUNT =
'secret'.freeze

Instance Attribute Summary

Attributes inherited from Abstract

#config

Instance Method Summary collapse

Methods inherited from Abstract

#get, #initialize

Methods included from Logging

#debug, #error, #info, #warn

Constructor Details

This class inherits a constructor from SettingsReader::VaultResolver::Engines::Abstract

Instance Method Details

#renew(_entry) ⇒ Object



12
13
14
# File 'lib/settings_reader/vault_resolver/engines/kv2.rb', line 12

def renew(_entry)
  # KV secrets are static. Nothing to do
end

#retrieves?(address) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/settings_reader/vault_resolver/engines/kv2.rb', line 8

def retrieves?(address)
  address.mount == MOUNT
end