mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
expose KMS as plugin
This commit is contained in:
@@ -597,6 +597,16 @@ func getPluginsFromEnv(idx int) {
|
||||
isSet = true
|
||||
}
|
||||
|
||||
kmsScheme, ok := os.LookupEnv(fmt.Sprintf("SFTPGO_PLUGINS__%v__KMS_OPTIONS__SCHEME", idx))
|
||||
if ok {
|
||||
pluginConfig.KMSOptions.Scheme = kmsScheme
|
||||
}
|
||||
|
||||
kmsEncStatus, ok := os.LookupEnv(fmt.Sprintf("SFTPGO_PLUGINS__%v__KMS_OPTIONS__ENCRYPTED_STATUS", idx))
|
||||
if ok {
|
||||
pluginConfig.KMSOptions.EncryptedStatus = kmsEncStatus
|
||||
}
|
||||
|
||||
cmd, ok := os.LookupEnv(fmt.Sprintf("SFTPGO_PLUGINS__%v__CMD", idx))
|
||||
if ok {
|
||||
pluginConfig.Cmd = cmd
|
||||
|
||||
Reference in New Issue
Block a user