HTTP runtime gateway targets cannot configure schema for policy guardrails

Open
#1,985 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
aws, typescript
Domain
cli, cloud

Research direction

Start at the CLI validation and deployment handling for the --schema option, then trace how HTTP runtime targets are represented in agentcore.json. Verify that the schema is accepted and validated for http-runtime, persisted in agentcore.json, carried through deploy, and allows benign policy-permitted requests to succeed.

Written by the indexing model from the issue text.

Description

bug
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
Dominant language
TypeScript
Stars
339
Forks
129
Avg merge
19h 21m
Merged PRs (30d)
125

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/agentcore-cli

All issues in aws/agentcore-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.