feat: Complete MongoDB/MinIO removal and integrate CLI consolidation
This commit completes the MongoDB and MinIO removal from the StellaOps platform and integrates the CLI consolidation work from remote. ## Infrastructure Changes - PostgreSQL v16+ is now the ONLY supported database - Valkey v8.0 replaces Redis for caching, DPoP security, and event streams - RustFS is the primary object storage (MinIO fully removed) - NATS is OPTIONAL for messaging (Valkey is default transport) ## Docker Compose Updates Updated all deployment profiles: - deploy/compose/docker-compose.dev.yaml - deploy/compose/docker-compose.airgap.yaml - deploy/compose/docker-compose.stage.yaml - deploy/compose/docker-compose.prod.yaml All profiles now use PostgreSQL + Valkey + RustFS stack. ## Environment Configuration Updated all env.example files with: - Removed: MONGO_*, MINIO_* variables - Added: POSTGRES_*, VALKEY_* variables - Updated: SCANNER_QUEUE_BROKER to use Valkey by default - Enhanced: Surface.Env and Offline Kit configurations ## Aoc.Cli Changes - Removed --mongo option entirely - Made --postgres option required - Removed VerifyMongoAsync method - PostgreSQL is now the only supported backend ## CLI Consolidation (from merge) Integrated plugin architecture for unified CLI: - stella aoc verify (replaces stella-aoc) - stella symbols (replaces stella-symbols) - Plugin manifests and command modules - Migration guide for users ## Documentation Updates - README.md: Updated deployment workflow notes - DEVELOPER_ONBOARDING.md: Complete Valkey-centric flow diagrams - QUICKSTART_HYBRID_DEBUG.md: Removed MongoDB/MinIO references - VERSION_MATRIX.md: Updated infrastructure dependencies - CLEANUP_SUMMARY.md: Marked all cleanup tasks complete - 07_HIGH_LEVEL_ARCHITECTURE.md: Corrected infrastructure stack - 11_DATA_SCHEMAS.md: Valkey keyspace documentation ## Merge Resolution Resolved merge conflicts by accepting incoming changes which had more complete Surface.Env and Offline Kit configurations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,14 +28,11 @@ notepad .env
|
||||
|
||||
**Minimum required changes in .env:**
|
||||
```bash
|
||||
MONGO_INITDB_ROOT_USERNAME=stellaops
|
||||
MONGO_INITDB_ROOT_PASSWORD=StrongPassword123!
|
||||
|
||||
POSTGRES_USER=stellaops
|
||||
POSTGRES_PASSWORD=StrongPassword123!
|
||||
POSTGRES_DB=stellaops_platform
|
||||
|
||||
MINIO_ROOT_USER=stellaops
|
||||
MINIO_ROOT_PASSWORD=StrongPassword123!
|
||||
VALKEY_PORT=6379
|
||||
```
|
||||
|
||||
**Start the platform:**
|
||||
@@ -96,9 +93,7 @@ cd "C:\dev\New folder\git.stella-ops.org\src\Scanner\StellaOps.Scanner.WebServic
|
||||
},
|
||||
"Scanner": {
|
||||
"Storage": {
|
||||
"Mongo": {
|
||||
"ConnectionString": "mongodb://stellaops:StrongPassword123!@localhost:27017"
|
||||
}
|
||||
"Driver": "postgres"
|
||||
},
|
||||
"ArtifactStore": {
|
||||
"Driver": "rustfs",
|
||||
@@ -107,7 +102,7 @@ cd "C:\dev\New folder\git.stella-ops.org\src\Scanner\StellaOps.Scanner.WebServic
|
||||
"TimeoutSeconds": 30
|
||||
},
|
||||
"Queue": {
|
||||
"Broker": "nats://localhost:4222"
|
||||
"Broker": "valkey://localhost:6379"
|
||||
},
|
||||
"Events": {
|
||||
"Enabled": false
|
||||
@@ -304,31 +299,32 @@ docker compose -f docker-compose.dev.yaml logs postgres
|
||||
docker compose -f docker-compose.dev.yaml restart postgres
|
||||
```
|
||||
|
||||
### Issue 3: "NATS connection refused"
|
||||
### Issue 3: "Valkey connection refused"
|
||||
|
||||
**Fix:**
|
||||
```powershell
|
||||
# Verify NATS is running
|
||||
docker compose -f docker-compose.dev.yaml ps nats
|
||||
# Verify Valkey is running
|
||||
docker compose -f docker-compose.dev.yaml ps valkey
|
||||
|
||||
# Restart NATS
|
||||
docker compose -f docker-compose.dev.yaml restart nats
|
||||
# Restart Valkey
|
||||
docker compose -f docker-compose.dev.yaml restart valkey
|
||||
|
||||
# Test connectivity
|
||||
telnet localhost 4222
|
||||
telnet localhost 6379
|
||||
```
|
||||
|
||||
### Issue 4: "MongoDB authentication failed"
|
||||
### Issue 4: "RustFS connection failed"
|
||||
|
||||
**Fix:**
|
||||
|
||||
Check that passwords match in `.env` and `appsettings.Development.json`:
|
||||
|
||||
```powershell
|
||||
# Reset MongoDB
|
||||
docker compose -f docker-compose.dev.yaml stop mongo
|
||||
docker volume rm compose_mongo-data
|
||||
docker compose -f docker-compose.dev.yaml up -d mongo
|
||||
# Verify RustFS is running
|
||||
docker compose -f docker-compose.dev.yaml ps rustfs
|
||||
|
||||
# Restart RustFS
|
||||
docker compose -f docker-compose.dev.yaml restart rustfs
|
||||
|
||||
# Test API
|
||||
curl http://localhost:8080/health
|
||||
```
|
||||
|
||||
### Issue 5: "Build failed in Visual Studio"
|
||||
@@ -424,10 +420,10 @@ docker compose -f docker-compose.dev.yaml down -v
|
||||
|---------|-----|
|
||||
| Scanner (your debug instance) | http://localhost:5210 |
|
||||
| PostgreSQL | `localhost:5432` |
|
||||
| MongoDB | `localhost:27017` |
|
||||
| MinIO Console | http://localhost:9001 |
|
||||
| Valkey | `localhost:6379` |
|
||||
| RustFS | http://localhost:8080 |
|
||||
| Authority | https://localhost:8440 |
|
||||
| NATS (optional) | `localhost:4222` |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user