Add "Try our aegis sample" empty-state to the web UI - #13
Merged
Conversation
When a visitor has no .bpf.o, the empty state offers a one-click "Try our aegis sample" that loads the bundled aegis security probe into the validate form, selects a kernel spread that crosses its 5.16 bloom-filter-map boundary (ubuntu 20.04/5.4 + 22.04/5.15 fail; debian 12/6.1 + ubuntu 24.04/6.8 pass, required), and runs a real validation. - internal/api/sample.go: public GET /sample/aegis/artifact serves the bundled object (path from BPFCOMPAT_SAMPLE_ARTIFACT, default examples/aegis-live). - internal/api/ui.go: empty-state button + clear-then-select-4 wiring; also fix the result panel grid so it sizes to content instead of stretching a 1fr row into a large blank gap during a run. - matrices/aegis-sample.yaml: the boundary matrix for CLI runs of the sample. The aegis object itself stays out of git (examples/aegis-live is ignored); it is deployed to the demo host out of band. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a visitor has no
.bpf.o, the empty state offers a one-click Try our aegis sample that loads the bundled aegis probe into the validate form, selects a kernel spread crossing its 5.16 bloom-filter-map boundary (5.4 + 5.15 fail; 6.1 + 6.8 pass/required), and runs a real validation.internal/api/sample.go: publicGET /sample/aegis/artifactserves the bundled object (BPFCOMPAT_SAMPLE_ARTIFACT, defaultexamples/aegis-live).internal/api/ui.go: empty-state button + clear-then-select-4 wiring; also fixes the result panel grid (sized to content instead of a stretching1frblank gap during a run).matrices/aegis-sample.yaml: boundary matrix for CLI runs.aegis object stays out of git (
examples/aegis-liveis ignored); deployed to the demo host out of band. Verified locally end to end.🤖 Generated with Claude Code