Skip to content

doc: clarify auth webhook maxPrice scope - #4019

Merged
rickstaa merged 2 commits into
masterfrom
docs/remote-signer-auth-webhook-maxprice-scope
Aug 12, 2026
Merged

doc: clarify auth webhook maxPrice scope#4019
rickstaa merged 2 commits into
masterfrom
docs/remote-signer-auth-webhook-maxprice-scope

Conversation

@rickstaa

@rickstaa rickstaa commented Aug 12, 2026

Copy link
Copy Markdown
Member

Follow-up to the discussion in #4014.

The auth webhook maxPrice and the auth expiry caching are each documented, but their interaction is not. The webhook maxPrice is checked only inside the callbackResp != nil branch (server/remote_signer.go:681-694), so it is not evaluated while auth is cached, and it is not stored in RemotePaymentState, so it does not carry over to later requests. The other ceilings (configured max, request maxPrice, initial session price) do run on every request at server/remote_signer.go:586-590.

Adds one sentence to the pricing-checks section pointing at the expiry caching docs.

Docs only, no behavior change.

@rickstaa
rickstaa requested a review from j0sh August 12, 2026 08:08
@github-actions github-actions Bot added the docs label Aug 12, 2026
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.52076%. Comparing base (310d90a) to head (e0a2633).

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #4019         +/-   ##
===================================================
- Coverage   35.52297%   35.52076%   -0.00221%     
===================================================
  Files            174         174                 
  Lines          45213       45213                 
===================================================
- Hits           16061       16060          -1     
- Misses         27878       27879          +1     
  Partials        1274        1274                 

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 310d90a...e0a2633. Read the comment docs.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The auth webhook maxPrice is checked only when the webhook fires and is
not retained across cached auth requests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@rickstaa
rickstaa force-pushed the docs/remote-signer-auth-webhook-maxprice-scope branch from 02bfc93 to e0a2633 Compare August 12, 2026 08:25
@rickstaa
rickstaa merged commit 8e852c3 into master Aug 12, 2026
12 of 14 checks passed
@rickstaa
rickstaa deleted the docs/remote-signer-auth-webhook-maxprice-scope branch August 12, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants