|
| 1 | +name: Go-Live Gate |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +jobs: |
| 7 | + readiness: |
| 8 | + runs-on: ubuntu-24.04 |
| 9 | + timeout-minutes: 60 |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v4 |
| 12 | + |
| 13 | + - name: Install dependencies |
| 14 | + run: | |
| 15 | + sudo apt-get update |
| 16 | + sudo apt-get install -y clang llvm libbpf-dev libsystemd-dev pkg-config cmake ninja-build rpm python3-jsonschema linux-tools-common linux-tools-$(uname -r) || sudo apt-get install -y clang llvm libbpf-dev libsystemd-dev pkg-config cmake ninja-build rpm python3-jsonschema linux-tools-common |
| 17 | +
|
| 18 | + - name: Run release-readiness gate |
| 19 | + run: | |
| 20 | + mkdir -p artifacts/go-live/readiness |
| 21 | + set -o pipefail |
| 22 | + scripts/release_readiness.sh | tee artifacts/go-live/readiness/release_readiness.log |
| 23 | +
|
| 24 | + - name: Run key-rotation drill |
| 25 | + run: | |
| 26 | + mkdir -p artifacts/go-live/readiness |
| 27 | + set -o pipefail |
| 28 | + BUILD_DIR=build-key-drill scripts/key_rotation_drill.sh | tee artifacts/go-live/readiness/key_rotation_drill.log |
| 29 | +
|
| 30 | + - name: Upload readiness artifacts |
| 31 | + if: always() |
| 32 | + uses: actions/upload-artifact@v4 |
| 33 | + with: |
| 34 | + name: go-live-readiness |
| 35 | + path: artifacts/go-live/readiness/ |
| 36 | + if-no-files-found: warn |
| 37 | + |
| 38 | + runtime-canary: |
| 39 | + runs-on: [self-hosted, bpf-lsm] |
| 40 | + timeout-minutes: 120 |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v4 |
| 43 | + |
| 44 | + - name: Install dependencies (if apt-get is available) |
| 45 | + run: | |
| 46 | + if command -v apt-get >/dev/null 2>&1; then |
| 47 | + sudo apt-get update |
| 48 | + sudo apt-get install -y clang llvm bpftool libbpf-dev libsystemd-dev pkg-config cmake ninja-build python3-jsonschema |
| 49 | + fi |
| 50 | +
|
| 51 | + - name: Verify environment |
| 52 | + run: scripts/verify_env.sh --strict |
| 53 | + |
| 54 | + - name: Require BPF LSM |
| 55 | + run: grep -qw bpf /sys/kernel/security/lsm |
| 56 | + |
| 57 | + - name: Configure |
| 58 | + run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON |
| 59 | + |
| 60 | + - name: Build |
| 61 | + run: cmake --build build |
| 62 | + |
| 63 | + - name: Unit tests |
| 64 | + run: ctest --test-dir build --output-on-failure --timeout 180 |
| 65 | + |
| 66 | + - name: Canary gate (audit) |
| 67 | + run: sudo AEGIS_BIN=./build/aegisbpf PHASE=audit DURATION_SECONDS=180 MAX_RINGBUF_DROPS=100 MAX_RSS_GROWTH_KB=65536 scripts/canary_gate.sh |
| 68 | + |
| 69 | + - name: Canary gate (enforce) |
| 70 | + run: sudo AEGIS_BIN=./build/aegisbpf PHASE=enforce ENFORCE_SIGNAL=term DURATION_SECONDS=180 MAX_RINGBUF_DROPS=100 MAX_RSS_GROWTH_KB=65536 scripts/canary_gate.sh |
| 71 | + |
| 72 | + - name: Incident evidence bundle |
| 73 | + run: | |
| 74 | + mkdir -p artifacts/go-live |
| 75 | + sudo AEGIS_BIN=./build/aegisbpf scripts/collect_incident_bundle.sh artifacts/go-live/incident-gate |
| 76 | +
|
| 77 | + - name: Upload runtime artifacts |
| 78 | + if: always() |
| 79 | + uses: actions/upload-artifact@v4 |
| 80 | + with: |
| 81 | + name: go-live-runtime |
| 82 | + path: | |
| 83 | + artifacts/canary/ |
| 84 | + artifacts/go-live/incident-gate.tar.gz |
| 85 | + if-no-files-found: warn |
| 86 | + |
| 87 | + perf-certification: |
| 88 | + runs-on: [self-hosted, perf] |
| 89 | + timeout-minutes: 60 |
| 90 | + steps: |
| 91 | + - uses: actions/checkout@v4 |
| 92 | + |
| 93 | + - name: Install dependencies (if apt-get is available) |
| 94 | + run: | |
| 95 | + if command -v apt-get >/dev/null 2>&1; then |
| 96 | + sudo apt-get update |
| 97 | + sudo apt-get install -y clang llvm bpftool libbpf-dev libsystemd-dev pkg-config cmake ninja-build python3-jsonschema |
| 98 | + fi |
| 99 | +
|
| 100 | + - name: Verify environment |
| 101 | + run: scripts/verify_env.sh --strict |
| 102 | + |
| 103 | + - name: Configure |
| 104 | + run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF |
| 105 | + |
| 106 | + - name: Build |
| 107 | + run: cmake --build build |
| 108 | + |
| 109 | + - name: Perf microbench gate |
| 110 | + run: | |
| 111 | + mkdir -p artifacts/go-live/perf |
| 112 | + set -o pipefail |
| 113 | + sudo MAX_PCT=10 ITERATIONS=200000 FILE=/etc/hosts scripts/perf_compare.sh | tee artifacts/go-live/perf/perf_compare.log |
| 114 | +
|
| 115 | + - name: Perf workload suite gate |
| 116 | + run: | |
| 117 | + mkdir -p artifacts/go-live/perf |
| 118 | + set -o pipefail |
| 119 | + sudo BIN=./build/aegisbpf \ |
| 120 | + FILE=/etc/hosts \ |
| 121 | + OPEN_ITERATIONS=200000 \ |
| 122 | + READ_ITERATIONS=50000 \ |
| 123 | + STAT_SAMPLE=400 \ |
| 124 | + STAT_ITERATIONS=50 \ |
| 125 | + MAX_OPEN_PCT=10 \ |
| 126 | + MAX_READ_PCT=15 \ |
| 127 | + MAX_STAT_PCT=15 \ |
| 128 | + FORMAT=json \ |
| 129 | + OUT=artifacts/go-live/perf/perf_workload.json \ |
| 130 | + scripts/perf_workload_suite.sh | tee artifacts/go-live/perf/perf_workload.log |
| 131 | +
|
| 132 | + - name: Upload perf artifacts |
| 133 | + if: always() |
| 134 | + uses: actions/upload-artifact@v4 |
| 135 | + with: |
| 136 | + name: go-live-perf |
| 137 | + path: artifacts/go-live/perf/ |
| 138 | + if-no-files-found: warn |
| 139 | + |
| 140 | + release-drill: |
| 141 | + runs-on: [self-hosted, bpf-lsm] |
| 142 | + timeout-minutes: 60 |
| 143 | + steps: |
| 144 | + - uses: actions/checkout@v4 |
| 145 | + |
| 146 | + - name: Install dependencies (if apt-get is available) |
| 147 | + run: | |
| 148 | + if command -v apt-get >/dev/null 2>&1; then |
| 149 | + sudo apt-get update |
| 150 | + sudo apt-get install -y clang llvm bpftool libbpf-dev libsystemd-dev pkg-config cmake ninja-build rpm python3-jsonschema linux-tools-common linux-tools-$(uname -r) || sudo apt-get install -y clang llvm bpftool libbpf-dev libsystemd-dev pkg-config cmake ninja-build rpm python3-jsonschema linux-tools-common |
| 151 | + fi |
| 152 | +
|
| 153 | + - name: Verify environment |
| 154 | + run: scripts/verify_env.sh --strict |
| 155 | + |
| 156 | + - name: Require BPF LSM |
| 157 | + run: grep -qw bpf /sys/kernel/security/lsm |
| 158 | + |
| 159 | + - name: Run full release drill |
| 160 | + run: BUILD_DIR=build-release-drill SKIP_BPF_BUILD=OFF ARTIFACT_DIR=artifacts/go-live/release-drill scripts/release_drill.sh |
| 161 | + |
| 162 | + - name: Upload release-drill artifacts |
| 163 | + if: always() |
| 164 | + uses: actions/upload-artifact@v4 |
| 165 | + with: |
| 166 | + name: go-live-release-drill |
| 167 | + path: artifacts/go-live/release-drill/ |
| 168 | + if-no-files-found: warn |
| 169 | + |
| 170 | + aggregate-evidence: |
| 171 | + if: always() |
| 172 | + needs: [readiness, runtime-canary, perf-certification, release-drill] |
| 173 | + runs-on: ubuntu-24.04 |
| 174 | + steps: |
| 175 | + - uses: actions/download-artifact@v4 |
| 176 | + with: |
| 177 | + path: go-live-evidence |
| 178 | + |
| 179 | + - name: Bundle go-live evidence |
| 180 | + run: | |
| 181 | + mkdir -p bundle |
| 182 | + find go-live-evidence -type f | sort > bundle/evidence_manifest.txt || true |
| 183 | + cp -r go-live-evidence bundle/evidence |
| 184 | + tar -czf go-live-evidence-${GITHUB_RUN_ID}.tar.gz -C bundle . |
| 185 | +
|
| 186 | + - name: Upload aggregated evidence bundle |
| 187 | + uses: actions/upload-artifact@v4 |
| 188 | + with: |
| 189 | + name: go-live-evidence-bundle |
| 190 | + path: | |
| 191 | + go-live-evidence-*.tar.gz |
| 192 | + bundle/evidence_manifest.txt |
0 commit comments