Repository navigation
feat!: drop the {{client}} header placeholder - #160
Merged
Merged
Conversation
Header values could say {{client}} to get the name of the gateway key
that made the request. Nobody needs it: a relay that wants a caller
name gets a fixed value written into the header. It goes, along with the
`client` parameter it threaded through `Provider::outbound_headers`,
`GatewayState::headers_for` and `headers_after_401`.
{{client}} in a header is now an unrecognized placeholder. That error
changed its sentence (only {{access_token}} is recognized), so it has a
new code: config.credential.unrecognized_placeholder replaces
config.credential.unknown_placeholder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Why
{{client}}in a header value was replaced with the name of the gateway key that made the request. There is no use for it: a relay that wants a caller name gets a fixed value written into the header. The desktop form stopped mentioning it (ThinkWatch-Lite#159); this removes the feature.What
tw-config:CLIENTconstant gone;Provider::outbound_headers(access_token)loses itsclientparameter;{{client}}is now an unrecognized placeholder.tw-gateway:headers_for/headers_after_401loseclient; callers in the gateway, control plane andtwcoreupdated.config.credential.unknown_placeholderis replaced byconfig.credential.unrecognized_placeholder(same args:header,placeholder). Lite adds the translation when it takes this tag.{{client}}rejected; header-order and relay-header tests use fixed values.Breaking for
tw-config/tw-gatewayAPI callers; the server edition uses neither (checked withgit grep).Verified
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(proxy env unset).🤖 Generated with Claude Code