Skip to content

Commit b6e092a

Browse files
committed
Fix: Management Portal deployment with working DAB service
- Fixed DAB configuration connection string format in dab-config.json - Use environment variable for Cosmos connection string (security) - Updated deployment script for production deployment - Archive infrastructure discovery guides to docs/archive/infrastructure-discovery/ - Add README explaining archived guides are for complementary system - Resolve DAB container startup failures and GraphQL endpoint issues - Portal now fully functional at ca-stamps-portal.gentlesea-e3390c4a.westus2.azurecontainerapps.io - DAB GraphQL service working at ca-stamps-dab.gentlesea-e3390c4a.westus2.azurecontainerapps.io/graphql
1 parent faca71b commit b6e092a

File tree

8 files changed

+252
-332
lines changed

8 files changed

+252
-332
lines changed

docs/INFRASTRUCTURE_DISCOVERY_GUIDE.md renamed to docs/archive/infrastructure-discovery/INFRASTRUCTURE_DISCOVERY_GUIDE.md

File renamed without changes.

docs/INFRASTRUCTURE_DISCOVERY_PORTAL_INTEGRATION.md renamed to docs/archive/infrastructure-discovery/INFRASTRUCTURE_DISCOVERY_PORTAL_INTEGRATION.md

File renamed without changes.

docs/INFRASTRUCTURE_DISCOVERY_PRODUCTION_GUIDE.md renamed to docs/archive/infrastructure-discovery/INFRASTRUCTURE_DISCOVERY_PRODUCTION_GUIDE.md

File renamed without changes.

docs/INFRASTRUCTURE_DISCOVERY_TESTING_GUIDE.md renamed to docs/archive/infrastructure-discovery/INFRASTRUCTURE_DISCOVERY_TESTING_GUIDE.md

File renamed without changes.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Infrastructure Discovery - Archived Documentation
2+
3+
## Overview
4+
5+
This folder contains documentation for an **Infrastructure Discovery System** that is separate from the current Management Portal implementation.
6+
7+
## Architecture Differences
8+
9+
| Infrastructure Discovery (Archived) | Current Management Portal |
10+
|-------------------------------------|---------------------------|
11+
| **Azure Function** for discovery | **Blazor Server** application |
12+
| **React/Next.js** frontend | **Blazor Server** frontend |
13+
| **Live Azure ARM API** scanning | **Cosmos DB** static data via DAB |
14+
| **Dynamic infrastructure discovery** | **Static data management** |
15+
| **Pattern-based resource group detection** | **Direct database operations** |
16+
17+
## Purpose
18+
19+
The Infrastructure Discovery system was designed to:
20+
- Automatically scan Azure subscriptions for existing stamp deployments
21+
- Use pattern matching to identify stamp resource groups
22+
- Provide real-time discovery of infrastructure changes
23+
- Generate capacity and health analytics
24+
25+
## Current Status
26+
27+
These guides describe a **complementary system** that could work alongside the current Management Portal by:
28+
- Discovering existing stamp infrastructure automatically
29+
- Feeding discovered data into the Management Portal's Cosmos DB
30+
- Providing infrastructure monitoring capabilities
31+
32+
## Files
33+
34+
- [`INFRASTRUCTURE_DISCOVERY_GUIDE.md`](INFRASTRUCTURE_DISCOVERY_GUIDE.md) - Core Azure Function documentation
35+
- [`INFRASTRUCTURE_DISCOVERY_PORTAL_INTEGRATION.md`](INFRASTRUCTURE_DISCOVERY_PORTAL_INTEGRATION.md) - React/Next.js portal integration
36+
- [`INFRASTRUCTURE_DISCOVERY_PRODUCTION_GUIDE.md`](INFRASTRUCTURE_DISCOVERY_PRODUCTION_GUIDE.md) - Production deployment guide
37+
- [`INFRASTRUCTURE_DISCOVERY_TESTING_GUIDE.md`](INFRASTRUCTURE_DISCOVERY_TESTING_GUIDE.md) - Testing strategies
38+
39+
## Related
40+
41+
For the current Management Portal documentation, see the main [`docs/`](../../) folder.

management-portal/DAPR_UPGRADE_PLAN.md

Lines changed: 0 additions & 274 deletions
This file was deleted.

management-portal/dab/dab-config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"$schema": "https://dataapibuilder.azureedge.net/schemas/latest/dab.draft.schema.json",
33
"data-source": {
44
"database-type": "cosmosdb_nosql",
5+
"connection-string": "@env('COSMOS_CONNECTION_STRING')",
56
"options": {
67
"database": "stamps-control-plane",
78
"schema": "schema.graphql"
8-
},
9-
"connection-string": "@env('COSMOS_CONNECTION_STRING')"
9+
}
1010
},
1111
"runtime": {
1212
"rest": {
@@ -17,28 +17,28 @@
1717
"enabled": true,
1818
"path": "/graphql"
1919
},
20-
"authentication": {
21-
"provider": "StaticWebApps"
20+
"host": {
21+
"cors": {
22+
"origins": ["*"],
23+
"allow-credentials": false
24+
}
2225
}
2326
},
2427
"entities": {
2528
"Tenant": {
2629
"source": "tenants",
2730
"graphql": { "type": { "singular": "Tenant", "plural": "Tenants" } },
28-
"primary-key": ["id", "tenantId"],
2931
"permissions": [ { "role": "anonymous", "actions": [ "read" ] } ]
3032
},
3133
"Cell": {
32-
"source": "cells",
34+
"source": "cells",
3335
"graphql": { "type": { "singular": "Cell", "plural": "Cells" } },
34-
"primary-key": ["id", "cellId"],
3536
"permissions": [ { "role": "anonymous", "actions": [ "read" ] } ]
3637
},
3738
"Operation": {
3839
"source": "operations",
3940
"graphql": { "type": { "singular": "Operation", "plural": "Operations" } },
40-
"primary-key": ["id", "tenantId"],
4141
"permissions": [ { "role": "anonymous", "actions": [ "read" ] } ]
4242
}
4343
}
44-
}
44+
}

0 commit comments

Comments
 (0)