Skip to content

feat: network context profile adjusts risk severity (#94) - #103

Merged
reloadfast merged 4 commits into
mainfrom
feat/network-context-profile-94
Mar 2, 2026
Merged

reloadfast merged 4 commits into
mainfrom
feat/network-context-profile-94

Conversation

@reloadfast

Copy link
Copy Markdown
Owner

Closes #94

Summary

Adds a Network Context Profile setting that adjusts the displayed risk severity to match the user's environment without mutating stored data.

Profiles

  • Standard Home (default) — no overrides, shows raw severity
  • Home Lab — demotes some network-exposure checks (e.g. open ports, Telnet) that are intentional in a lab setup
  • Privacy-Focused — promotes tracking/analytics-related checks to higher severity

Changes

  • backend/app/analysis/profiles.py — profile definitions with per-check severity override maps
  • RiskOut.display_severity — computed field; stored severity is never mutated
  • GET/PATCH /api/settings — expose and persist network_profile
  • Settings page — radio button profile selector
  • Dashboard header — shows active profile label as subtitle
  • Risks & Device Detail pages — badge variant uses display_severity
  • 5 new backend tests (43 total), updated frontend fixtures

reloadfast and others added 3 commits March 2, 2026 10:56
- Add profiles module with severity overrides for home_lab and privacy_focused
- Add display_severity field to RiskOut (stored severity unchanged)
- Add network_profile field to SettingsOut and PATCH /api/settings
- Add _get_active_profile() helper reading from AppSetting
- Add profile selector radio buttons to SettingsPage
- Show active profile label in Dashboard header subtitle
- Use display_severity for badge variants on RisksPage and DeviceDetailPage
- Add 5 backend tests (43 total), update frontend test fixtures

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@reloadfast reloadfast closed this Mar 2, 2026
@reloadfast reloadfast reopened this Mar 2, 2026
…ofile)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@reloadfast
reloadfast merged commit b4d1fd7 into main Mar 2, 2026
7 checks passed
@reloadfast
reloadfast deleted the feat/network-context-profile-94 branch March 2, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Network context profile (adjusts risk severity for home lab vs standard home)

1 participant