configure oauth client id per athenz service#3130
Conversation
Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
Summary of ChangesHello @havetisyan, 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 lays the groundwork for integrating OAuth2 authorization grant tokens within the Athenz ZMS system. It achieves this by introducing a new 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new system attribute clientId for Athenz services to support OAuth integration. The changes are comprehensive, touching the data models in Go and Java, RDL and database schemas, persistence layer, and the command-line interface. The tests have been updated to cover the new functionality. My review has identified a critical issue regarding a large number of unrelated test changes that should be moved to a separate pull request. Additionally, I've provided a couple of medium-severity suggestions to improve code consistency and maintainability.
servers/zms/src/test/java/com/yahoo/athenz/zms/ZMSServiceIdentityTest.java
Show resolved
Hide resolved
Updates the expected test results to include two new fields added in ZMS: - awsAccountName: Added to domain attributes in AthenZ/athenz#3171 - clientId: Added to service identity in AthenZ/athenz#3130
Updates the expected test results to include two new fields added in ZMS: - awsAccountName: Added to domain attributes in AthenZ/athenz#3171 - clientId: Added to service identity in AthenZ/athenz#3130 Signed-off-by: Jeffrey Tolar <tolar@yahooinc.com>
* Add on_call field to athenz_domain_meta resource Signed-off-by: Jeffrey Tolar <tolar@yahooinc.com> * Update golden system test results with new domain and service fields Updates the expected test results to include two new fields added in ZMS: - awsAccountName: Added to domain attributes in AthenZ/athenz#3171 - clientId: Added to service identity in AthenZ/athenz#3130 Signed-off-by: Jeffrey Tolar <tolar@yahooinc.com> --------- Signed-off-by: Jeffrey Tolar <tolar@yahooinc.com>
Description
to support autorization grant tokens (jag #3100) the zts server should be registered with the identity provider as a client and such we need to maintain a mapping between those client ids and the corresponding athenz identities. this pr introduced a new system attribute in the service object as client-id. The usage of the client-id in ZTS will be implemented in the next PR.
Contribution Checklist:
Attach Screenshots (Optional)