mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
Fixes #855
update OpenAPI definition, add test cases, fix lint Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ func NewEmptySecret() *Secret {
|
||||
|
||||
// NewPlainSecret stores the give payload in a plain text secret
|
||||
func NewPlainSecret(payload string) *Secret {
|
||||
return NewSecret(sdkkms.SecretStatusPlain, payload, "", "")
|
||||
return NewSecret(sdkkms.SecretStatusPlain, strings.TrimSpace(payload), "", "")
|
||||
}
|
||||
|
||||
// Initialize configures the KMS support
|
||||
|
||||
Reference in New Issue
Block a user