Skip to content

fix(cli): use the public IAM endpoint as the default everywhere - #438

Merged
designcode merged 3 commits into
mainfrom
claude/public-iam-endpoint
Dec 1, 2026
Merged

designcode merged 3 commits into
mainfrom
claude/public-iam-endpoint

Conversation

@claude

@claude claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Abdullah Ibrahim, Xe Iaso · Slack thread

Before: tigris credentials temporary <bucket> --export --for aws (and tigris access-keys create --for aws) printed AWS_ENDPOINT_URL_IAM='https://iam.storageapi.dev' next to AWS_ENDPOINT_URL_S3='https://t3.storage.dev'. The CLI and the @tigrisdata/iam SDK 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.dev everywhere. The CLI's own calls, the browser shell, the @tigrisdata/iam SDK and the exported credentials all use that one endpoint, so the export prints AWS_ENDPOINT_URL_IAM='https://iam.storage.dev'. An IAM endpoint the user sets (AWS_ENDPOINT_URL_IAM, TIGRIS_IAM_ENDPOINT, or a profile's endpoint_url_iam) still takes precedence.

How: I changed DEFAULT_IAM_ENDPOINT in packages/cli/src/constants.ts and DEFAULT_ENDPOINTS.iam in packages/iam/src/lib/config.ts. agent-kit and cli-shell pick these up through their dependencies. I also updated the endpoint table in packages/cli/AUTHENTICATION.md, the cli-shell README and the test fixtures, and added a patch changeset for @tigrisdata/cli, @tigrisdata/iam and @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.md says "IAM requests must be directed to https://iam.storage.dev", docs/api/s3/index.mdx says "These IAM APIs are served at https://iam.storage.dev", and the IAM, access-key, Kubernetes, IPython and WarpStream guides all set AWS_ENDPOINT_URL_IAM=https://iam.storage.dev. tigris-boto3-ext uses it too.

Please check: the browser shell (cli-shell) now calls iam.storage.dev from the browser. Its README says the old host only sent CORS headers to allowlisted origins. I couldn't confirm that iam.storage.dev has the same CORS allowlist, or that it serves the org-scoped endpoints the CLI calls. mgmt.storageapi.dev is 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.dev to the documented public https://iam.storage.dev everywhere defaults apply, so storage and IAM share the same *.storage.dev surface.

DEFAULT_IAM_ENDPOINT in the CLI and DEFAULT_ENDPOINTS.iam in @tigrisdata/iam both point at the new URL, so runtime IAM/mgmt traffic, the browser shell, the IAM SDK, and AWS_ENDPOINT_URL_IAM / TIGRIS_IAM_ENDPOINT values emitted by credentials temporary and access-keys create --for aws stay 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.

`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
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable new issue was found.RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no actionable new issue was found.

Summary

Changes the default IAM endpoint to https://iam.storage.dev across the CLI and IAM SDK.

  • The CLI and IAM SDK use the public IAM endpoint by default.

Reviews (3) · Last reviewed commit: "fix(cli): use the public IAM endpoint as..." · Reviewed by Greptile

Comment thread packages/cli/src/auth/provider.ts Resolved
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
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
@claude claude Bot changed the title fix(cli): export the public IAM endpoint with credentials fix(cli): use the public IAM endpoint as the default everywhere Nov 30, 2026
@designcode
designcode merged commit 2b7318d into main Dec 1, 2026
3 checks passed
@designcode
designcode deleted the claude/public-iam-endpoint branch December 1, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants