Skip to content

Improve IAMService user to CS conversion#8491

Draft
maxnoe wants to merge 2 commits intoDIRACGrid:integrationfrom
maxnoe:voms2cs-nested-groups
Draft

Improve IAMService user to CS conversion#8491
maxnoe wants to merge 2 commits intoDIRACGrid:integrationfrom
maxnoe:voms2cs-nested-groups

Conversation

@maxnoe
Copy link
Copy Markdown
Contributor

@maxnoe maxnoe commented Mar 25, 2026

  • Handle nested groups
  • Filter groups by vo name
  • Filter groups by having voms.role label
  • Add tests

BEGINRELEASENOTES

*Core
FIX: Improve VOMS2CSAgent to handle nested groups and only sync groups that have the voms.role label
ENDRELEASENOTES

Closes #8487

@maxnoe maxnoe force-pushed the voms2cs-nested-groups branch 3 times, most recently from 2d5e13c to b1fbfd8 Compare March 25, 2026 19:17
@maxnoe
Copy link
Copy Markdown
Contributor Author

maxnoe commented Mar 26, 2026

@chaen the CI failure here seems unrelated to me

@aldbr
Copy link
Copy Markdown
Contributor

aldbr commented Apr 2, 2026

@maxnoe is that ready to be reviewed now?

@maxnoe
Copy link
Copy Markdown
Contributor Author

maxnoe commented Apr 2, 2026

I would be happy about a review, yes, but I left it on draft as I also wanted to test it in our integration test environment but didn't have a chance yet.

@chaen
Copy link
Copy Markdown
Contributor

chaen commented Apr 2, 2026

I've just tried it against our prod server, and I see discrepencies, but I did not yet dig down in it

@maxnoe
Copy link
Copy Markdown
Contributor Author

maxnoe commented Apr 2, 2026

I've just tried it against our prod server, and I see discrepencies, but I did not yet dig down in it

There is an additional filter now to only create entries for groups that are actually voms roles. I would expect that you now get less roles attached to users, but the roles that are no longer attached do not correspond to real voms roles in the iam server.

@chaen
Copy link
Copy Markdown
Contributor

chaen commented Apr 2, 2026

There's definitely something off with the logic as it starts adding people without a single voms role to our default group

@maxnoe
Copy link
Copy Markdown
Contributor Author

maxnoe commented Apr 2, 2026

There's definitely something off with the logic as it starts adding people without a single voms role to our default group

ok, thanks, I will dig into that next week

@maxnoe
Copy link
Copy Markdown
Contributor Author

maxnoe commented Apr 2, 2026

There's definitely something off with the logic as it starts adding people without a single voms role to our default group

Where should this filtering happen?

The IAMService class getUsers() method according to the test correctly returns a list of all users, with most of them having 0 voms roles.

Should getUsers() already filter out users with no roles? Or should that happen later?

@maxnoe maxnoe force-pushed the voms2cs-nested-groups branch from 8e52b26 to 0bffc2e Compare April 2, 2026 10:25
- Handle nested groups
- Filter groups by vo name
- Filter groups by having voms.role label
- Add tests
@maxnoe maxnoe force-pushed the voms2cs-nested-groups branch from 0bffc2e to 9d725c9 Compare April 2, 2026 10:41
@chaen
Copy link
Copy Markdown
Contributor

chaen commented Apr 2, 2026

oos sorry I pushed by mistake, I'll fix my mess

@chaen chaen force-pushed the voms2cs-nested-groups branch from 73737a6 to 9d725c9 Compare April 2, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VOMS2CSAgent: support of IAM nested groups

3 participants