Skip to content

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

fix: acl interceptor (#10279)

p0ny01b8b63b5930
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 6e673aa3d1..99732312aa 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -58,7 +58,7 @@ func (in *ACLInterceptor) ACLInterceptor(ctx context.Context, request any, serve
if user == nil {
return nil, status.Errorf(codes.Unauthenticated, "unauthenticated for method %q", serverInfo.FullMethod)
}
- if isOwnerOrDBA(user.Role) {
+ if !in.profile.DevelopmentIAM && isOwnerOrDBA(user.Role) {
return handler(ctx, request)
}
@@ -90,7 +90,7 @@ func (in *ACLInterceptor) ACLStreamInterceptor(request any, ss grpc.ServerStream
if user == nil {
return status.Errorf(codes.Unauthenticated, "unauthenticated for method %q", serverInfo.FullMethod)
}
- if isOwnerOrDBA(user.Role) {
+ if !in.profile.DevelopmentIAM && isOwnerOrDBA(user.Role) {
return handler(request, ss)
}