Repository navigation
fix: localhost is not a Tigris endpoint for tiered flavor selection - #231
Merged
Merged
Conversation
IsTigrisEndpoint conflated two questions: which endpoints transparent mode may target (Tigris domains, or localhost for local testing) and which backends are trusted to behave like Tigris (headers understood, keys learnable, If-Match on DELETE enforced). Once it began selecting tiered mode's forwarding flavor, a localhost stand-in — a local MinIO — took the transparent path and re-enabled the cross-tier cleanup DELETE the unverified_backend gate exists to withhold. IsTigrisEndpoint is now strict (Tigris domains only, case-normalized) and drives the flavor; IsTransparentEndpoint (Tigris or localhost, any case) is the transparent-mode allowlist the validator uses. Docs scope the delete-permission requirement to Tigris-backed tiered deployments — on the signing flavor the key never issues a DELETE and needs read only. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5DLvDTo9dhD38YQXhHpU9
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5DLvDTo9dhD38YQXhHpU9
Contributor
Author
|
🎉 This PR is included in version 1.22.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes the three review threads on release PR #230.
IsTigrisEndpointconflated the transparent-mode allowlist (Tigris domains or localhost for local testing) with a trust claim about the backend (headers understood, keys learnable,If-Matchon DELETE enforced). Since it now selects tiered's forwarding flavor, a local MinIO onlocalhosttook the transparent path and re-enabled the cleanup DELETE. Split:IsTigrisEndpointis strict (Tigris domains only, case-normalized) and drives the flavor; newIsTransparentEndpoint(Tigris or localhost, any case) is what the transparent-mode validator uses. Tiered on localhost now forwards by signing with cleanup disabled; transparent mode keeps its localhost allowance.TestIsTransparentEndpoint.rejectedcannot occur.Tests updated (strict predicate, allowlist, flavor table incl.
tiered/localhost → signing,transparent/localhoststill valid); full suite, race, lint green.🤖 Generated with Claude Code
https://claude.ai/code/session_01L5DLvDTo9dhD38YQXhHpU9
Note
Medium Risk
Changes tiered forwarding and cleanup safety gates keyed on upstream trust; behavior shift for tiered-on-localhost is intentional and reduces data-loss risk from unverified If-Match backends.
Overview
Tiered mode no longer treats
localhostas a trusted Tigris backend.IsTigrisEndpointnow matches only*.tigris.dev/*.storage.dev(case-normalized) and drives tiered forwarding flavor viaForwardsTransparently, so a local MinIO on localhost uses signing and cross-tier cleanup DELETE stays disabled instead of taking the transparent path that could re-enable unsafe cleanup.Transparent proxy validation keeps localhost for local testing via a new
IsTransparentEndpoint(Tigris domains or localhost, any case);validateUpstreamEndpointuses that allowlist instead of overloadingIsTigrisEndpoint.Docs clarify that delete permission applies to Tigris-backed tiered deployments; on the signing flavor cleanup is never issued and background work is read-oriented, while forwarded client ops still need whatever permissions those calls require.
Tests cover the strict predicate, the transparent allowlist,
tiered/localhost → signing, and transparent mode still accepting localhost.Reviewed by Cursor Bugbot for commit a77b700. Bugbot is set up for automated code reviews on this repo. Configure here.