misc: added secret name trimming

This commit is contained in:
Sheen Capadngan
2024-06-27 19:41:00 +08:00
parent 7cdc47cd3a
commit b2d6563994
3 changed files with 3 additions and 3 deletions

View File

@@ -885,7 +885,7 @@ func SetEncryptedSecrets(secretArgs []string, secretType string, environmentName
}
// Key and value from argument
key := splitKeyValueFromArg[0]
key := strings.TrimSpace(splitKeyValueFromArg[0])
value := splitKeyValueFromArg[1]
hashedKey := fmt.Sprintf("%x", sha256.Sum256([]byte(key)))