feat(auth): first-run local administrator onboarding

Analysed against ca9aec8010 files changedby 1012839419a-alt
Open PR on GitHub

Change-risk score

9.3out of 10Elevated
Repository health
5.3to5.9base against this head

This change sits in the top third of this repository's own risk distribution, the band worth reviewing closely. It is riskier than 78% of this repository's own commits.

The largest health movement is in fleet_auth.py, down 1.5. Nothing outside this PR depends on a contract it changed.

Files changed
10
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
2
2 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

backendchromecompatdocsfrontendiiiopenspecscriptstestsapibrowser_act_packsschemasservicesskillsworkflowdify_gra…appcomponentslibchangesintegrationunitecommercelead-generationsocial-listeningintellige…(app)flowrecordsuiunlumen-uiflowworkflowapichannelscontrolpipeline
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 1,488 of 1,631 files at a readable size, grouped by directory and sized by lines of code. 10 changed here reach 25 more by import. 143 are too small to see at this width, which is what the frame below is for.

Inside backend

agent_runtimesapibrowser_act_packschannelscontrolimage_st…llmmigratio…plan_irpluginsschemassecurityservicesskillsworkflowv1ecommercelead-generat…social-listeningversionsintelligencebrows…cr…opencli_…skil…agen…in…jo…__i…im…inte…cu…pi…exe…val…capa…cont…op…workf…url…image_s…op…plugin…prov…reco…cor…loo…tr…tasks…capabili…compiler…data_ope…dataflow…demand_a…dify_im…ex…fl…hda_tem…htt…int…joy…kat…las…nat…native_intell…nati…no…open…opencli_hd…patcher.pyresea…research_o…runti…runtime_regis…situa…swarm…tool_…trigg…tur…turb…tur…work…brow…cha…co…dashbo…image_st…nodes.…oper…ope…pr…pro…studi…st…ta…work…od…co…report…simula…SK…SK…SK…

630 files, 6 changed by this PR and 19 that import one. This PR changes 8 files in total, spread across more than one top-level directory. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (2)
  • mediumcomplex conditional
    backend/security/fleet_auth.py:202

    if condition combines 4 boolean operators

  • lowbumpy road
    frontend/components/auth/auth-provider.tsx:55

    AuthProvider has 3 nested blocks at the same level (bumpy road)

Resolved (2)
  • function hotspot
    frontend/components/auth/auth-provider.tsx
  • dry violation
    frontend/components/auth/auth-provider.tsx

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • backend/security/identity.py2233admin 100% of 3 commits
  • tests/unit/test_migration_heads.py2233admin 100% of 9 commits
  • frontend/lib/api/endpoints.tslunnt 50% of 18 commits
  • backend/models/identity.py2233admin 100% of 1 commits
  • tests/integration/test_legacy_plugin_migration.py2233admin 100% of 8 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/integration/test_auth_api.py
  • tests/integration/test_auth_ws.py
  • tests/integration/test_control_api.py
  • tests/integration/test_image_studio_api.py
  • tests/integration/test_workers_api.py
  • tests/unit/api/test_consumer_grants.py
  • tests/integration/test_chat_api.py
  • tests/unit/api/test_automations.py
  • tests/unit/security/test_fleet_auth.py
  • tests/unit/api/test_workspaces.py

4 changed files have no test importing them.

Get this on your own pull requests

This page came from an index of 2233admin/opencli-Razormind. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.

feat(auth): first-run local administrator onboarding · 2233admin/opencli-Razormind #68 · Repowise