Repository navigation
fix: close the #5 review findings still open on main; correct the drift-gate record #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
54b63a2
docs(onboarding): describe only the paths this library actually wires
claude 925681d
fix(abi): empty the text buffer before any argument is checked
claude 1c3df7e
fix(abi): refuse a linked library of another ABI version before calli…
claude 046c710
fix(wire): write an empty NSEC3 salt as "-" in presentation format
claude 7088945
docs: record the #5 follow-ups; the variant-drift gate runs and passes
claude 3d6bbed
docs(onboarding): document dnssec-stub and the Idris2 prerequisite
claude f4b5525
fix(wire): stream NSEC/NSEC3 type bitmaps instead of truncating them
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,125 +1,68 @@ | ||
| // SPDX-License-Identifier: CC-BY-SA-4.0 | ||
| // Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> | ||
| // Template: QUICKSTART-USER.adoc — 5-minute path to working software | ||
| // Replace zig-dnssec, Rsr Template Repo — See README.adoc for details., just run, Rsr Template Repo started successfully. with actuals | ||
| = zig-dnssec — Quick Start for Users | ||
| :toc: | ||
| :toclevels: 2 | ||
|
|
||
| == What is zig-dnssec? | ||
|
|
||
| Rsr Template Repo — See README.adoc for details. | ||
| Experimental pure-Zig DNS wire-format codec and DNSSEC validator with a | ||
| DNS-over-HTTPS stub client: it authenticates answers from an untrusted upstream | ||
| resolver to a configured trust anchor. | ||
|
|
||
| == Prerequisites | ||
|
|
||
| Before you begin, ensure you have: | ||
|
|
||
| * **just** — task runner (https://github.com/casey/just[install guide]) | ||
| * Platform-specific requirements listed below | ||
|
|
||
| [cols="1,3"] | ||
| |=== | ||
| | Platform | Additional Requirements | ||
|
|
||
| | Linux | ||
| | See README.adoc | ||
| It is a library with one command-line tool, `dnssec-stub`, which asks a | ||
| DNS-over-HTTPS resolver and validates the answer. There is no installer and no | ||
| configuration file, and `just install` is not wired. It is experimental and not | ||
| independently reviewed; read the warning in the link:../../README.adoc[README] | ||
| before relying on it. | ||
|
|
||
| | macOS | ||
| | See README.adoc | ||
|
|
||
| | Windows | ||
| | See README.adoc | ||
| |=== | ||
| == Prerequisites | ||
|
|
||
| == Install | ||
| * Zig 0.17.0: enough for `zig build`, `zig build test` and the CLI | ||
| * Idris2 0.7.0 as well, for `just build` and `just test`, which also check the | ||
| Idris2 model of the C ABI | ||
| * *just*, the task runner (https://github.com/casey/just[install guide]) | ||
|
|
||
| === Option 1: Standard Install (recommended) | ||
| == Build and test | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| # Clone and set up | ||
| git clone https://github.com/hyperpolymath/zig-dnssec.git | ||
| cd zig-dnssec | ||
| just setup | ||
| ---- | ||
|
|
||
| The setup script will: | ||
|
|
||
| * Detect your platform and shell | ||
| * Install missing dependencies (with your permission) | ||
| * Configure the application | ||
| * Offer install location choices | ||
| * Run a self-diagnostic to verify everything works | ||
|
|
||
| === Option 2: Container (via Stapeln) | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just stapeln-run | ||
| ---- | ||
|
|
||
| === Option 3: Portable (no system changes) | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just install --portable --prefix=./zig-dnssec-portable | ||
| ---- | ||
|
|
||
| == First Run | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just run | ||
| ---- | ||
|
|
||
| Expected output: | ||
|
|
||
| [source] | ||
| ---- | ||
| Rsr Template Repo started successfully. | ||
| zig build # dnssec-stub, into zig-out/bin/ | ||
| zig build ffi # libzig_dnssec and zig_dnssec.h, into zig-out/lib and include | ||
| zig build test # Zig only | ||
| just test # Zig and the Idris2 model | ||
| ---- | ||
|
|
||
| == Self-Diagnostic | ||
| To use the library from your own Zig project, follow "Using it" in the | ||
| link:../../README.adoc[README]. | ||
|
|
||
| If something isn't working: | ||
| == Run dnssec-stub | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just doctor | ||
| ./zig-out/bin/dnssec-stub --doh https://cloudflare-dns.com/dns-query example.com. A | ||
| zig build run -- --doh https://cloudflare-dns.com/dns-query example.com. A # build and run | ||
| ---- | ||
|
|
||
| This checks all dependencies, permissions, paths, and connectivity. | ||
| If it finds issues, it will suggest fixes. | ||
| It prints `verdict=<v> reason=<r> at=<name> rcode=<rc>`, then the answer records | ||
| for a secure or insecure verdict. The exit status is the verdict: 0 secure, | ||
| 1 insecure, 2 bogus, 3 indeterminate, 4 usage or transport error. Run it with no | ||
| arguments for the full option list. | ||
|
|
||
| To attempt automatic repair: | ||
| == Container | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just heal | ||
| just container-build | ||
| ---- | ||
|
|
||
| == Get Help | ||
|
|
||
| * **In-app**: `just run --help` | ||
| * **Guided tour**: `just tour` | ||
| * **Report a problem**: `just help-me` (pre-fills diagnostic context) | ||
| * **Wiki**: https://github.com/hyperpolymath/zig-dnssec/wiki | ||
|
|
||
| == Uninstall | ||
|
|
||
| [source,bash] | ||
| ---- | ||
| just uninstall | ||
| ---- | ||
|
|
||
| You will be asked: | ||
|
|
||
| 1. Which uninstall tier (Bennett reversible, parameter-based, standard, or secure) | ||
| 2. Whether to include or exclude your data | ||
| 3. Whether to clear caches and LLM models | ||
| This builds `ghcr.io/hyperpolymath/zig-dnssec:latest` from | ||
| `build/container/Containerfile`. | ||
|
|
||
| == Next Steps | ||
| == Get help | ||
|
|
||
| * Read the link:README.adoc[README] for full feature overview | ||
| * Read the link:EXPLAINME.adoc[EXPLAINME] for architecture and design decisions | ||
| * Try `just tour` for a guided walkthrough | ||
| * Report a problem: https://github.com/hyperpolymath/zig-dnssec/issues | ||
| * Security issues: see link:../../.github/SECURITY.md[the security policy] |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.