Project

General

Profile

Actions

Bug #28984

closed

Custom roles with underscore are not allowed but error is misleading

Bug #28984: Custom roles with underscore are not allowed but error is misleading

Added by Clark ANDRIANASOLO 5 months ago. Updated 4 months ago.

Status:
Released
Priority:
1 (highest)
Category:
Documentation
Target version:
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.

It seems that we validate that we don't have _ in the custom role name, so we should:

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 Actions #1

  • Priority changed from N/A to To review

Updated by Vincent MEMBRÉ 5 months ago Actions #2

  • Target version changed from 9.0.7 to 9.0.8

Updated by Nicolas CHARLES 5 months ago Actions #3

  • Assignee set to François ARMAND
  • Priority changed from To review to 1 (highest)

Updated by François ARMAND 5 months ago Actions #4

  • Status changed from New to In progress

Updated by François ARMAND 5 months ago Actions #5

  • 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 Actions #6

  • Status changed from Pending technical review to Pending release

Updated by Véronique HAYAERT 5 months ago Actions #7

  • Fix check changed from To do to Checked

Updated by Alexis Mousset 4 months ago Actions #8

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 9.0.8 which was released today.

Actions

Also available in: PDF Atom