Skip to content

Option to suppress "not authorized" errors for inaccessible relation targets #766

Description

@AljoshaVieth

In setups where different users or environments have different access permissions on collections/databases, relations can point to a collection the current user isn't authorized to access. This is a fairly common scenario (e.g. shared relation definitions across users with varying permission levels), and in that case an error like the following gets shown every time the relation is resolved:

Error getting related documents: MongoServerError: not authorized to execute command { find: "", filter: {...}, projection: {...}, ... }
Image

Since this is an expected condition rather than an actual bug, it would be great to have an option to suppress or silently skip these "not authorized" errors when resolving relations, or at least downgrade them to a quiet log/warning instead of a user-facing error.

Thanks for considering this!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions