Skip to content

fix: add AWS_IAM as a valid authorizer type for gateway commands#820

Open
alvarog2491 wants to merge 1 commit intoaws:mainfrom
alvarog2491:main
Open

fix: add AWS_IAM as a valid authorizer type for gateway commands#820
alvarog2491 wants to merge 1 commit intoaws:mainfrom
alvarog2491:main

Conversation

@alvarog2491
Copy link
Copy Markdown

Description

  • agentcore add gateway --authorizer-type AWS_IAM was rejected with Invalid authorizer type. Use NONE or CUSTOM_JWT, while the interactive TUI accepted AWS_IAM successfully, an inconsistency introduced by a hardcoded allowlist in the CLI validator that had drifted from the Zod schema.
  • Replaced the hardcoded list with GatewayAuthorizerTypeSchema.safeParse() so validation is driven by the schema and can never drift again.
  • Updated help text, docs, and tests to reflect all three valid values (NONE, AWS_IAM, CUSTOM_JWT).

Related Issue

Closes #819

Documentation PR

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@alvarog2491 alvarog2491 requested a review from a team April 11, 2026 11:50
@github-actions github-actions bot added the size/xs PR size: XS label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--authorizer-type AWS_IAM rejected by agentcore add gateway but selectable in interactive TUI

1 participant