support for exteral member validator manager#3258
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 a new capability to Athenz ZMS (ZMS) by implementing an "External Member Validator Manager." This manager allows domains to define custom logic for validating members, which can be dynamically loaded and refreshed. This enhances flexibility by enabling external systems to enforce specific membership criteria beyond Athenz's built-in validation, ensuring that only authorized and compliant members can be added to roles within configured domains. 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 an External Member Validator feature to Athenz ZMS. It adds a new interface method to ObjectStoreConnection and its JDBC implementation to retrieve domains configured with external member validators from the database. A new ExternalMemberValidatorManager class is introduced to dynamically load, manage, and refresh these validators using a scheduled executor, and to validate members against the configured external logic. Corresponding DBService methods and configuration constants have been added, along with comprehensive unit tests for the new functionality. Review comments suggest making the ExternalMemberValidatorManager class final to prevent this escaping, providing a custom ThreadFactory for better thread naming, and improving exception handling and logging during validator instantiation.
Description
introduce an external member validator manager responsible for managing all domains that are configured with external member validator and responsible for calling the checks #3255
Contribution Checklist:
Attach Screenshots (Optional)