feat(cli): support TIGRIS_FORCE_PATH_STYLE and namespace Auth0 env vars - #207
Merged
Conversation
- Add TIGRIS_FORCE_PATH_STYLE env var to force S3 path-style addressing, applied across all auth methods via getStorageConfig - Rename AUTH0_* env overrides to TIGRIS_AUTH0_* for consistency with the other TIGRIS_* variables - Include test/ in the CLI tsconfig (with vitest/globals) so editors and the build typecheck tests; fix pre-existing type errors this surfaced Assisted-by: Claude Opus 4.8 (1M context) via Claude Code Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThe PR improves CLI configuration and typechecking:
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness, security, or build failures identified. The path-style setting reaches the storage SDK configuration while remaining intact across authentication and auto-login paths, the Auth0 rename preserves existing defaults, and test inclusion affects typechecking rather than package output. Important Files Changed
Reviews (1): Last reviewed commit: "feat(cli): support TIGRIS_FORCE_PATH_STY..." | Re-trigger Greptile |
MantasMiksys
approved these changes
Jul 24, 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.
Summary
CLI config improvements:
TIGRIS_FORCE_PATH_STYLEenv var — force S3 path-style addressing (bucket in the URL path instead of the host). Applied across every auth method viagetStorageConfig, so it works for OAuth, credentials, environment, AWS-profile, and configured logins alike. Truthy values:1,true,yes,on(case-insensitive). Useful behind gateways/proxies that don't support virtual-hosted-style requests. The storage SDK'screateTigrisClientalready honoredforcePathStyle; this just wires it through from the CLI.AUTH0_DOMAIN/AUTH0_CLIENT_ID/AUTH0_AUDIENCE→TIGRIS_AUTH0_*, for consistency with the otherTIGRIS_*variables. Defaults are unchanged.test/— addedtesttoincludeandvitest/globalstotypes, matching the pattern already used inagent-kitandreact. Previouslytest/was outside every tsconfig, so editors fell back to an inferred project without Node types (e.g.node:osflagged as unresolved) and the build never typechecked tests. This surfaced 10 pre-existing type errors in three test files, which are fixed here sotsc --noEmitstays green.Behavior change
Renaming the Auth0 env vars is a breaking change for anyone who set
AUTH0_*to point at a non-default (e.g. dev) auth tenant — they now need theTIGRIS_AUTH0_*names. These are undocumented internal overrides; defaults are untouched, so normal users are unaffected.Testing
tsc --noEmit(src + tests): cleanbiome check: cleanvitest: affected suites pass (provider, iam, exit, messages — 72 tests)Includes a changeset (
@tigrisdata/cli, minor).🤖 Generated with Claude Code
Note
Low Risk
Low risk for typical users; custom Auth0 env users must switch to TIGRIS_AUTH0_* names.
Overview
Adds
TIGRIS_FORCE_PATH_STYLEso the CLI can force S3 path-style URLs (bucket in the path, not the host).getStorageConfigapplies this on top of every auth path viagetEnvForcePathStyle(); truthy values are1,true,yes, oron(case-insensitive). Documented inAUTHENTICATION.md.OAuth overrides move from
AUTH0_DOMAIN/AUTH0_CLIENT_ID/AUTH0_AUDIENCEtoTIGRIS_AUTH0_*ingetAuth0Config; built-in defaults are unchanged.tsconfig.jsonnow typecheckstest/(vitest/globals, includetest), with small test typing fixes sotsc --noEmitstays clean.Reviewed by Cursor Bugbot for commit 7919935. Bugbot is set up for automated code reviews on this repo. Configure here.