Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: hack project dash (#13010)

Danny Xuc4502c6d36f5
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 2feb89724c..8804a0c04e 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -250,7 +250,8 @@ func (in *ACLInterceptor) populateRawResources(ctx context.Context, authContext
resources := getResourceFromRequest(request, method)
for _, resource := range resources {
switch {
- case strings.HasPrefix(resource.Name, "projects/"):
+ // TODO(d): remove "projects/-" hack later.
+ case strings.HasPrefix(resource.Name, "projects/") && resource.Name != "projects/-":
project := projectRegex.FindString(resource.Name)
if project == "" {
return errors.Errorf("invalid project resource %q", resource.Name)