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

ID-1333 Add group version increment to onPolicyUpdate #1492

Merged

Conversation

Ghost-in-a-Jar
Copy link
Contributor

@Ghost-in-a-Jar Ghost-in-a-Jar commented Jul 15, 2024

Ticket: https://broadworkbench.atlassian.net/browse/ID-1333

What:

This adds group version incrementation to onPolicyUpdate which should cover our bases as far as policy member updates are concerned. It was a mistake to not add it here in the first place and instead try to put it a level up, we missed some areas where memberships are updated.

We also had to make sure group versions are updated for nested policy groups constrained by an auth domain

Why:

Users removed from auth domains are not losing access to google resources.

@Ghost-in-a-Jar Ghost-in-a-Jar changed the title PROD-972 Add group version increment to onPolicyUpdate ID-1333 Add group version increment to onPolicyUpdate Jul 15, 2024
_ <- directoryDAO.updateGroupUpdatedDateAndVersionWithSession(
FullyQualifiedPolicyId(policyId.resource, policyId.accessPolicyName),
samRequestContext
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that the next thing that happens is onPolicyUpdateIfChanged which calls onPolicyUpdate if the policy actually changed.

@Ghost-in-a-Jar Ghost-in-a-Jar force-pushed the PROD-972-add-policy-update-group-version-increment branch from 8d36f73 to f425110 Compare July 15, 2024 23:56
Copy link

@Ghost-in-a-Jar Ghost-in-a-Jar merged commit 141ccb7 into develop Jul 16, 2024
17 checks passed
@Ghost-in-a-Jar Ghost-in-a-Jar deleted the PROD-972-add-policy-update-group-version-increment branch July 16, 2024 00:07
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.

2 participants