Skip to content

A utility to retrieve and report authorization history dependencies#3201

Merged
psasidhar merged 2 commits intomasterfrom
authhistory
Feb 18, 2026
Merged

A utility to retrieve and report authorization history dependencies#3201
psasidhar merged 2 commits intomasterfrom
authhistory

Conversation

@havetisyan
Copy link
Copy Markdown
Collaborator

@havetisyan havetisyan commented Feb 11, 2026

Description

A utility to retrieve and report authorization history dependencies for services in a specified Athenz domain.

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

…or services in a specified Athenz domain.

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @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 delivers a valuable new tool for Athenz users, enabling them to gain deeper insights into their service authorization dependencies. By providing a clear, filterable report of both incoming and outgoing access patterns, the utility helps in understanding and managing the security posture of services within a domain. This enhancement improves visibility into how services interact across domains, which is crucial for auditing and compliance.

Highlights

  • New Utility Added: Introduced a new Go-based utility, zms-authhistory, designed to retrieve and report authorization history dependencies.
  • Dependency Reporting: The utility generates reports on both incoming (who calls your domain) and outgoing (which domains your services call) authorization dependencies for services within a specified Athenz domain.
  • Secure Communication: It connects to the ZMS server using mTLS authentication to ensure secure data retrieval.
  • Flexible Filtering and Output: Users can filter dependencies by a specified number of days and choose to display only domain names for a more compact report. The output is provided in CSV format to standard output.
  • Build System Integration: Integrated the new utility into the existing Maven build system, with a dedicated Makefile for Go-specific build processes across different operating systems.
Changelog
  • pom.xml
    • Included the new zms-authhistory utility as a Maven module.
  • utils/zms-authhistory/Makefile
    • Introduced a Makefile to manage the build process for the Go-based zms-authhistory utility, including platform-specific builds and Go version checks.
  • utils/zms-authhistory/README.md
    • Provided comprehensive documentation for the zms-authhistory utility, detailing its functionality, command-line arguments, output format, and build steps.
  • utils/zms-authhistory/doc.go
    • Included package-level comments explaining the overall purpose of the zms-authhistory Go utility.
  • utils/zms-authhistory/pom.xml
    • Created a Maven POM file for the zms-authhistory utility, configuring it to execute the Makefile during the build phase.
  • utils/zms-authhistory/zms-authhistory.go
    • Developed the main Go application for zms-authhistory, which fetches authorization history from ZMS, processes incoming and outgoing dependencies, applies filtering, and outputs a CSV report.
Activity
  • No activity has been recorded yet for this pull request.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Go utility, zms-authhistory, to retrieve and report authorization history dependencies. The changes include the utility's source code, build files, and documentation. The code is generally well-written and structured. I've provided a few suggestions to improve the efficiency of dependency processing, correct the output formatting to avoid printing empty sections, and align logging calls with standard practices.

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@psasidhar psasidhar merged commit 303f72b into master Feb 18, 2026
8 checks passed
@psasidhar psasidhar deleted the authhistory branch February 18, 2026 02:10
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