Actions
Bug #28984
closedCustom roles with underscore are not allowed but error is misleading
Bug #28984:
Custom roles with underscore are not allowed but error is misleading
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Documentation
Target version:
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I dislike using that feature
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Priority:
103
Name check:
To do
Fix check:
Checked
Regression:
No
Description
When creating custom roles with an _ in their name, e.g. role_group, there is an error log which is misleading:
ERROR application.authentication - Error with custom role definition: custom role 'role_group' is invalid and will be ignored: 'any' and patterns 'kind_[read,edit,write,all] are reserved that can't be used for a custom role
Since the role does not have read|write|edit|all, I would expect it to be valid, but it is rejected anyway.
_ in the custom role name, so we should:
- make the log more explicit about that
- also change examples in the users XML file (examples are based on
_themselves and are therefore invalid:<role name="role_a0"/>) - user documentation mentions it but in the "Other pre-defined roles" section instead of "Custom roles": https://docs.rudder.io/reference/current/administration/users.html#_other_pre_defined_roles
We should fix those small aspects, until we relax the constraint and allow _ (if we decide to do so)
Updated by Clark ANDRIANASOLO 5 months ago
- Priority changed from N/A to To review
Updated by Vincent MEMBRÉ 5 months ago
- Target version changed from 9.0.7 to 9.0.8
Updated by Nicolas CHARLES 5 months ago
- Assignee set to François ARMAND
- Priority changed from To review to 1 (highest)
Updated by François ARMAND 5 months ago
- Status changed from New to In progress
Updated by François ARMAND 5 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Clark ANDRIANASOLO
- Pull Request set to https://github.com/Normation/rudder/pull/7195
Updated by Anonymous 5 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7fdda637102f8e8d1e10ef9cd432caf0f44e1797.
Updated by Véronique HAYAERT 5 months ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset 4 months ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 9.0.8 which was released today.
Actions