mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add build tags to disable kms providers
This commit is contained in:
17
kms/gcp_disabled.go
Normal file
17
kms/gcp_disabled.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// +build nogcpkms
|
||||
|
||||
package kms
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/drakkan/sftpgo/version"
|
||||
)
|
||||
|
||||
func init() {
|
||||
version.AddFeature("-gcpkms")
|
||||
}
|
||||
|
||||
func newGCPSecret(base baseSecret, url, masterKey string) SecretProvider {
|
||||
return newDisabledSecret(errors.New("GCP KMS disabled at build time"))
|
||||
}
|
||||
Reference in New Issue
Block a user