Skip to content

Authentik remove Admins #282

Open
Open
@kilimnik

Description

@kilimnik

The Authentik docs state that one should add the Service Account as an Admin. I didn't want to do that as this introduces a big security risk to authentik, becuase an admin can change any setting and impersonate users and so on.
I looked into what you were actually doing with that user, as far as I can tell you are using it to list and read user accounts as well as to remove them.

I added the Api Access scope to the provider and gave the service account the specific permissions to read and delete users, and it's working great without the big step of giving admin access to a process which does not need it.

I would also argue that netbird should not be able to delete users from authentik, though that's a different discussion and can be done by just not assigning the delete user permission to the service account.

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