mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
fix!: enforce regex for agent names (#16641)
Underscores and double hyphens are now blocked. The regex is almost the exact same as the `coder_app` `slug` regex, but uppercase characters are still permitted.
This commit is contained in:
@ -161,11 +161,11 @@ func TestTemplates(t *testing.T) {
|
||||
Name: "some",
|
||||
Type: "example",
|
||||
Agents: []*proto.Agent{{
|
||||
Id: "something",
|
||||
Id: "something",
|
||||
Name: "test",
|
||||
Auth: &proto.Agent_Token{
|
||||
Token: uuid.NewString(),
|
||||
},
|
||||
Name: "test",
|
||||
}},
|
||||
}, {
|
||||
Name: "another",
|
||||
|
Reference in New Issue
Block a user