navikt / kafka-adminrest

A REST interface for kafka topic creation/deletion with automatic handling of LDAP groups and access control lists
MIT License
3 stars 1 forks source link

Oneshot: fails if authenticated user attempts to add him/herself as a manager #11

Closed tronghn closed 5 years ago

tronghn commented 5 years ago

The default behavior for the oneshot endpoint is to implicitly add the authenticated user as a manager.

Thus, if an authenticated user attempts to add him/herself as a manager, an LDAP error will be returned due to the manager role being applied twice.

Should document this behavior better as well as handling the case of duplicate entries automatically.