Skip to content

Commit

Permalink
Allow underscores in the secret name (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
iokhotnikov committed Sep 16, 2024
1 parent 2078877 commit f941927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sst/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ var CmdSecretSet = &cli.Command{
}
}
}
if !regexp.MustCompile(`^[A-Z][a-zA-Z0-9]*$`).MatchString(key) {
if !regexp.MustCompile(`^[A-Z][a-zA-Z0-9_]*$`).MatchString(key) {
return util.NewReadableError(nil, "Secret names must start with a capital letter and contain only letters and numbers")
}
p, err := c.InitProject()
Expand Down

0 comments on commit f941927

Please sign in to comment.