support external members in roles and groups#3262
Conversation
Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces robust support for external members within Athenz roles and groups. It provides the necessary data model extensions, API updates, and validation mechanisms to seamlessly integrate external identities, allowing for more flexible and secure access management across different user bases. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for external members in Athenz, defining new ExternalMemberName and PrincipalName types across ZMS and ZTS clients and schemas. It updates API endpoints to use these new types, extends the Principal.Type enum, and adds an ExternalEmailMemberValidator. Core logic in ZMS and ZTS is modified to handle external members in roles, groups, access checks, and principal state management. New unit tests validate this functionality. Review comments highlight critical issues in principal parsing logic within JDBCConnection.java and PrincipalUtils.java, and a resource leak in test cleanup for ExternalMemberValidatorManager.
...va/server_common/src/main/java/com/yahoo/athenz/common/server/store/impl/JDBCConnection.java
Show resolved
Hide resolved
libs/java/server_common/src/main/java/com/yahoo/athenz/common/server/util/PrincipalUtils.java
Show resolved
Hide resolved
servers/zms/src/test/java/com/yahoo/athenz/zms/PrincipalStateUpdaterTest.java
Show resolved
Hide resolved
…pdaterTest.java Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Henry Avetisyan <havetisy@yahoo.com>
Description
external member support in roles and groups #3255
Due to extended type of principal values, the go client library requires changes to the principal argument type to zts.PrincipalName()
Contribution Checklist:
Attach Screenshots (Optional)