Sitelet https://github.com/google-gemini/gemini-cli/pull/29067
Skip to content

fix(a2a-server): remove misleading security schemes and hardcoded credentials - #29067

Open
CheesyWannabe wants to merge 1 commit into
google-gemini:mainfrom
CheesyWannabe:fix/issue-29001-a2a-auth-clean
Open

fix(a2a-server): remove misleading security schemes and hardcoded credentials#29067
CheesyWannabe wants to merge 1 commit into
google-gemini:mainfrom
CheesyWannabe:fix/issue-29001-a2a-auth-clean

Conversation

@CheesyWannabe

Copy link
Copy Markdown

Fixes #29001.

Summary of Changes

  • coderAgentCard: Removed misleading securitySchemes and security requirements so the agent metadata accurately reflects that endpoints are unauthenticated by design for local development.
  • customUserBuilder: Stripped out the insecure, hardcoded public credentials ('valid-token', 'admin:password').

Testing

  • Verified that all package unit and integration tests (146 tests across 15 test files) pass successfully with these changes.

@CheesyWannabe
CheesyWannabe requested a review from a team as a code owner August 25, 2026 05:18
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 cleans up the a2a-server configuration by removing misleading security schemes and insecure hardcoded credentials. These changes ensure that the service metadata and authentication logic accurately reflect the intended unauthenticated state for local development, reducing potential confusion and security risks.

Highlights

  • Security Cleanup: Removed misleading security schemes and hardcoded credentials from the a2a-server package to improve security posture and clarify authentication expectations.
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 the 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 counterproductive. 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

  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.

@github-actions github-actions Bot added the size/s A small PR label Aug 25, 2026
@github-actions

Copy link
Copy Markdown

📊 PR Size: size/S

  • Lines changed: 28
  • Additions: +0
  • Deletions: -28
  • Files changed: 1

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

Copy link
Copy Markdown
Contributor

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 removes the basic and bearer authentication configurations (securitySchemes and security) from the coderAgentCard and simplifies the customUserBuilder function in packages/a2a-server/src/http/app.ts to always return an unauthenticated user. I have no feedback to provide as there are no review comments.

@gemini-cli gemini-cli Bot added the area/security Issues related to security label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security Issues related to security size/s A small PR

Projects

None yet

1 participant