Project

General

Profile

Actions

Bug #25827

closed

cannot use roles from SSO containing = or ,

Added by Nicolas CHARLES about 1 month ago. Updated 23 days ago.

Status:
Released
Priority:
1 (highest)
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

when the role from sso contains = and/or , , the mapping does not work
Consider this appartenance

CN=AAAA-BBBBB,OU=Groups,OU=_IT,OU=BB-DD,OU=UUU-XXXX-YY,DC=ee,DC=if,DC=ttttt,DC=uuu

there is no way to get the mapping to work

IdP configuration has registered role mapping: [("CN=AAAA-BBBBB,OU=Groups,OU=_IT,OU=BB-DD,OU=UUU-XXXX-YY,DC=ee,DC=if,DC=ttttt,DC=uuu",administrator)]

(with the quote, it doesn't match anything)

tried to quote, triple quote, escape, without success

Actions #2

Updated by François ARMAND about 1 month ago

  • Assignee set to François ARMAND
Actions #3

Updated by François ARMAND about 1 month ago

  • Status changed from New to In progress
Actions #4

Updated by François ARMAND about 1 month 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-plugins/pull/769
Actions #5

Updated by Anonymous about 1 month ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Clark ANDRIANASOLO about 1 month ago

  • Fix check changed from To do to Checked

It now works with additional configuration with reverseEntitlements :

rudder.auth.oauth2.provider.okta.roles.mapping.entitlements.rudder_admin=administrator
rudder.auth.oauth2.provider.okta.roles.mapping.entitlements.rudder_readonly=read_only
rudder.auth.oauth2.provider.okta.roles.mapping.reverseEntitlements.read_only=CN=AAAA-BBBBB,OU=Groups,OU=_IT,OU=BB-DD,OU=UUU-XXXX-YY,DC=ee,DC=if,DC=ttttt,DC=uuu

, the mapping is correctly assigned :
2024-11-20 16:21:51+0300 TRACE auth-backends - IdP configuration has registered role mapping: [(CN=AAAA-BBBBB,OU=Groups,OU=_IT,OU=BB-DD,OU=UUU-XXXX-YY,DC=ee,DC=if,DC=ttttt,DC=uuu,read_only); (rudder_admin,administrator); (rudder_readonly,read_only)]

Actions #7

Updated by Vincent MEMBRÉ 23 days ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder plugin auth-backends v8.1.9-2.7

Actions #8

Updated by Vincent MEMBRÉ 23 days ago

This bug has been fixed in Rudder plugin auth-backends v8.2.2-2.7

Actions

Also available in: Atom PDF