Skip to content

Make basic auth return full permissions instead of ErrNotImplemented #10186

@Annaseli

Description

@Annaseli

What

Currently, functions such as ListEffectivePolicies in basic auth returns ErrNotImplemented, which forces every list operation (ListRepositories, ListNamespaces, ListTables, ListViews) to check for this error and skip RBAC filtering when it occurs.

Instead, basic auth should return a response that grants full permissions.

Why

This simplifies the controller code by removing the errors.Is(err, auth.ErrNotImplemented) from all four list implementations.

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