Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP4AIOPS-3113 pass delimiter for groups #1155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Aug 20, 2024

The receiving end (ruby code) will use this delimiter to separate classes. Since the various components use different delimiters, it is easiest to configure this in one place and pass it around

see also ManageIQ/manageiq#23139

@kbrock kbrock added the bug label Aug 20, 2024
@kbrock kbrock requested a review from bdunne as a code owner August 20, 2024 16:18
@Fryguy Fryguy self-assigned this Aug 21, 2024
@kbrock kbrock force-pushed the delimiters branch 2 times, most recently from f905bad to aa1ad9b Compare August 23, 2024 01:48
@kbrock kbrock changed the title CP4AIOPS-3113 pass delimiter for oidbc groups CP4AIOPS-3113 pass delimiter for groups Aug 23, 2024
@kbrock
Copy link
Member Author

kbrock commented Aug 23, 2024

update:

  • Rebased
  • Passing delimiters for all configurations (was just oidc)

@kbrock kbrock force-pushed the delimiters branch 2 times, most recently from 855734b to 3e17b6e Compare September 3, 2024 21:38
RequestHeader set X_REMOTE_USER_FIRSTNAME %%{OIDC_CLAIM_GIVEN_NAME}e env=OIDC_CLAIM_GIVEN_NAME
RequestHeader set X_REMOTE_USER_LASTNAME %%{OIDC_CLAIM_FAMILY_NAME}e env=OIDC_CLAIM_FAMILY_NAME
RequestHeader set X_REMOTE_USER_FULLNAME %%{OIDC_CLAIM_NAME}e env=OIDC_CLAIM_NAME
RequestHeader set X_REMOTE_USER_GROUP_DELIMITER ","
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but in the other PR, this entry came after X_REMOTE_USER_GROUPS

MellonMergeEnvVars On brings back all groups for REMOTE_USER_GROUPS
By default, the delimiter is ;, but this can be overridden

This is a no-op, but it highlights that a semicolon is used to join groups.
Liberty (via oidc) is using a comma, but that is not displayed here.
LookupUserGroups specifies a ":"
@kbrock
Copy link
Member Author

kbrock commented Sep 4, 2024

update:

  • rebased
  • reordered groups, group_delimiters to match other PRs and be consistent in this PR

@miq-bot
Copy link
Member

miq-bot commented Sep 4, 2024

Checked commits kbrock/manageiq-pods@b9b68cd~...5104e9e with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 👍

1 similar comment
@miq-bot
Copy link
Member

miq-bot commented Sep 4, 2024

Checked commits kbrock/manageiq-pods@b9b68cd~...5104e9e with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants