Module: Seekrit

Defined in:
lib/seekrit.rb,
lib/seekrit/client.rb,
lib/seekrit/crypto.rb,
lib/seekrit/errors.rb,
lib/seekrit/railtie.rb,
lib/seekrit/version.rb,
lib/seekrit/interpolate.rb

Overview

seekrit — read-path SDK for the zero-knowledge secrets manager.

require "seekrit"

client = Seekrit::Client.new     # token from ENV["SEEKRIT_TOKEN"]
secrets = client.resolve         # { "DATABASE_URL" => "...", ... }

Secrets are decrypted in-process; the API only ever sees ciphertext.

Defined Under Namespace

Modules: Crypto, Interpolate Classes: ApiError, Client, CryptoError, Error, Railtie, ReferenceError

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.load_env!(**opts) ⇒ Object

Convenience: load a token's secrets straight into ENV. Seekrit.load_env!



104
105
106
107
# File 'lib/seekrit/client.rb', line 104

def self.load_env!(**opts)
  override = opts.delete(:override) { false }
  Client.new(**opts).into_env(ENV, override: override)
end