Class: SettingsReader::VaultResolver::Engines::Auth

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

Overview

Adapter to retrieve / renew auth tokens

Constant Summary collapse

MOUNT =
'auth'.freeze
AUTH_BACKEND =
ENV['VAULT_AUTH_BACKEND'] || 'kubernetes'
K8S_AUTH =
"#{AUTH_BACKEND}/login".freeze

Instance Attribute Summary

Attributes inherited from Abstract

#config

Instance Method Summary collapse

Methods inherited from Abstract

#get, #initialize, #renew

Methods included from Logging

#debug, #error, #info, #warn

Constructor Details

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

Instance Method Details

#retrieves?(address) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/settings_reader/vault_resolver/engines/auth.rb', line 10

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