Interface to facilitate the visualization and analysis of Azure DevOps
1.5K
Github: https://github.com/c3t4r4/azure-devops-analytics
Dashboard to monitor organizations, projects, pipelines, work items, and repositories in Azure DevOps. Includes JWT authentication, light/dark theme, and Redis cache for better performance.
All services start with hot reload (backend and frontend).
cd DashboardDevopsAzure
docker compose -f docker-compose.dev.yml up --build
Access:
cd DashboardDevopsAzure
docker compose -f docker-compose.dev.yml up postgres redis -d
dotnet watch run --project backend/src/DashboardDevops.Api
cd frontend
npm install
ng serve --proxy-config proxy.conf.json
The frontend uses proxy.conf.json to forward API calls to the running backend.
cp .env.example .env
Edit .env and set secure values for:
POSTGRES_PASSWORDJWT__KEY (e.g. openssl rand -base64 64)AUTH__DEFAULTPASSWORDENCRYPTION__KEY (e.g. openssl rand -base64 32) to encrypt PATs in the databasedocker compose up --build -d
Backend (.NET):
cd backend
dotnet test DashboardDevops.sln
Frontend (Angular/Vitest):
cd frontend
npm test
Or from root: cd backend && dotnet test DashboardDevops.sln and cd frontend && npm test.
Single script that runs backend and frontend lint (from repository root):
chmod +x scripts/lint.sh # only the first time
./scripts/lint.sh
dotnet format with --verify-no-changes in the backend.ng lint (ESLint + Angular ESLint).To run only one:
dotnet format backend/DashboardDevops.sln --verify-no-changes
cd frontend && npm run lint
The dashboard requires authentication. On first run, an admin user is created automatically.
[email protected]admin123 (or the value of AUTH__DEFAULTPASSWORD in .env)Configure JWT__KEY and AUTH__DEFAULTPASSWORD in .env for production.
Use the sun/moon icon in the top-right corner or on the login screen to switch between light and dark theme. The preference is saved in the browser.
http://localhost:4200/organizationsmy-company)https://dev.azure.com/my-companyhttps://dev.azure.com/{your-org}/_usersettings/tokens| Screen | Description |
|---|---|
| Dashboard | Summary of all organizations with totals and status |
| Organizations | Manage Azure DevOps connections (CRUD with PAT) |
| Projects | Grid of all projects with search and filters |
| Pipelines | Real-time build/release status (30s polling) |
| Work Items | Active items with filters by type, state, and search |
| Repositories | Git repos with default branch and external links |
POST /api/auth/login Login (body: { username, password })
GET /api/organizations List organizations (requires auth)
POST /api/organizations Add organization
PUT /api/organizations/{id} Update organization
DELETE /api/organizations/{id} Remove organization
GET /api/organizations/{org}/projects List projects
GET /api/organizations/{org}/projects/{proj}/pipelines List pipelines
GET /api/organizations/{org}/projects/{proj}/work-items List work items
GET /api/organizations/{org}/projects/{proj}/repositories List repositories
GET /api/dashboard/summary Aggregated summary
GET /health Health check
GET /swagger API documentation
| Resource | TTL |
|---|---|
| Projects | 5 min |
| Pipelines | 30 sec |
| Work Items | 2 min |
| Repositories | 5 min |
Argon2Sharp) with:
WithMemorySizeKB(65536))WithIterations(3))WithParallelism(4))WithRandomSalt()).$argon2), including all parameters needed for verification.$argon2, verification falls back to BCrypt (legacy mode).In short: each password is derived with Argon2id (memory-hard, resistant to GPU/ASIC brute-force), and the database stores only the resulting hash, never the original password.
Sensitive organization data (especially the PAT Token and organization URL) is encrypted at rest in the organizations table:
AesEncryptionService.KeySize = 32 bytes).ENC: followed by Base64 of nonce + ciphertext + tag.ENCRYPTION__KEY environment variable:
ENCRYPTION__KEY is not set, the service logs a warning and does not encrypt (reads/writes plain text). In production, this key must be set.Flow in the repository layer (OrganizationRepository):
AddAsync/UpdateAsync):
PatToken and Url go through EncryptIfNeeded, which:
ENC: (migration / legacy data).GetAllAsync, GetByIdAsync, GetByNameAsync):
PatToken and Url are always passed through Decrypt, returning plain text to the rest of the application.Thus, the database never stores the PAT or URL in plain text when ENCRYPTION__KEY is set.
RedisCacheService) serializes objects as JSON with System.Text.Json and writes with StringSetAsync, respecting the TTLs in the table above.DashboardSummary (totals for orgs, pipelines, projects, etc.).TimelineResponse (project/sprint timeline).TodayUpdatesResponse (items updated today).In production, Redis data protection depends on:
So: secrets (PAT) are protected in the database via AES-GCM, while Redis holds only read-only projections without PAT.
DashboardDevopsAzure/
├── docker-compose.yml # Production
├── docker-compose.dev.yml # Development (hot reload)
├── .env.example
├── README.md # Portuguese
├── README.en.md # English
├── scripts/
│ └── lint.sh # .NET + Angular lint
├── backend/
│ ├── DashboardDevops.sln # .NET solution
│ ├── src/
│ │ ├── DashboardDevops.Api/ # Controllers, Program.cs, Swagger
│ │ ├── DashboardDevops.Application/ # Services, DTOs
│ │ ├── DashboardDevops.Domain/ # Entities, Interfaces, Models
│ │ └── DashboardDevops.Infrastructure/ # EF Core, Redis, Azure DevOps client
│ └── tests/
│ └── DashboardDevops.Tests/ # Unit tests (xUnit)
└── frontend/
└── src/app/
├── core/ # Services, Models, Interceptors
├── features/ # Dashboard, Organizations, Projects, Pipelines, etc.
└── shared/ # UI components, layout
docker pull c3t4r4/azure-devops-analytics-frontend:latest