Update app/Foliage/HackageSecurity.hs

Co-authored-by: Andrea Bedini <andrea@andreabedini.com>
This commit is contained in:
Yvan Sraka 2023-05-15 10:58:44 +02:00 committed by GitHub
parent 59e0d72cb9
commit f40673352f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,18 +40,6 @@ createKeys base = do
putStrLn " root keys:"
createDirectoryIfMissing True (base </> "root")
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "root")
putStrLn " target keys:"
createDirectoryIfMissing True (base </> "target")
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "target")
putStrLn " timestamp keys:"
createDirectoryIfMissing True (base </> "timestamp")
replicateM_ 1 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "timestamp")
putStrLn " snapshot keys:"
createDirectoryIfMissing True (base </> "snapshot")
replicateM_ 1 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "snapshot")
putStrLn " mirrors keys:"
createDirectoryIfMissing True (base </> "mirrors")
replicateM_ 3 $ createKey' KeyTypeEd25519 >>= writeKeyWithId (base </> "mirrors")
writeKeyWithId :: FilePath -> Some Key -> IO ()
writeKeyWithId base k = do