Class: OpenLoam::Encryption::MissingMasterKeyError
- Defined in:
- lib/open_loam/encryption.rb
Overview
Raised when a crypto operation is attempted with no master key configured.
Instance Method Summary collapse
-
#initialize(msg = "OpenLoam::Encryption has no master key. Set OPEN_LOAM_MASTER_KEY (or " \ "`OpenLoam::Encryption.master_key = ...`) to a high-entropy secret, e.g. " \ "`SecureRandom.hex(32)`. NEVER commit it; use ENV or Rails credentials.") ⇒ MissingMasterKeyError
constructor
A new instance of MissingMasterKeyError.
Constructor Details
#initialize(msg = "OpenLoam::Encryption has no master key. Set OPEN_LOAM_MASTER_KEY (or " \ "`OpenLoam::Encryption.master_key = ...`) to a high-entropy secret, e.g. " \ "`SecureRandom.hex(32)`. NEVER commit it; use ENV or Rails credentials.") ⇒ MissingMasterKeyError
Returns a new instance of MissingMasterKeyError.
18 19 20 21 22 |
# File 'lib/open_loam/encryption.rb', line 18 def initialize(msg = "OpenLoam::Encryption has no master key. Set OPEN_LOAM_MASTER_KEY (or " \ "`OpenLoam::Encryption.master_key = ...`) to a high-entropy secret, e.g. " \ "`SecureRandom.hex(32)`. NEVER commit it; use ENV or Rails credentials.") super end |