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:
2022-07-29 20:31:58 -05:00
parent bbe315c450
commit 478384aae9
8 changed files with 50 additions and 32 deletions

View File

@ -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

View File

@ -20,6 +20,6 @@ data DhallConfig = DhallConfig
, applicationHost :: String
, applicationPort :: Int
, dbFile :: String
, dbSalt :: String
, dbKey :: String
, linkLength :: Int
} deriving (Generic, Show)