HTTP runtime gateway targets cannot configure schema for policy guardrails
- Lingua principale
- TypeScript
- Stelle
- 283
- Fork
- 95
- Merge medio
- 1g 2h
- PR unite (30g)
- 183
Descrizione
### Description
AgentCore Gateway HTTP runtime targets support an optional API schema. However, AWS documentation states that HTTP runtime agents _are required_ provide this schema when using guardrails.
The CLI exposes --schema for gateway targets, but currently rejects it for `--type http-runtime`. Consequently, users cannot configure policy guardrails correctly for HTTP runtime targets.
### Steps to Reproduce
Reproduce `--schema` validation rejection
1. create HTTP runtime with a policy engine
2. Add an HTTP runtime target while passing `--schema` flag
Reproduce deploy failure
1. create HTTP runtime with a policy engine
2. Add an HTTP runtime target without passing `--schema` flag
3. Deploy the target and apply guardrail policies
4. Attempt to invoke the target
### Expected Behavior
* The CLI should accept a schema for HTTP runtime targets
* benign requests permitted by policy should succeed
### Actual Behavior
* CLI rejects `--schema` for HTTP runtime targets
* benign requests permitted by policy are rejected due to missing schema
### CLI Version
_No response_
### Operating System
macOS
### Additional Context
* Accept and validate `--schema` for http-runtime in CLI
* persist schema source in agentcore.json
* persist schema through deploy
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla validazione CLI e dalla gestione del deployment per l’opzione --schema, quindi segui il modo in cui le destinazioni runtime HTTP sono rappresentate in agentcore.json. Verifica che lo schema venga accettato e convalidato per http-runtime, persistito in agentcore.json, trasferito tramite deploy e che consenta alle richieste innocue consentite dalla policy di avere esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, typescript
- Ambito
- cli, cloud
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100