-
Notifications
You must be signed in to change notification settings - Fork 283
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
auto purge expired role/group members based on server/domain config #1941
Conversation
510a992
to
273ce6e
Compare
servers/zms/src/main/java/com/yahoo/athenz/zms/purge/PurgeMember.java
Outdated
Show resolved
Hide resolved
servers/zms/src/main/java/com/yahoo/athenz/zms/store/impl/jdbc/JDBCConnection.java
Outdated
Show resolved
Hide resolved
273ce6e
to
0b9909e
Compare
0b9909e
to
1b82e77
Compare
|
||
// 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
1b82e77
to
d0828d1
Compare
clients/java/zms/src/main/java/com/yahoo/athenz/zms/ZMSClient.java
Outdated
Show resolved
Hide resolved
clients/java/zms/src/main/java/com/yahoo/athenz/zms/ZMSClient.java
Outdated
Show resolved
Hide resolved
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
Signed-off-by: mshneorson <[email protected]>
d0828d1
to
fa717c6
Compare
There was a problem hiding this 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.
servers/zms/src/main/java/com/yahoo/athenz/zms/purge/PurgeResourcesEnum.java
Show resolved
Hide resolved
servers/zms/src/main/java/com/yahoo/athenz/zms/store/impl/jdbc/JDBCConnection.java
Outdated
Show resolved
Hide resolved
servers/zms/src/main/java/com/yahoo/athenz/zms/store/impl/jdbc/JDBCConnection.java
Outdated
Show resolved
Hide resolved
c4c7b9a
to
d3f9cd3
Compare
2. generating the code with go 1.19 Signed-off-by: mshneorson <[email protected]>
d3f9cd3
to
723feda
Compare
|
||
// 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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
servers/zms/src/main/java/com/yahoo/athenz/zms/store/impl/jdbc/JDBCConnection.java
Outdated
Show resolved
Hide resolved
servers/zms/src/main/java/com/yahoo/athenz/zms/store/impl/jdbc/JDBCConnection.java
Outdated
Show resolved
Hide resolved
Signed-off-by: mshneorson <[email protected]>
…thenZ#1941) Signed-off-by: mshneorson <[email protected]> Co-authored-by: mshneorson <[email protected]>
Signed-off-by: mshneorson [email protected]