← Back to Pull requests

docs(troubleshooting): a new organisation's API returns 401 #117

Closed
unknown closed this pull request without merging on Nov 27, 2026 14:03 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 10:04 UTC
Author

What

The 401 cause is now explained, with the in-cluster check, on the Branded URLs page (#116: "Step 2: portal login" and "Known pitfalls"). This PR adds short entries in the places people look first, and links them to that page:

  • installation/scobasic.md → Troubleshooting: new entry, "A new organization's API returns 401".

  • - It explains that 401 means the token was rejected, while 403 means a missing role.
    - The usual cause is that the cluster cannot reach the sign-in host name from inside.
    - It links to the Branded URLs pitfall and to the step 2 check.
    - If the check passes and only one user is affected, it points to the email-verified entry.
  • troubleshooting/common-issues.md → "User created but cannot log in": adds the 401 symptom, plus a pointer to the Branded URLs pitfall for when every user of the organisation gets a 401.
  • Why

    A self-hosted install hit a 401 when fetching a new organisation's API schema. The cause was their network blocking the cluster from reaching the sign-in host. Someone troubleshooting from the scobasic page or the common-issues page wouldn't think to look on the Branded URLs page.

    Based on origin/main 181c13db (after #116).

    🤖 Generated with Claude Code

    Diff: 159 lines (+119 / -40) across 1 files Reviewer: MuneebAijaz Review duration: 239m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 159 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.304
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #117"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.4% (LOW) · Higher = larger blast radius
    33.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 13.2% · Safe to merge
    13.2%