[BUG] Agent card declares no security scheme although every A2A call needs a bearer token
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- api, authentication
Direzione di ricerca
Start at gateway.go L171-173 where the agent card is assembled, then read http.go L37 and http_test.go L357 to see how the well-known route is authenticated. Read A2A spec §7.3 and §3.1.11 before editing, since the issue leaves open whether to declare the scheme on the authenticated card or serve a minimal unauthenticated one. Done when securitySchemes/securityRequirements are populated and the gateway tests pass; wait for a maintainer to pick the option first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
📋 Prerequisites
- I have searched the existing issues to avoid creating a duplicate
- By submitting this issue, you agree to follow our Code of Conduct
- I am using the latest version of the software (checked against
mainat e8cd153) - I have tried to clear cache/cookies or used incognito mode (if ui-related)
- I can consistently reproduce this issue
🎯 Affected Service(s)
Controller (A2A gateway)
🚦 Impact/Severity
Minor
🐛 Bug Description
The agent card declares no security schemes or requirements (gateway.go L171-173), while every A2A operation, the card included, requires a bearer token. A generic client therefore cannot discover how to authenticate (§7.3). The card also sets extendedAgentCard: true, and §3.1.11 requires the extended card to be fetched with one of the schemes declared in the public card's securitySchemes, which cannot hold when none are declared.
🔄 Steps To Reproduce
- Fetch
/agents/<namespace>/<name>/.well-known/agent-card.jsonwith a valid token. - Inspect
securitySchemesandsecurityRequirements.
🤔 Expected Behavior
The card declares the scheme the gateway enforces, for example an openIdConnectSecurityScheme pointing at the configured issuer's discovery document, or an HTTP bearer scheme, with a matching requirement.
📱 Actual Behavior
Both are empty.
🔍 Additional Context
The well-known card route serves the extended card and returns 401 without a token (http.go L37, http_test.go L357). Filling securitySchemes alone helps a client that already has a token, but not one that is trying to find out how to get one. Two options:
- declare the scheme on the card and keep the card behind authentication;
- serve a minimal public card without authentication (interfaces and security schemes only) and keep the full card at
GetExtendedAgentCard, as §3.1.11 describes.
The second option means an unauthenticated caller learns that an Agent exists, which matters for #3787. Which one is preferred?
Note: §3.1.11 and §13 call the requirements field AgentCard.security; the a2a-go v2 type names it SecurityRequirements.
- Lingua principale
- Go
- Stelle
- 4.5k
- Fork
- 937
- Merge medio
- 1g 10h
- PR unite (30g)
- 150
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kagent-dev/kagent
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3792 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kagent-dev/kagent#3790 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
kagent-dev/kagent#3789 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
kagent-dev/kagent#3787 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameForse già presa @BahaaMattar l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kagent-dev/kagent#3710 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kagent-dev/kagent
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
docker/model-runner#1118 ·
I maintainer di solito rispondono entro 1 giorno
-
Screenshot missing in READMEAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100