Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

HTTP runtime gateway targets cannot configure schema for policy guardrails

未关闭
#1,985 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
aws, typescript
领域
cli, cloud

调研方向

从 --schema 选项的 CLI 验证和部署处理入手,然后跟踪 HTTP 运行时目标在 agentcore.json 中的表示方式。验证 schema 是否针对 http-runtime 被接受和验证、是否持久化到 agentcore.json、是否在 deploy 过程中传递,并确保策略允许的良性请求能够成功。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
291
派生
96
平均合并
20 小时 50 分钟
30 天内合并 PR
214

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。