|
| 1 | +# Compatibility |
| 2 | + |
| 3 | +This document outlines the supported Node.js versions, operating systems, and other compatibility information for the Agentic Workflow Firewall. |
| 4 | + |
| 5 | +## Supported Versions |
| 6 | + |
| 7 | +### Node.js |
| 8 | + |
| 9 | +| Version | Status | Notes | |
| 10 | +|---------|--------|-------| |
| 11 | +| Node.js 22.x | ✅ Fully Supported | Active LTS (recommended) | |
| 12 | +| Node.js 20.x | ✅ Fully Supported | Maintenance LTS | |
| 13 | +| Node.js 18.x | ✅ Supported | Minimum required version | |
| 14 | +| Node.js < 18 | ❌ Not Supported | Below minimum engine requirement | |
| 15 | + |
| 16 | +The minimum Node.js version is specified in `package.json` under `engines.node: ">=18.0.0"`. |
| 17 | + |
| 18 | +### Ubuntu / Linux |
| 19 | + |
| 20 | +| Version | Status | Notes | |
| 21 | +|---------|--------|-------| |
| 22 | +| Ubuntu 24.04 (Noble) | ✅ Fully Supported | `ubuntu-latest` in GitHub Actions | |
| 23 | +| Ubuntu 22.04 (Jammy) | ✅ Fully Supported | LTS, tested in CI | |
| 24 | +| Ubuntu 20.04 (Focal) | ⚠️ May Work | Not actively tested | |
| 25 | +| Other Linux distros | ⚠️ May Work | Docker and iptables required | |
| 26 | + |
| 27 | +**Note:** The agent container is based on Ubuntu 22.04, which ensures consistent behavior regardless of the host OS. |
| 28 | + |
| 29 | +### Docker |
| 30 | + |
| 31 | +| Component | Minimum Version | Notes | |
| 32 | +|-----------|-----------------|-------| |
| 33 | +| Docker Engine | 20.10+ | Required for container networking | |
| 34 | +| Docker Compose | v2.0+ | Used for container orchestration | |
| 35 | + |
| 36 | +### GitHub Actions Runners |
| 37 | + |
| 38 | +The firewall is tested on GitHub Actions runners with the following configurations: |
| 39 | + |
| 40 | +- `ubuntu-latest` (currently Ubuntu 24.04) |
| 41 | +- `ubuntu-22.04` |
| 42 | + |
| 43 | +### Architecture |
| 44 | + |
| 45 | +| Architecture | Status | Notes | |
| 46 | +|--------------|--------|-------| |
| 47 | +| x86_64 (amd64) | ✅ Fully Supported | Primary development platform | |
| 48 | +| arm64 (aarch64) | ⚠️ May Work | Not actively tested | |
| 49 | + |
| 50 | +## CI Test Matrix |
| 51 | + |
| 52 | +The project uses a matrix testing strategy to ensure compatibility across different configurations: |
| 53 | + |
| 54 | +### Pull Requests |
| 55 | + |
| 56 | +For faster feedback on pull requests, tests run on a minimal configuration: |
| 57 | +- **OS:** `ubuntu-latest` |
| 58 | +- **Node.js:** 22 |
| 59 | + |
| 60 | +### Main Branch Pushes |
| 61 | + |
| 62 | +Full matrix testing runs on pushes to the main branch: |
| 63 | +- **OS:** `ubuntu-22.04`, `ubuntu-latest` |
| 64 | +- **Node.js:** 18, 22 |
| 65 | + |
| 66 | +This approach balances comprehensive compatibility testing with CI resource efficiency. |
| 67 | + |
| 68 | +## Verifying Compatibility |
| 69 | + |
| 70 | +To check if your environment meets the requirements: |
| 71 | + |
| 72 | +```bash |
| 73 | +# Check Node.js version |
| 74 | +node --version # Should be v18.0.0 or higher |
| 75 | + |
| 76 | +# Check Docker version |
| 77 | +docker --version # Should be 20.10 or higher |
| 78 | + |
| 79 | +# Check Docker Compose version |
| 80 | +docker compose version # Should be v2.0 or higher |
| 81 | + |
| 82 | +# Check Docker is running |
| 83 | +docker info |
| 84 | +``` |
| 85 | + |
| 86 | +## Troubleshooting |
| 87 | + |
| 88 | +### Node.js Version Too Old |
| 89 | + |
| 90 | +If you see errors about unsupported syntax or modules: |
| 91 | + |
| 92 | +```bash |
| 93 | +# Install Node.js 22 using nvm |
| 94 | +nvm install 22 |
| 95 | +nvm use 22 |
| 96 | + |
| 97 | +# Or using apt (Ubuntu) |
| 98 | +curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - |
| 99 | +sudo apt-get install -y nodejs |
| 100 | +``` |
| 101 | + |
| 102 | +### Docker Not Available |
| 103 | + |
| 104 | +If Docker is not available: |
| 105 | + |
| 106 | +```bash |
| 107 | +# Install Docker on Ubuntu |
| 108 | +curl -fsSL https://get.docker.com | sudo sh |
| 109 | + |
| 110 | +# Add your user to the docker group |
| 111 | +sudo usermod -aG docker $USER |
| 112 | + |
| 113 | +# Start Docker service |
| 114 | +sudo systemctl start docker |
| 115 | +sudo systemctl enable docker |
| 116 | +``` |
| 117 | + |
| 118 | +## Reporting Compatibility Issues |
| 119 | + |
| 120 | +If you encounter compatibility issues with a supported configuration, please: |
| 121 | + |
| 122 | +1. Check the [Troubleshooting Guide](troubleshooting.md) |
| 123 | +2. Search existing [GitHub Issues](https://github.com/githubnext/gh-aw-firewall/issues) |
| 124 | +3. Open a new issue with: |
| 125 | + - Node.js version (`node --version`) |
| 126 | + - Docker version (`docker --version`) |
| 127 | + - Operating system and version (`cat /etc/os-release`) |
| 128 | + - Full error message and logs |
0 commit comments