Project

General

Profile

Actions

Enhancement #20686

open

Don't allow creation of user if an invalid user of same name exists

Added by François ARMAND almost 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
N/A
Assignee:
-
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

We ignore user from /opt/rudder/etc/rudder-users.xml that are not valid: for example, the one missing a password field.

If we have such an user, we can still add an user with the same name from the plugin UI. Then, there is two users with the same name.
It does not seems to create any problem, but it would be easy to not understand what is happening by looking at the file, and perhaps modify the incorrect entry.

It would be better to at least do an error in that case (but the error would be hard to understand for an user, and not really actionnable) or better, to replace the incorrect user entry by the newly created correct one.

If we delete the user with the duplicate entry, both entries are deleted.

Ex:

Initial content:
<authentication ...>  
  ...
  <user role="admin" name="test"/>     <- this entry is invalid and will be ignore by rudder: the plugin does not display it.
</authentication>

From UI, create a "test" user, new file content: 
<authentication ...>  
  ...
  <user role="admin" name="test"/>     <- this entry is invalid and will be ignore by rudder: the plugin does not display it.
  ...
  <user role="admin" name="test" password="..." />
</authentication>

From UI, delete user "test": both entries are deleted. 
Actions #1

Updated by Elaad FURREEDAN almost 3 years ago

  • Target version changed from 6.2-1.9 to 940
Actions #2

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 940 to 6.2-1.11
Actions #3

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 6.2-1.11 to 7.2
Actions #4

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 7.2 to Ideas
Actions

Also available in: Atom PDF