feat!: universal redesign — drop Minecraft stack, single-crate architecture

- remove Java plugins (velocity/paper), dashboard, all MC-specific code
  (handshake, death_code, varint, hostname-HMAC); available in history pre-v0.2
- merge crates/* into one package with src/bin/{rampart,rampart-manager,rampart-cli}
- ProtocolHandler trait + registry (no implementations yet), universal PoW kept
- XDP: universal L3/L4 filter (xdp/core/) + pluggable hook API (xdp/hooks/),
  fix IPv6 saddr bug; clang build verified
- docs: bilingual knowledge base (docs/kb/: attacks x4, defense-levels,
  practice x3), rewrite README/architecture for universal concept
- TODO.md v4.0: <=300-line module limit, competitor benchmark section (ref/)
- deploy/CI/docs cleanup: no MC references, new binary names

cargo build/clippy(-D warnings)/test green (55 tests)
This commit is contained in:
loki5512344 2026-08-24 01:50:22 +02:00
parent 0b53ed720b
commit 15f474486a
Signed by: boba
GPG key ID: 253067914055423B
179 changed files with 5044 additions and 11519 deletions

View file

@ -25,8 +25,13 @@ jobs:
- run: cargo fmt --all --check
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo check --all-features
- run: cargo build --features xdp --bin rampart-core
- run: test -f target/debug/rampart-core
- name: XDP — build binaries
run: cargo build --features xdp --bins
- name: XDP — smoke-check BPF compilation (clang)
run: |
mkdir -p target/xdp
clang -O2 -g -target bpf -c xdp/core/universal_filter.c -o target/xdp/universal_filter.o
test -f target/xdp/universal_filter.o
rust-test:
name: Rust — test
@ -46,54 +51,13 @@ jobs:
with:
command: check
java-build:
name: Java — build plugins
runs-on: ubuntu-latest
defaults:
run:
working-directory: plugins
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
cache: "gradle"
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: rampart-java-plugins
path: |
plugins/velocity/build/libs/*.jar
plugins/paper/build/libs/*.jar
dashboard-build:
name: Dashboard — build
runs-on: ubuntu-latest
defaults:
run:
working-directory: dashboard
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: dashboard/package-lock.json
- run: npm ci
- run: npm run build
docker:
name: Docker — build images
name: Docker — build edge image
runs-on: ubuntu-latest
needs: [rust-test, java-build]
needs: [rust-test]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: actions/download-artifact@v4
with:
name: rampart-java-plugins
path: plugins/
- name: Build edge
uses: docker/build-push-action@v6
with:
@ -101,19 +65,3 @@ jobs:
file: deploy/docker/Dockerfile.edge
load: true
tags: rampart/edge:ci
- name: Build velocity
uses: docker/build-push-action@v6
with:
context: .
file: deploy/docker/Dockerfile.velocity
load: true
tags: rampart/velocity:ci
- name: Download Paper jar
run: bash deploy/docker/download-paper.sh
- name: Build paper
uses: docker/build-push-action@v6
with:
context: .
file: deploy/docker/Dockerfile.paper
load: true
tags: rampart/paper:ci