Repository navigation
fix(cli): use the public IAM endpoint as the default everywhere - #438
Merged
Merged
Conversation
`credentials temporary` and `access-keys create` printed AWS_ENDPOINT_URL_IAM=https://iam.storageapi.dev, the CLI's internal default, next to the public https://t3.storage.dev. resolveEndpoints() now reports the built-in default as the documented public endpoint, https://iam.storage.dev; an endpoint the user configured is passed through unchanged. The CLI's own IAM calls are unaffected. Assisted-by: Claude Opus 5.5 via Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012S3UVqp4Whgz89Q12Zx9uj
Contributor
[High impact] The PR appears safe to merge; no actionable new issue was found. SummaryChanges the default IAM endpoint to
Reviews (3) · Last reviewed commit: "fix(cli): use the public IAM endpoint as..." · Reviewed by Greptile |
resolveEndpoints() swapped the IAM endpoint for the public one whenever its value equalled DEFAULT_IAM_ENDPOINT, so an explicit AWS_ENDPOINT_URL_IAM=https://iam.storageapi.dev was rewritten too. It now substitutes only when no IAM endpoint is configured and the built-in default is in use. Assisted-by: Claude Opus 5.5 via Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012S3UVqp4Whgz89Q12Zx9uj
ovaistariq
approved these changes
Nov 30, 2026
Drop the separate public-endpoint concept: the CLI, the IAM SDK and the credentials the CLI exports now share one IAM endpoint. DEFAULT_IAM_ENDPOINT in the CLI and DEFAULT_ENDPOINTS.iam in @tigrisdata/iam become https://iam.storage.dev, the endpoint the Tigris docs name, and resolveEndpoints() goes back to reporting the endpoint in use as is. Docs and test fixtures follow. Assisted-by: Claude Opus 5.5 via Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012S3UVqp4Whgz89Q12Zx9uj
designcode
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Abdullah Ibrahim, Xe Iaso · Slack thread
Before:
tigris credentials temporary <bucket> --export --for aws(andtigris access-keys create --for aws) printedAWS_ENDPOINT_URL_IAM='https://iam.storageapi.dev'next toAWS_ENDPOINT_URL_S3='https://t3.storage.dev'. The CLI and the@tigrisdata/iamSDK defaulted to that internal hostname, so users were handed an IAM endpoint on a different domain from the S3 one.After: the default IAM endpoint is
https://iam.storage.deveverywhere. The CLI's own calls, the browser shell, the@tigrisdata/iamSDK and the exported credentials all use that one endpoint, so the export printsAWS_ENDPOINT_URL_IAM='https://iam.storage.dev'. An IAM endpoint the user sets (AWS_ENDPOINT_URL_IAM,TIGRIS_IAM_ENDPOINT, or a profile'sendpoint_url_iam) still takes precedence.How: I changed
DEFAULT_IAM_ENDPOINTinpackages/cli/src/constants.tsandDEFAULT_ENDPOINTS.iaminpackages/iam/src/lib/config.ts.agent-kitandcli-shellpick these up through their dependencies. I also updated the endpoint table inpackages/cli/AUTHENTICATION.md, thecli-shellREADME and the test fixtures, and added a patch changeset for@tigrisdata/cli,@tigrisdata/iamand@tigrisdata/cli-shell. There's no separate "public endpoint" concept: per review, the SDK and end users use the same endpoint.Why
iam.storage.dev: the public docs name it as the IAM endpoint everywhere.docs/sdks/s3/aws-cli.mdsays "IAM requests must be directed tohttps://iam.storage.dev",docs/api/s3/index.mdxsays "These IAM APIs are served athttps://iam.storage.dev", and the IAM, access-key, Kubernetes, IPython and WarpStream guides all setAWS_ENDPOINT_URL_IAM=https://iam.storage.dev.tigris-boto3-extuses it too.Please check: the browser shell (
cli-shell) now callsiam.storage.devfrom the browser. Its README says the old host only sent CORS headers to allowlisted origins. I couldn't confirm thatiam.storage.devhas the same CORS allowlist, or that it serves the org-scoped endpoints the CLI calls.mgmt.storageapi.devis unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_012S3UVqp4Whgz89Q12Zx9uj
Note
Medium Risk
Default IAM API traffic and exported endpoint values move to a different hostname, which can affect connectivity, CORS (especially the browser shell), and any tooling that assumed the old internal default.
Overview
Switches the default IAM hostname from
https://iam.storageapi.devto the documented publichttps://iam.storage.deveverywhere defaults apply, so storage and IAM share the same*.storage.devsurface.DEFAULT_IAM_ENDPOINTin the CLI andDEFAULT_ENDPOINTS.iamin@tigrisdata/iamboth point at the new URL, so runtime IAM/mgmt traffic, the browser shell, the IAM SDK, andAWS_ENDPOINT_URL_IAM/TIGRIS_IAM_ENDPOINTvalues emitted bycredentials temporaryandaccess-keys create --for awsstay consistent unless the user overrides endpoints via env or profile. Docs (AUTHENTICATION.md, cli-shell README) and test fixtures are updated to match. Patch changesets cover@tigrisdata/cli,@tigrisdata/iam, and@tigrisdata/cli-shell.Reviewed by Cursor Bugbot for commit 4dc2f0a. Bugbot is set up for automated code reviews on this repo. Configure here.