π Enterprise AI Platform for Secure Workflow Orchestration
CyberAi provides an enterprise-ready orchestration control plane for managing contracts, workflows, and task execution. With powerful role-based access controls (RBAC), live audit streams, and optimized CI pipelines, CyberAi is built for scalability and security.
- π RBAC Security: Map user roles to secure task execution layers.
- π€ AI Integrations: Provision enterprise-grade AI seamlessly.
- π οΈ Advanced CI/CD: Streamlined linting, testing, and builds.
- π¦ Containerized Deployments: Robust Docker and Kubernetes integration.
This repository acts as the control center for secure runtime and delivery. It avoids legacy UI while prioritizing enterprise-ready implementations for modern workflows.
| Parameter | Scope | Default | Description |
|---|---|---|---|
NODE_ENV |
Defines runtime mode in server.js |
development |
Production disables token stubs and enforces stricter auth. |
PORT |
API and WebSocket listener (index.js) |
3000 |
Defines the port exposed by the API service. |
ROLE_MODEL |
Roles within src/security + rbac.js |
Action-based RBAC | Maps UI roles to backend execution roles for orchestrated tasks. |
| Canonical Role | Access | Backend Role | Permissions |
|---|---|---|---|
admin |
Full platform access | admin |
π Unrestricted task access |
operator |
Workflows and deployments | developer |
π οΈ Execute workflows |
user |
Read-only access | auditor |
π View-only permissions |
guest |
Minimal or public access | agent |
β Restricted tasks |
| Variable | Required | Example | Purpose |
|---|---|---|---|
LLAMA_API_KEY |
Yes (AI Enabled) | llama_live_abcdef123456 |
Authenticate with enterprise AI providers. |
MARKETPLACE_ENABLED |
Yes | true |
Enables enterprise marketplace workflows. |
NODE_ENV=production
PORT=3000
LLAMA_API_KEY=llama_live_abcdef123456
MARKETPLACE_ENABLED=truenode -e "console.log({
nodeEnv: process.env.NODE_ENV,
apiKeyPresent: !!process.env.LLAMA_API_KEY,
port: process.env.PORT
})"| Workflow Name | File Location | Trigger | Purpose |
|---|---|---|---|
| β Continuous Integration | .github/workflows/ci.yml |
Changes on main |
Lint, typecheck, and test automation. |
| π οΈ Advanced Build Matrix | .github/workflows/advanced-build.yml |
Dispatch / main changes | Matrix builds for multiple platforms/versions. |
| β CodeQL Security | .github/workflows/codeql.yml |
Weekly / Manual | Detect security vulnerabilities automatically. |
CyberAi keeps its enterprise build system deterministic across development, CI, and production containers.
- π οΈ Primary Compiler:
npm run build(TypeScripttsc) - β
Type Gate:
npm run typecheck - π Quality Gate:
npm run lint && npm run test - β‘ Optimized Pipeline:
npm run build:advanced - π’ Container Build:
npm run docker:build - π Full Build Ref: BUILD.md
# Step 1: Install dependencies
npm ci
# Step 2: Pass quality gates
npm run lint
npm run typecheck
npm run test
# Step 3: Launch in dev mode
npm run dev:enterprise# Build the Docker image
npm run docker:build
# Run the image locally
docker run -p 3000:3000 --env-file ./.env.enterprise cyberai:latest-
Ensure
.envis properly configured (see Example .env File). -
Push changes to
mainto trigger workflows. -
Verify deployment via CI/CD pipeline logs.
-
Perform post-deployment smoke tests:
curl -X POST http://host/api/task -H 'Content-Type: application/json' \ -d '{"prompt": "health-check", "agent": "test-runner"}'
CyberAi/
βββ app/ # Frontend layer (UI Views)
βββ src/ # Core business logic
βββ server/ # Secure API backend + orchestrator
βββ contracts/ # Smart Contract definitions
βββ tests/ # Unit/system-level tests
βββ .github/workflows/ # Action definitions
βββ docs/ # Enterprise documentation
- π€ Contributions: See CONTRIBUTING.md
- π‘οΈ Security Policy: See SECURITY.md
- βοΈ Licensed Under MIT: See LICENSE