Files
dbis_core/SOLACENET_FINAL_CHECKLIST.md
2026-03-02 12:14:07 -08:00

4.6 KiB

SolaceNet Implementation - Final Checklist

Pre-Deployment Checklist

Database

  • Run Prisma migration: npx prisma migrate dev --name add_solacenet_models
  • Verify all 7 tables created successfully
  • Run seed script: npx ts-node scripts/seed-solacenet.ts
  • Verify initial capabilities are registered

Environment Configuration

  • Copy .env.production.example to .env.production
  • Set DATABASE_URL for production database
  • Set REDIS_URL for Redis cluster
  • Set KAFKA_BROKERS for event bus
  • Generate secure JWT_SECRET
  • Configure ALLOWED_ORIGINS for CORS
  • Set production NODE_ENV=production

Services

  • Verify Redis is running and accessible
  • Verify Kafka is running (if using events)
  • Start DBIS API: npm run start
  • Start Go Gateway: cd gateway/go && go run main.go
  • Verify gateway health: curl http://localhost:8080/health
  • Verify API health: curl http://localhost:3000/health

Testing

  • Run unit tests: npm test
  • Test capability registry API
  • Test policy decision endpoint
  • Test kill switch functionality
  • Test capability toggling via console
  • Verify audit logs are being created

Frontend Console

  • Install dependencies: cd frontend/solacenet-console && npm install
  • Set REACT_APP_API_URL in .env
  • Start console: npm start
  • Verify console loads and displays capabilities
  • Test capability state toggling
  • Test audit log viewing

Monitoring

  • Configure Prometheus (if using)
  • Set up Grafana dashboards (optional)
  • Configure alerting rules
  • Verify metrics endpoint: curl http://localhost:3000/metrics

Security

  • Review all capability check implementations
  • Verify JWT token validation in gateway
  • Check policy rule expressions for security
  • Review audit log access controls
  • Verify secrets are not hardcoded

Documentation

  • Review setup guide
  • Review quick reference
  • Update API documentation
  • Document any custom configurations

🚀 Deployment Steps

  1. Database Migration

    npx prisma migrate deploy
    
  2. Seed Initial Data

    npx ts-node scripts/seed-solacenet.ts
    
  3. Start Services (Docker)

    docker-compose -f docker-compose.solacenet.yml up -d
    
  4. Verify Deployment

    # Check API
    curl http://localhost:3000/health
    
    # Check Gateway
    curl http://localhost:8080/health
    
    # List capabilities
    curl -H "Authorization: Bearer TOKEN" \
      http://localhost:3000/api/v1/solacenet/capabilities
    
  5. Configure Entitlements

    • Create entitlements for your tenants
    • Set up policy rules as needed
    • Enable capabilities for production use

📊 Post-Deployment Monitoring

  • Monitor capability usage metrics
  • Review policy decision logs
  • Check audit logs for anomalies
  • Monitor gateway performance
  • Track risk assessment results
  • Review error rates

🔧 Troubleshooting

Common Issues

Redis Connection Failed

  • Verify Redis is running: redis-cli ping
  • Check REDIS_URL in environment
  • Verify network connectivity

Database Migration Errors

  • Check PostgreSQL is running
  • Verify DATABASE_URL format
  • Check database permissions

Gateway Not Routing

  • Verify backend URL configuration
  • Check gateway logs
  • Verify capability checks are working

Capability Not Available

  • Check entitlement exists
  • Verify capability state
  • Review policy rules
  • Check audit logs

Success Criteria

  • All Phase 1-3 components implemented
  • Database schema created
  • API endpoints functional
  • Gateway routing correctly
  • Console UI operational
  • Audit logs working
  • Kill switch functional
  • Documentation complete

📝 Next Steps After Deployment

  1. Configure Production Entitlements

    • Set up tenant entitlements
    • Configure region-specific capabilities
    • Set up channel restrictions
  2. Create Policy Rules

    • Define business rules
    • Set up risk-based policies
    • Configure limits and restrictions
  3. Enable Capabilities

    • Enable capabilities for production tenants
    • Monitor initial usage
    • Adjust configurations as needed
  4. Scale Infrastructure

    • Set up Redis cluster
    • Configure Kafka cluster
    • Set up load balancing
  5. Continuous Improvement

    • Monitor metrics and optimize
    • Add new capabilities as needed
    • Enhance console features
    • Improve documentation

Status: Ready for Production Deployment