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

auto purge expired role/group members based on server/domain config #1941

Merged
merged 7 commits into from
Sep 5, 2022

Conversation

mendi160
Copy link
Contributor

Signed-off-by: mshneorson [email protected]

@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from 510a992 to 273ce6e Compare August 15, 2022 21:42
@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from 273ce6e to 0b9909e Compare August 16, 2022 14:16
@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from 0b9909e to 1b82e77 Compare August 22, 2022 15:21

// Delete expired principals
resource ExpiredMembers DELETE "/expired-members?purgeResources={purgeResources}" {
Int32 purgeResources (optional); //defining which resources will be purged. by default all resources will be purged
Copy link
Contributor Author

@mendi160 mendi160 Aug 22, 2022

Choose a reason for hiding this comment

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

0 - none of them will be purged
1 - only roles will be purged
2 - only groups will be purged
3/default - both of them will be purged

Copy link
Collaborator

Choose a reason for hiding this comment

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

let's include these details in the rdl definition, in the function description before the signature definition

@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from 1b82e77 to d0828d1 Compare August 23, 2022 14:15
mshneorson added 5 commits August 28, 2022 23:32
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from d0828d1 to fa717c6 Compare August 29, 2022 18:14
Copy link
Collaborator

@havetisyan havetisyan left a comment

Choose a reason for hiding this comment

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

@mendi160 also please make sure you have go 1.19 installed which is what should be used for generating the code. also merge the master into your branch since there were some changes in the go client generation with the move to 1.19.

@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch 3 times, most recently from c4c7b9a to d3f9cd3 Compare August 31, 2022 09:12
2. generating the code with go 1.19

Signed-off-by: mshneorson <[email protected]>
@mendi160 mendi160 force-pushed the auto_remove_expired_principals branch from d3f9cd3 to 723feda Compare August 31, 2022 09:43

// Delete expired principals
resource ExpiredMembers DELETE "/expired-members?purgeResources={purgeResources}" {
Int32 purgeResources (optional); //defining which resources will be purged. by default all resources will be purged
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's include these details in the rdl definition, in the function description before the signature definition

@@ -1797,6 +1823,11 @@ void executePutEntity(ResourceContext ctx, String domainName, String entityName,
}
}

// void executeDeleteMembership(ResourceContext ctx, String domainName, String roleName,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one looks like hasn't been addressed so let's remove it

Signed-off-by: mshneorson <[email protected]>
@havetisyan havetisyan marked this pull request as ready for review September 5, 2022 20:11
@havetisyan havetisyan changed the title just for review auto purge expired role/group members based on server/domain config Sep 5, 2022
@havetisyan havetisyan merged commit ab7284c into AthenZ:master Sep 5, 2022
dvirguttman pushed a commit to dvirguttman/athenz that referenced this pull request Mar 28, 2023
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