refactor(operator)!: adopt PaymentRails; delete the tuner-app secret bypass#14
Merged
Conversation
…bypass
Greenfield cleanup, no shims.
- **Delete the tuner-app shared-secret bypass.** The `x-tuner-app-secret`
header + `tuner_app_shared_secret` config let any caller with the secret skip
ALL billing and serve free — a leak-prone bearer secret and scope-creep from a
tuner-agent effort. Billing now applies to every caller; access control is the
payment rails, not a shared secret. (The two `if !trusted_app_call` guards
become plain scopes; the intricate shielded validate/ceiling/nonce/settle logic
is byte-identical.)
- **Adopt `PaymentRails`** (replaces `PaymentMode`): config takes
`payment_rails = { shielded, direct }`; the operator's provider is the
`PaymentRouter` built from the enabled set.
Pinned to tangle-inference-core rev 4476f07 (feat/payment-rails). server_tests
26/26 green.
tangletools
approved these changes
Jun 11, 2026
tangletools
left a comment
Contributor
There was a problem hiding this comment.
✅ Auto-approved PR — a254e094
Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-11T20:59:16Z
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.
Greenfield cleanup, no shims.
Delete the tuner-app shared-secret bypass
The
x-tuner-app-secretheader +tuner_app_shared_secretconfig let any caller holding the secret skip all billing and serve free — a leak-prone bearer secret and scope-creep from a tuner-agent effort. Billing now applies to every caller; access control is the payment rails, not a shared secret. The twoif !trusted_app_callguards become plain scopes — the intricate shielded validate/ceiling/nonce/settle logic is byte-identical.Adopt
PaymentRailsConfig takes
payment_rails = { shielded, direct }; the operator's provider is thePaymentRouterbuilt from the enabled set (replacesPaymentMode).Dependency
Pinned to
tangle-inference-corerev4476f07(PR tangle-network/tangle-inference-core#2). Repoint tobranch="master"after that merges.Tests
server_tests26/26 green.