class ChiliLogger::Values::Secrets
class to centralize access to all secrets stored in 3rd-party managers
class to centralize access to all secrets stored in 3rd-party managers
Public Class Methods
new(manager_name = 'aws')
click to toggle source
# 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
Public Instance Methods
get_secrets_collection(collection_name)
click to toggle source
# File lib/helpers/values/secrets/secrets.rb, line 16 def get_secrets_collection(collection_name) @secrets_manager.get_secrets_collection(collection_name) end
Private Instance Methods
supported_managers()
click to toggle source
# File lib/helpers/values/secrets/secrets.rb, line 22 def supported_managers { 'aws' => AwsSecretsManager } end