← Back to Pull requests

feat(maas-consumer-portal): tailor navigation, remove MCP servers tab and provide governance access #9746

Closed
unknown closed this pull request without merging on Sep 15, 2026 13:31 UTC
View on GitHub
unknown unknown commented on Sep 11, 2026 18:01 UTC
Author

https://redhat.atlassian.net/browse/RHOAIENG-94528
https://redhat.atlassian.net/browse/RHOAIENG-94529
https://redhat.atlassian.net/browse/RHOAIENG-94530

Description

Tailors the MaaS Consumer Portal presentation and governance access without changing the main Dashboard or MaaS/GenAI backend capabilities.

  • Hides only the GenAI AI asset mcpservers tab in the portal.

  • Orders portal navigation as AI asset endpoints, API keys, Playground, and MaaS governance.

  • Makes AI asset endpoints the portal landing page.

  • Adds MaaSAuthzProvider, which calls the MaaS authorization endpoint and publishes its fail-closed result as the portal's dynamic ADMIN_USER flag. The existing MaaS governance navigation item and route remain gated by that flag, while backend authorization remains enforced by the MaaS BFF.

  • Documents the portal authorization provider in the distribution README.
  • How Has This Been Tested?

    From distributions/maas-consumer-portal:

    npm run test-unit
    npm run type-check
    npm run lint
    

    The unit suite covers the portal extension catalog, root redirect, and MaaS authorization provider. For a real-cluster check, run the portal against the MaaS BFF as a MaaS-governance authorized user and as a user without that permission; restart the local portal server between users so its proxy picks up the active oc token.

    <img width="1371" height="694" alt="Screenshot 2026-09-11 at 14 18 16" src="https://github.com/user-attachments/assets/a08f753e-deb7-463f-ae3c-1b20e6bd7455" />

    Test Impact

  • Added coverage that the portal suppresses only the MCP Servers AI asset tab and retains other supported tabs.

  • Added coverage for portal navigation ordering and the AI asset endpoints root redirect.

  • Added authorized, denied, and failed MaaS authorization-check coverage for ADMIN_USER, plus governance navigation and route visibility coverage.
  • Request review criteria:

    Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work

  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).

  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

  • The code follows our [Best Practices](/docs/best-practices.md) (React coding standards, PatternFly usage, performance considerations)
  • If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.

  • Included tags to the UX team if it was a UI/UX change.
  • After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

  • New Features

  • - Added administrator-aware access to MaaS governance navigation and routes.
    - Added conditional governance visibility based on the current user’s authorization.
    - Added Gen AI asset tabs for models, MCP servers, vector stores, and agent profiles.

  • Updates

  • - The portal root now opens the Gen AI Studio assets page.
    - Reorganized navigation groups and labels for assets, API keys, playground, and governance.
    - Hid the MCP servers asset tab from the portal.

  • Tests

  • - Added coverage for administrator access, authorization failures, asset visibility, navigation, and redirects.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 447 lines (+335 / -112) across 5 files Reviewer: paulovmr Review duration: 5489m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 447 lines diff across 5 files
    0.45
    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.365
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9746"
    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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.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: 17.9% · Safe to merge
    17.9%