Add 'None' auth option for Gateway targets (OpenAPI) to support pass-through JWT

オープン
#1,734 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
openapi, typescript
領域
api, cli

調査の方向性

agentcore add gateway-target コマンドから開始し、OpenAPI ターゲットの認証方式の選択肢をターゲットスキーマと CDK 出力まで追跡します。None オプションが API key および OAuth と並んで表示され、外部向けの credential provider を生成せず、ヘルプまたはドキュメントで JWT のパススルーのユースケースが説明されていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Description

When creating a Gateway target from an OpenAPI spec file, the CLI only offers two outbound auth options: API key and OAuth. There is no None option.

This blocks a valid use case: customers who use an interceptor Lambda to pass through an existing JWT token. Their users are already authenticated, so no gateway-managed credential is needed — downstream services verify the JWT that gets passed through. Today these customers are forced to pick API key or OAuth even though neither will be used.

Request: Add a "None" (no outbound auth) option when creating an OpenAPI Gateway target.

Acceptance Criteria

  • agentcore add gateway-target with an OpenAPI spec offers a "None" auth option alongside API key and OAuth
  • Selecting "None" configures the target with no outbound credential provider
  • The resulting schema / CDK output correctly represents a target with no auth
  • Documentation/help text explains the pass-through JWT use case for "None"

Additional Context

Reported via customer feedback (Aperture form submission).

  • CLI version: 0.21.0
  • OS: linux 6.1.170-210.320.amzn2023.x86_64, node v20.19.3

When we create Gateway target to OpenAPI spec file. We have two auth options API key and OAuth. But there is no None option for cases when we want to use interceptor lambda to pass through existing JWT token, because users are already authenticated. But must choose one of these options and we will not use any of them. Downstream services will verify JWT we pass through.

主要言語
TypeScript
スター
339
フォーク
129
平均マージ
19時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。