Skip to content

Cover the embedded auth server in threat model - #6879

Merged
rdimitrov merged 1 commit into
mainfrom
authserver-threat-model
Oct 20, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
authserver-threat-model

Conversation

@jhrozek

@jhrozek jhrozek commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

The OSS Scanner threat model mentioned the embedded authorization
server only in passing, so the scanner had no guidance on its attack
surface, its trust assumptions, or how to rank findings against it.

Add the authorization server to the existing sections in the same
style as the other components: its goals (token issuance, single-use
codes, the AllowedAudiences ceiling, upstream token isolation), its
unauthenticated inputs, the code ToolHive adds around fosite, the
tsid and token exchange boundaries, and severity examples. Record the
accepted trade-offs (Redis is trusted, SPIFFE assertion replay within
its lifetime, SHA-256 client secrets, delegate client trust) so the
scanner does not report them.

Co-authored-by: Mecatl [email protected]

The OSS Scanner threat model mentioned the embedded authorization
server only in passing, so the scanner had no guidance on its attack
surface, its trust assumptions, or how to rank findings against it.

Add the authorization server to the existing sections in the same
style as the other components: its goals (token issuance, single-use
codes, the AllowedAudiences ceiling, upstream token isolation), its
unauthenticated inputs, the code ToolHive adds around fosite, the
tsid and token exchange boundaries, and severity examples. Record the
accepted trade-offs (Redis is trusted, SPIFFE assertion replay within
its lifetime, SHA-256 client secrets, delegate client trust) so the
scanner does not report them.

Co-authored-by: Mecatl <[email protected]>
@jhrozek
jhrozek requested a review from JAORMX as a code owner October 20, 2026 09:17
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.66%. Comparing base (89b1bd2) to head (0451755).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6879      +/-   ##
==========================================
- Coverage   79.77%   79.66%   -0.12%     
==========================================
  Files         820      821       +1     
  Lines       83723    83726       +3     
==========================================
- Hits        66791    66698      -93     
- Misses      16927    17023      +96     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@rdimitrov
rdimitrov merged commit 4fd4854 into main Oct 20, 2026
44 checks passed
@rdimitrov
rdimitrov deleted the authserver-threat-model branch October 20, 2026 09:35
@github-actions github-actions Bot mentioned this pull request Oct 22, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants