Class: ChiliLogger::Values::Secrets

Inherits:
Object
  • Object
show all
Defined in:
lib/helpers/values/secrets/secrets.rb,
lib/helpers/values/secrets/aws_secrets_manager.rb

Overview

class to centralize access to all secrets stored in 3rd-party managers

Defined Under Namespace

Classes: AwsSecretsManager

Instance Method Summary collapse

Constructor Details

#initialize(manager_name = 'aws') ⇒ Secrets

Returns a new instance of Secrets.



9
10
11
12
13
14
# File 'lib/helpers/values/secrets/secrets.rb', line 9

def initialize(manager_name = 'aws')
  manager_class = supported_managers[manager_name.to_s]
  manager_class ||= supported_managers['aws']

  @secrets_manager = manager_class.new
end

Instance Method Details

#get_secrets_collection(collection_name) ⇒ Object



16
17
18
# File 'lib/helpers/values/secrets/secrets.rb', line 16

def get_secrets_collection(collection_name)
  @secrets_manager.get_secrets_collection(collection_name)
end