diff --git a/internal/jujuapi/access_control.go b/internal/jujuapi/access_control.go index 2cff4444a..d7a79c65a 100644 --- a/internal/jujuapi/access_control.go +++ b/internal/jujuapi/access_control.go @@ -52,7 +52,7 @@ var ( // (1)[group](2)[-](3)[alices-wonderland](10)[#member] // So if a group, user, UUID, controller name comes in, it will always be index 3 for them // and if a relation specifier is present, it will always be index 10 - jujuURIMatcher = regexp.MustCompile(`([a-zA-Z0-9]*)(\-|\z)([a-zA-Z0-9-@]*)(\:|)([a-zA-Z0-9-@]*)(\/|)([a-zA-Z0-9-]*)(\.|)([a-zA-Z0-9-]*)([a-zA-Z#]*|\z)\z`) + jujuURIMatcher = regexp.MustCompile(`([a-zA-Z0-9]*)(\-|\z)([a-zA-Z0-9-@.]*)(\:|)([a-zA-Z0-9-@]*)(\/|)([a-zA-Z0-9-]*)(\.|)([a-zA-Z0-9-]*)([a-zA-Z#]*|\z)\z`) ) // AddGroup creates a group within JIMMs DB for reference by OpenFGA.