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

Offen
#1,734 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
openapi, typescript
Bereich
api, cli

Rechercherichtung

Beginne mit dem Befehl agentcore add gateway-target und verfolge die Authentifizierungsoptionen für OpenAPI-Ziele bis in das Zielschema und die CDK-Ausgabe. Überprüfe, dass die Option None neben API key und OAuth erscheint, keinen ausgehenden Credential-Provider erzeugt und dass die Hilfe oder Dokumentation den Anwendungsfall für die Weitergabe von JWT erklärt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
339
Forks
129
Ø Merge
19 Std. 21 Min.
Gemergte PRs (30 T.)
125

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus aws/agentcore-cli

Alle Issues in aws/agentcore-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.