mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
revertprovider: crypted provider was not supported in v4
also ensure to initialize kms before the dataprovider, it could be needed to downgrade secret from cloud kms providers
This commit is contained in:
@@ -277,6 +277,9 @@ func convertFsConfigToV4(fs Filesystem, username string) (compatFilesystemV4, er
|
||||
}
|
||||
fsV4.GCSConfig.Credentials = []byte(creds)
|
||||
}
|
||||
case CryptedFilesystemProvider:
|
||||
// crypted provider was not supported in v4, the configuration will be lost
|
||||
fsV4.Provider = 0
|
||||
}
|
||||
return fsV4, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user