Error adding a secret/proper format

When I added a secret to my space, I got the following error:

Error adding secret: “key” with value “arl-demo-key” fails to match the required pattern: /[1][_a-zA-Z0-9]*$/

I can’t find any references to the “required pattern”. Please help.


  1. a-zA-Z ↩︎

I removed the “-” from the key name and it worked.

Check to see if your secret key contains any special characters or spaces. If present, replace them with permitted characters.
Here are examples of keys that match the pattern:
my_secret_key
demo123
api_key
If you’re still having trouble, try creating a secret key that consists of only letters, numbers, and underscores, and make sure the value you enter matches that pattern.