Install and verify
The walkthrough uses the AuthCrunch v1.3.0 bundle from the caddy-security
release. Its executable, authcrunch, is Caddy with the security module included.
A standard Caddy installation does not include this module.
What you need
- macOS or Linux, or a Linux environment such as WSL.
- A terminal with a POSIX-compatible shell,
tar,curl, andopenssl. - A browser and an available local port 9080.
- A new directory for the demo's configuration and local data.
The commands below use a foreground process and HTTP on the loopback interface. They do not require root, a service installation, a domain, or certificate trust.
Get the bundle
- Open the v1.3.0 release.
- Download the
.tar.gzarchive for your operating system and architecture, together with the release checksum file. For example, Apple silicon usesauthcrunch_1.3.0_darwin_arm64.tar.gz; Linux on x86-64 usesauthcrunch_1.3.0_linux_amd64.tar.gz. - Compare the archive's SHA-256 digest with the checksum file. Use
shasum -a 256on macOS orsha256sumon Linux, followed by the archive path. - Create a directory named
authcrunch-demoand extract the archive into it. The archive containsbin/authcrunch,LICENSE, andREADME.md.
For example, after changing the archive path to your downloaded file:
mkdir authcrunch-demo
cd authcrunch-demo
tar -xzf /path/to/authcrunch_1.3.0_darwin_arm64.tar.gz
Run all subsequent commands from this authcrunch-demo directory.
Check the executable
./bin/authcrunch version
./bin/authcrunch security version
./bin/authcrunch list-modules
The first command reports the Caddy version. The second must report go-authcrunch v1.3.8 for this bundle. The module list must include:
security
http.handlers.authentication
http.handlers.authorization
If security is an unknown command or these modules are missing, you are running
a different Caddy build. Check the executable path before editing configuration.
You can use a build containing github.com/greenpau/caddy-security. Run the same
checks against that executable and substitute its path for ./bin/authcrunch
throughout the walkthrough. The Caddy download builder
provides custom builds; its selected module versions may differ from this pinned
release. Record both the Caddy and AuthCrunch versions when diagnosing a problem.
Continue to Protect your first app.