# rmahimalurs/dash architecture

> Architecture diagram of the GitHub repository rmahimalurs/dash, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rmahimalurs/dash
- Repository: https://github.com/rmahimalurs/dash

## Overview

CMS DMSC DevOps Dashboard is an internal React/FastAPI hub for infrastructure visibility and self-service operations. Engineers sign in through AD-backed authentication, then use dashboard views or automation and maintenance workflows; the browser API client routes requests to backend endpoints, which invoke domain services and external tools. The graph preserves documented monitoring, GitHub, Jira, and maintenance capabilities, while sampled call edges are limited to relationships shown in excerpts or the README; unsampled subsystem wiring is not inferred.

Main entry points: [`backend/app/main.py`](https://github.com/rmahimalurs/dash/blob/main/backend/app/main.py) (FastAPI app), [`backend/app/routers/automation.py`](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/automation.py) (Automation routes), [`backend/app/routers/maintenance.py`](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/maintenance.py) (Maintenance routes), [`backend/app/services`](https://github.com/rmahimalurs/dash/tree/main/backend/app/services) (Maintenance orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web interface"]
  node_spa["React application<br/>[App.tsx]"]
  node_pages["Product pages"]
  node_widgets["Tool widgets"]
  node_client["API client<br/>[client.ts]"]
end

subgraph group_api["Backend API"]
  node_fastapi["FastAPI app<br/>[main.py]"]
  node_authroutes["Authentication routes<br/>[auth.py]"]
  node_automationroute["Automation routes<br/>[automation.py]"]
  node_maintroute["Maintenance routes<br/>[maintenance.py]"]
  node_githubroute["GitHub routes<br/>[github.py]"]
  node_dashboardroutes["Dashboard routes<br/>[dashboard.py]"]
  node_monitorroute["Monitoring routes<br/>[monitoring.py]"]
  node_jiraroute["Jira routes<br/>[jira.py]"]
end

subgraph group_operations["DevOps operations"]
  node_automation["Self-service operations"]
  node_controllercopy["Controller copy<br/>[copy_controller.py]"]
  node_controllerusers["Controller user audit"]
  node_maintservices["Maintenance orchestration"]
  node_jiraservice["Ticket workflows<br/>[jira_service.py]"]
  node_confluence["Confluence publishing"]
  node_jenkins["Jenkins operations<br/>[jenkins.py]"]
end

subgraph group_integrations["External systems"]
  node_ad{{"Active Directory"}}
  node_tools{{"DevOps tool endpoints"}}
  node_github{{"GitHub"}}
  node_jira{{"Jira / MGGD"}}
  node_confluencesvc{{"Confluence"}}
  node_victorops{{"VictorOps"}}
  node_datadog{{"Datadog"}}
  node_aws{{"AWS services"}}
end

subgraph group_state["Identity and records"]
  node_jwt["JWT sessions<br/>[jwt.py]"]
  node_ldapauth["AD authentication<br/>[ldap.py]"]
  node_config["Runtime settings<br/>[config.py]"]
  node_audit[("Audit records<br/>[audit.py]")]
end

node_engineer(("Engineer"))

node_engineer -->|"uses"| node_spa
node_spa -->|"routes to"| node_pages
node_pages -.->|"requests data"| node_client
node_widgets -->|"requests data"| node_client
node_client -->|"calls API"| node_fastapi
node_fastapi -->|"registers"| node_authroutes
node_fastapi -->|"registers"| node_automationroute
node_fastapi -->|"registers"| node_maintroute
node_fastapi -->|"registers"| node_githubroute
node_fastapi -->|"registers"| node_dashboardroutes
node_fastapi -->|"registers"| node_monitorroute
node_fastapi -->|"registers"| node_jiraroute
node_authroutes -->|"authenticates"| node_ldapauth
node_authroutes -->|"creates session"| node_jwt
node_ldapauth -->|"checks identity"| node_ad
node_jwt -->|"reads settings"| node_config
node_automationroute -->|"dispatches operations"| node_automation
node_automationroute -->|"dispatches copy"| node_controllercopy
node_automationroute -->|"dispatches audit"| node_controllerusers
node_controllercopy -->|"uses Jenkins"| node_jenkins
node_controllercopy -->|"discovers roles"| node_aws
node_controllerusers -->|"checks accounts"| node_ad
node_controllerusers -->|"runs scripts"| node_jenkins
node_maintroute -->|"creates tickets"| node_jiraservice
node_maintroute -->|"publishes newsletter"| node_confluence
node_maintroute -->|"triggers jobs"| node_jenkins
node_maintservices -.->|"manages upgrades"| node_tools
node_maintservices -.->|"updates branches"| node_github
node_maintservices -.->|"manages downtime"| node_datadog
node_maintservices -.->|"reads rotation"| node_victorops
node_jiraservice -->|"creates tickets"| node_jira
node_confluence -.->|"publishes pages"| node_confluencesvc
node_audit -->|"reads settings"| node_config
node_authroutes -->|"records events"| node_audit
node_automationroute -->|"records events"| node_audit
node_maintroute -->|"records events"| node_audit
node_dashboardroutes -.->|"monitors status"| node_tools
node_dashboardroutes -.->|"reads rotation"| node_victorops
node_monitorroute -.->|"reports health"| node_tools
node_githubroute -->|"manages access"| node_github

click node_spa "https://github.com/rmahimalurs/dash/blob/main/frontend/src/App.tsx"
click node_pages "https://github.com/rmahimalurs/dash/tree/main/frontend/src/pages"
click node_widgets "https://github.com/rmahimalurs/dash/tree/main/frontend/src/components/widgets"
click node_client "https://github.com/rmahimalurs/dash/blob/main/frontend/src/api/client.ts"
click node_fastapi "https://github.com/rmahimalurs/dash/blob/main/backend/app/main.py"
click node_authroutes "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/auth.py"
click node_automationroute "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/automation.py"
click node_maintroute "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/maintenance.py"
click node_githubroute "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/github.py"
click node_dashboardroutes "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/dashboard.py"
click node_monitorroute "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/monitoring.py"
click node_jiraroute "https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/jira.py"
click node_jwt "https://github.com/rmahimalurs/dash/blob/main/backend/app/auth/jwt.py"
click node_ldapauth "https://github.com/rmahimalurs/dash/blob/main/backend/app/auth/ldap.py"
click node_config "https://github.com/rmahimalurs/dash/blob/main/backend/app/config.py"
click node_audit "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/audit.py"
click node_automation "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/automation_service.py"
click node_controllercopy "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/copy_controller.py"
click node_controllerusers "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/controller_users.py"
click node_maintservices "https://github.com/rmahimalurs/dash/tree/main/backend/app/services"
click node_jiraservice "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/jira_service.py"
click node_confluence "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/confluence_service.py"
click node_jenkins "https://github.com/rmahimalurs/dash/blob/main/backend/app/services/jenkins.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_spa,node_pages,node_widgets,node_client toneBlue
class node_fastapi,node_authroutes,node_automationroute,node_maintroute,node_githubroute,node_dashboardroutes,node_monitorroute,node_jiraroute toneAmber
class node_automation,node_controllercopy,node_controllerusers,node_maintservices,node_jiraservice,node_confluence,node_jenkins toneMint
class node_ad,node_tools,node_github,node_jira,node_confluencesvc,node_victorops,node_datadog,node_aws toneRose
class node_jwt,node_ldapauth,node_config,node_audit,node_engineer toneIndigo
```

## Components

### Web interface

- [React application](https://github.com/rmahimalurs/dash/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Product pages](https://github.com/rmahimalurs/dash/tree/main/frontend/src/pages): `frontend/src/pages`
- [Tool widgets](https://github.com/rmahimalurs/dash/tree/main/frontend/src/components/widgets): `frontend/src/components/widgets`
- [API client](https://github.com/rmahimalurs/dash/blob/main/frontend/src/api/client.ts): `frontend/src/api/client.ts`

### Backend API

- [FastAPI app](https://github.com/rmahimalurs/dash/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/auth.py): `backend/app/routers/auth.py`
- [Automation routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/automation.py): `backend/app/routers/automation.py`
- [Maintenance routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/maintenance.py): `backend/app/routers/maintenance.py`
- [GitHub routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/github.py): `backend/app/routers/github.py`
- [Dashboard routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/dashboard.py): `backend/app/routers/dashboard.py`
- [Monitoring routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/monitoring.py): `backend/app/routers/monitoring.py`
- [Jira routes](https://github.com/rmahimalurs/dash/blob/main/backend/app/routers/jira.py): `backend/app/routers/jira.py`

### DevOps operations

- [Self-service operations](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/automation_service.py): `backend/app/services/automation_service.py`
- [Controller copy](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/copy_controller.py): `backend/app/services/copy_controller.py`
- [Controller user audit](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/controller_users.py): `backend/app/services/controller_users.py`
- [Maintenance orchestration](https://github.com/rmahimalurs/dash/tree/main/backend/app/services): `backend/app/services`
- [Ticket workflows](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/jira_service.py): `backend/app/services/jira_service.py`
- [Confluence publishing](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/confluence_service.py): `backend/app/services/confluence_service.py`
- [Jenkins operations](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/jenkins.py): `backend/app/services/jenkins.py`

### External systems

- **Active Directory**
- **DevOps tool endpoints**
- **GitHub**
- **Jira / MGGD**
- **Confluence**
- **VictorOps**
- **Datadog**
- **AWS services**

### Identity and records

- [JWT sessions](https://github.com/rmahimalurs/dash/blob/main/backend/app/auth/jwt.py): `backend/app/auth/jwt.py`
- [AD authentication](https://github.com/rmahimalurs/dash/blob/main/backend/app/auth/ldap.py): `backend/app/auth/ldap.py`
- [Runtime settings](https://github.com/rmahimalurs/dash/blob/main/backend/app/config.py): `backend/app/config.py`
- [Audit records](https://github.com/rmahimalurs/dash/blob/main/backend/app/services/audit.py): `backend/app/services/audit.py`

### Other components

- **Engineer**

## Connections

- Engineer → React application: uses
- React application → Product pages: routes to (evidence: `frontend/src/App.tsx`)
- Product pages → API client: requests data (evidence: `frontend/src/pages/Maintenance.tsx`)
- Tool widgets → API client: requests data (evidence: `frontend/src/components/widgets/CopyControllerWidget.tsx`)
- API client → FastAPI app: calls API
- FastAPI app → Authentication routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → Automation routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → Maintenance routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → GitHub routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → Dashboard routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → Monitoring routes: registers (evidence: `backend/app/main.py`)
- FastAPI app → Jira routes: registers (evidence: `backend/app/main.py`)
- Authentication routes → AD authentication: authenticates (evidence: `backend/app/routers/auth.py`)
- Authentication routes → JWT sessions: creates session (evidence: `backend/app/routers/auth.py`)
- AD authentication → Active Directory: checks identity
- JWT sessions → Runtime settings: reads settings (evidence: `backend/app/auth/jwt.py`)
- Automation routes → Self-service operations: dispatches operations (evidence: `backend/app/routers/automation.py`)
- Automation routes → Controller copy: dispatches copy (evidence: `backend/app/routers/automation.py`)
- Automation routes → Controller user audit: dispatches audit (evidence: `backend/app/routers/automation.py`)
- Controller copy → Jenkins operations: uses Jenkins (evidence: `backend/app/services/copy_controller.py`)
- Controller copy → AWS services: discovers roles (evidence: `backend/app/services/copy_controller.py`)
- Controller user audit → Active Directory: checks accounts (evidence: `backend/app/services/controller_users.py`)
- Controller user audit → Jenkins operations: runs scripts (evidence: `backend/app/services/controller_users.py`)
- Maintenance routes → Ticket workflows: creates tickets (evidence: `backend/app/routers/maintenance.py`)
- Maintenance routes → Confluence publishing: publishes newsletter (evidence: `backend/app/routers/maintenance.py`)
- Maintenance routes → Jenkins operations: triggers jobs (evidence: `backend/app/routers/maintenance.py`)
- Maintenance orchestration → DevOps tool endpoints: manages upgrades
- Maintenance orchestration → GitHub: updates branches
- Maintenance orchestration → Datadog: manages downtime
- Maintenance orchestration → VictorOps: reads rotation
- Ticket workflows → Jira / MGGD: creates tickets (evidence: `backend/app/services/jira_service.py`)
- Confluence publishing → Confluence: publishes pages
- Audit records → Runtime settings: reads settings (evidence: `backend/app/services/audit.py`)
- Authentication routes → Audit records: records events (evidence: `backend/app/routers/auth.py`)
- Automation routes → Audit records: records events (evidence: `backend/app/routers/automation.py`)
- Maintenance routes → Audit records: records events (evidence: `backend/app/routers/maintenance.py`)
- Dashboard routes → DevOps tool endpoints: monitors status
- Dashboard routes → VictorOps: reads rotation
- Monitoring routes → DevOps tool endpoints: reports health
- GitHub routes → GitHub: manages access (evidence: `backend/app/routers/github.py`)
