You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for dynamic configuration variables specifies that Configuration keys may only contain lowercase letters and underscores between letters.
Currently, if i deploy an application with a malformed configuration key (e.g. LOG_LEVEL) my application will serve 500 and my logs will contain angry shouting about what the proper format is for keys.
I think it would be ideal if we somehow validate configuration keys pre-deploy/up or ask the doctor to do it.
The text was updated successfully, but these errors were encountered:
fibonacci1729
changed the title
Detect malformed configuration variables before up/deploy
Detect malformed configuration variable keys before up/deploy
Jun 27, 2023
Yes, it looks like Spin validates the names only at run time (i.e. this happens locally not just in cloud). I am not sure why - I think this has come up before but can't remember the outcome. I'll take a look - thanks for flagging this!
The documentation for dynamic configuration variables specifies that
Configuration keys may only contain lowercase letters and underscores between letters
.Currently, if i deploy an application with a malformed configuration key (e.g.
LOG_LEVEL
) my application will serve500
and my logs will contain angry shouting about what the proper format is for keys.I think it would be ideal if we somehow validate configuration keys pre-deploy/up or ask the doctor to do it.
The text was updated successfully, but these errors were encountered: