Illegal characters allowed in stack name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Steven Hardy | ||
Grizzly |
Fix Released
|
Medium
|
Steven Hardy |
Bug Description
According to AWS docs for CreateStack, only alphanumeric characters should be allowed for stack names:
http://
Although this forum post suggests hyphens are also allowed:
https:/
We don't seem to do any validation at present though, so it's possible to pass a stack name containing, for example, a comma character. There are places where we rely on comma-separated lists (e.g autoscaling but I don't think we use the fully-qualified instance resource names including the stack name) so pretty sure it's a bad idea to allow this :)
Perhaps a reasonable compromise would be to allow alphanumeric characters, hyphens, underscores and nothing else?
Changed in heat: | |
milestone: | none → grizzly-3 |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in heat: | |
assignee: | nobody → pfreund (pierre-freund) |
Changed in heat: | |
status: | Triaged → In Progress |
status: | In Progress → Fix Committed |
Changed in heat: | |
status: | Fix Committed → In Progress |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | grizzly-rc1 → 2013.1 |
We disallow slashes already, if that's any help ;)
https:/ /github. com/openstack/ heat/blob/ 8d6aa11e707dee6 6c421bc2906c166 fc58c150dc/ heat/engine/ parser. py#L62