Secrets are now stored as AES encrypted -> Base64 encoded strings, retrieval is still plaintext and will need to be updated to reflect the required unencoding and decryption process
This commit is contained in:
@ -22,3 +22,8 @@ dbPath :: PurrAction String
|
||||
dbPath = do
|
||||
conf <- lift ask
|
||||
return $ dbFile conf
|
||||
|
||||
encKey :: PurrAction String
|
||||
encKey = do
|
||||
conf <- lift ask
|
||||
return $ dbKey conf
|
||||
|
@ -20,6 +20,6 @@ data DhallConfig = DhallConfig
|
||||
, applicationHost :: String
|
||||
, applicationPort :: Int
|
||||
, dbFile :: String
|
||||
, dbSalt :: String
|
||||
, dbKey :: String
|
||||
, linkLength :: Int
|
||||
} deriving (Generic, Show)
|
||||
|
Reference in New Issue
Block a user