Skip to content

Releases

Schild Gateway 0.1.0-alpha.7

Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:10
Immutable release. Only release title and notes can be modified.
v0.1.0-alpha.7
63cff98

Certificates

  • Certificates by DNS challenge at Hetzner, wildcards included: the Caddy module dns.providers.hetzner is compiled in and does nothing without its line in the Caddyfile (MVP-37). schild ingress validate refuses an empty or unreadable API token; schild run logs it and goes on serving the certificates it holds. Tested against a stand-in of the Hetzner API and a test CA, not yet against Hetzner.

Dashboard

  • The dashboard of a gateway that runs alone shows no "Einzelner Server" in the top bar any more. The top bar names a cluster only, and "Kein Cluster" when one is switched on in schild.yaml and the server belongs to none.

Cluster of gateways

  • Breaking: blocks in a cluster are not compatible with 0.1.0-alpha.6. Blocks and their releases have a new format (D109), and there is no migration. Update all servers of a cluster together. Blocks and releases the cluster shared before are not carried over. A single gateway is not affected. schild.db goes to schema version 2 at the first start, with a backup.
  • A block is now one entry under its incident number, and a release is an entry of its own. Two blocks of one address no longer share one entry, so a release cannot end the wrong block or be lost because another block came. A release always wins, also against a server whose clock is ahead.
  • "Freigeben" in the dashboard ends every block of that address in the cluster. Before, a second block that another server set in the same moment stayed. The agent API ends the one block whose incident it names, also on a server that does not run that block itself.
  • Fixed: a server whose table of blocks was full dropped a block, and the cluster took that for a release. The block ended on every server.
  • Fixed: "Freigeben" on a server that does not run the block itself (mode "Beobachten", an address in its own list) did not end it on the other servers.
  • Fixed: a release was lost when the server could not write to cluster.db at that moment. It is now noted in schild.db with the release and written until it succeeds, also after a restart.
  • Fixed: a server that was away while an address was erased could bring the block of that address back.
  • After a release or an erasure, the entry of the block, with the address, leaves cluster.db on every server. The entry of the release holds no address.
  • A server keeps an entry of a kind it does not know yet and reads it after its update. Later versions can add kinds of entries without a break like this one.
  • Fixed: when a cluster was set up, two nodes could each write some of the first keys of the browser check, and the cluster ran with a mix of two sets. Now a node waits until it has all keys of the first set, or until the wait is over.
  • Fixed: a setting changed on a node while that node stored a change from another node could stay on that node only. The repair then replaced it with the value of the cluster. The change now goes to the cluster.
  • Fixed: "Freigeben" on a gateway could answer 404 when it came in the moment a block of another gateway started there. The incident is now stored before the block starts.
  • Fixed: after more than 2,000 incidents of other nodes, a node stopped handing over its own.
  • Fixed: the setup code of a first start stayed valid on a node after it took the logins of the cluster.
  • Fixed: counts were added twice when a handover at the start broke off and was tried again. A handover that failed at the start is now tried again every 30 s, so the hint cluster_counts_not_taken ends without a restart.
  • Fixed: a value that a node gave up for the one of the cluster was often not kept in cluster.db (table replaced), contrary to the documentation.
  • The privacy page said "IP-Adressen verlassen den Server nicht" in a cluster too. It now says that they go to the other servers of the cluster.

Monitoring

  • In a container, a volume on the disk of the container's root is no longer counted as a second disk. The hints about a full disk came twice, once for / and once for the volume (for example /data/caddy). The disk is now shown once, as /, with its disk I/O. A volume on a disk of its own stays, and a list in monitoring.mounts is shown as written.

Upgrade

  • From 0.1.0-alpha.6: change the image tag, run sudo apt update && sudo apt install schild and sudo systemctl restart schild, or replace the binary and restart. schild.yaml needs no change. schild.db goes to schema version 2 at the first start; schild keeps a copy of the file from before next to it.
  • A single gateway keeps its running blocks and needs nothing else.
  • A cluster: update all servers together, not one after the other over days. Blocks and releases the cluster shared under 0.1.0-alpha.6 are not carried over, and a server that still runs 0.1.0-alpha.6 takes no block and no release from an updated one. There is no way back to 0.1.0-alpha.6 with the same schild.db: the older version does not start with the newer database.
  • The new form of blocks in a cluster is covered by tests and reviews. It has not been measured on several real servers yet.

Downloads

  • Image: ghcr.io/deutschland-schild/schild:0.1.0-alpha.7 (linux/amd64, linux/arm64), digest sha256:477d180354137de0ea3368a3f1a178e015e038c2223ddeccaf4cbcd413cc51bd
  • Binaries: schild_0.1.0-alpha.7_linux_amd64.tar.gz, schild_0.1.0-alpha.7_linux_arm64.tar.gz, sha256 in checksums.txt
  • Debian and Ubuntu packages: schild_0.1.0-alpha.7_linux_amd64.deb, schild_0.1.0-alpha.7_linux_arm64.deb, sha256 in checksums.txt
  • Signatures: checksums.txt.sigstore.json (cosign, keyless), build provenance as a file: provenance.intoto.jsonl

Verify:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.7 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt
gh attestation verify schild_0.1.0-alpha.7_linux_amd64.tar.gz --repo deutschland-schild/schild
gh attestation verify oci://ghcr.io/deutschland-schild/schild:0.1.0-alpha.7 --repo deutschland-schild/schild
cosign verify ghcr.io/deutschland-schild/schild:0.1.0-alpha.7 \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.7 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Schild Gateway 0.1.0-alpha.6

Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 14:04
Immutable release. Only release title and notes can be modified.
v0.1.0-alpha.6
ba9443c

Security

  • An operator's Caddyfile may no longer use acme_server: schild refuses it at start and in schild ingress validate, wherever it stands. A gateway obtains certificates and issues none, and Caddy's ACME server is the only path to a library with known flaws and no fixed release (go-jose v3: GHSA-mgcc-cww5-fp2q, GHSA-4w3g-jfj2-cw2q, GHSA-vvm8-gf78-28g4). tls internal stays available.

Cluster of gateways

Two to sixteen gateways of one operator can form a cluster (in the code and the contract: a group) that shares its state from node to node, with no database, cache or queue beside it (D105, MVP-27). It is off by default and set up from schild.yaml alone: cluster.enabled, cluster.listen, cluster.secret_file and cluster.peers, the same on every node. How to run it is described in German under docs/gateway/03-cluster.md, the wire in contracts/cluster.md.

Measured by agents that did not build it: three gateways on one machine (report, last run 92 of 92 judged checks), faults, crashes, load, sixteen gateways, clocks and an upgrade in turn on one machine (report), and sixteen gateways on Linux VMs behind HAProxy with an ACME test server (first, second, third and a partial fourth run). A fourth hardening run on the tree of this release measured the changed start, readiness, clock rule, removal, hello and drain: no kill clause hit, every new check passes, the failures left are the known limits below. Not measured: real servers with real visitors.

What is shared

  • Address blocks: a block set on one node, by a scenario, by hand or by an agent, acts on every node within about a second, and a release ends it on every node, also when it is clicked on a node before the block's record came there. A flood of blocks leaves a node in rounds of 200 a second.
  • Everything set at runtime in the dashboard or by an agent: switches of the sources, thresholds, CRS levels, rate limits, crawler control, access lock, browser check, rule exceptions and disabled rules, the allowlist and released senders. Every key of the gateway's store travels, whatever feature wrote it, so a setting of a future feature holds on every node without knowing the cluster. Lists and settings are shared entry by entry: two nodes that change different entries both keep their change, also across a cut; for the same entry the later change wins.
  • Users, sessions and agent tokens, so one login serves every node, and a visitor who passed the browser check or the access lock on one node passes on the next. A TLS session resumes on every node.
  • Certificates, with a Caddyfile: one certificate per name while the nodes reach each other, and the HTTP challenge works whichever node the balancer picks. A certificate always travels with the key that fits it. Certificates a gateway had before it entered a cluster go with it.
  • Counts: rate limits, scenarios and the detectors of distributed attacks count for the cluster. Every node tells the others once a second what it counted, so a client that spreads its requests over the nodes gets a limit once. A wave is one wave on every node, its response acts on every node, and ending it in one dashboard ends it on all.
  • Events, incidents and single requests: every node keeps those of every node, always. Each dashboard shows the cluster in its lists, searches, request charts and the live view, also what a node recorded that is gone. A node that was away catches up on everything the others still keep, single requests included, also when one of them restarted meanwhile. Each node therefore stores what the whole cluster records.
  • One set of CrowdSec Hub rules: the node that downloaded a new index hands it to the others, which take it through the same checks as a download of their own, so new rules settle to block on every node together. A reset of the hub rules on one node holds for the cluster.
  • An address erased on one node (Art. 17) is erased on every node, also on one that returns later, and is never handed on.
  • The gateways tell each other a keyed hash of what is in force (blocks, settings, access, logins), each with the point of the state it was computed at, and compare hashes only at the same point. So a change on its way is never a difference, also not under a steady stream of changes (many blocks during an attack). The cluster page shows per gateway whether its state is the same, the dashboard names a difference that lasts 30 s, and the node repairs it by itself.
  • Two nodes that change the same entry at the same moment end with the same value, the one of the record that won, at once: a node puts in the record that is the state of an entry, not the one it noted first.
  • The first keys of the browser check of a new cluster are handed over by one node, the one that keeps the cluster's tasks; the others take them.
  • Not shared: schild.yaml, rules.d and the Caddyfile stay files of the deployment (a hint names nodes whose schild.yaml or rules.d differ). Per node stay the server check and its accepted findings, the log of agent calls and "last used" of a token, the bound on failed dashboard logins, the values of this moment on the load page, the live view per second and the counters under "Schutzstatus".

Setting up and names

  • By configuration only: the same cluster.secret_file (schild cluster secret prints one) and cluster.peers on every node; a node lets itself in at its start. A gateway that joins adds what it holds; where both hold the same entry the cluster's value stands and the node keeps its own aside.
  • A node is named by node_name; with cluster.name_from_host by its host name, so one schild.yaml can lie on every node; cluster.name sets a fixed one.
  • The secret file may be read by the group of the service (0640 or 0440), never by others. cluster.listen takes a private address, also one of 100.64.0.0/10 (Tailscale, NetBird), or every address (0.0.0.0, [::]) with a private cluster.advertise.
  • schild cluster status shows the members, schild cluster remove ends the membership of one and says so when it did not.
  • With cluster.enabled, schild does not start when its cluster cannot be set up (secret file missing, too short or readable by others, mesh port in use, a broken node key); cluster.enabled needs cluster.secret_file. It never runs alone by mistake behind a balancer.
  • With cluster.enabled, a proxy_protocol wrapper in the Caddyfile needs an allow list: otherwise anyone who reaches a node could name any address as theirs.
  • In front of the gateways stands a load balancer that passes TCP on: HAProxy in TCP mode or a cloud load balancer without TLS termination. TLS ends on the gateways, and they refuse blocked clients themselves.
  • The guide has HAProxy examples and says what a site with TLS on the gateways needs on ports 80 and 443.

Readiness, stopping and failures

  • /.schild/readyz on the web ports answers 503 until a node took the state of the cluster and applied it, took the running counts of limits, scenarios and detectors from a member, and while it stops. A node counts as in step only by a member that is in step itself, so two fresh nodes do not make each other ready with nothing; a cluster that is new as a whole is ready once every node of cluster.peers started. A node that never was in step stays out of traffic; a node that was in step once and reaches nobody serves after ten seconds with what it has. A node away longer than 30 days takes the cluster's state like a new one and hands on nothing it held alone, so nothing deleted comes back. A node that is not ready listens and answers 503, and its log says why.
  • systemctl stop and schild cluster drain leave traffic first (the systemd unit and the compose files wait 90 s for it) (cluster.drain.delay_s, default 15 s) and give running requests cluster.drain.grace_s (default 30 s) to finish. During the delay every answer asks the client to close its connection, so a connection kept open through a balancer loses no request at the stop.
  • No request waits for another node. A node that hangs is known as unreachable after about 3 s (HTTP/2 pings), a node that is gone at once.

Clocks

  • The later change wins in a cluster, so clocks have to agree. The dashboard shows how far the clock of every gateway is off, schild cluster status names a member from 5 s on, the dashboard from 10 s on, and a node says in its log when it puts a record off because of a clock.
  • A node whose clock is a minute or more off from a majority of gateways that agree on the time leaves traffic by itself until its clock is right. A pair keeps serving, because nobody can know there whose clock is wrong.

The cluster page and numbers across servers

  • "Einzelner Server" or "Cluster · 3 Server" stands in the top bar of every page. The page "Cluster" shows the totals, a map with the internet above and every gateway below it, and every gateway with whether it takes requests, its requests per second, share of stopped requests and response time of the last minute, CPU, memory and disk, its start, last contact, version, clock, state and configuration; from seven gateways on as a table. A gateway on the map opens its details. A gateway that is not reached shows no numbers.
  • Counters and charts show all gateways added up; a filter "Zahlen von" shows one alone, also one that is down. A gateway whose numbers are missing is named with the time they end. Visitors over several gateways are a lower bound ("mindestens"). The dashboard and agent API take node on the monitoring and website number operations and answer with cluster.
  • The dashboard names a gateway that is not reached, a configuration or a state that differs and...
Read more

Schild Gateway 0.1.0-alpha.5

Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:54
Immutable release. Only release title and notes can be modified.
v0.1.0-alpha.5
06a2711

Rules

  • Strictness (paranoia level) and blocking threshold of the OWASP CRS are set in the dashboard (D101): "Strenge und Schwelle anpassen" on the page of the CRS. A change holds at once, without a restart, and wins over schild.yaml; "Werte aus schild.yaml einsetzen" gives both back to the file. A threshold above 5 points is named on the page, because a request with a single critical hit then passes.

Agent API

  • The agent API is on by default (D103). Without a token it answers every call with 401, and tokens are still created on the server only (schild token add). After the update an existing gateway listens on 127.0.0.1:8789; agent_api: {enabled: false} in schild.yaml keeps it off, and the dashboard cannot switch it on against that. If the port is taken, only this listener does not start, requests are not affected.
  • The dashboard has a card "Agent-API" under Einstellungen: a switch that opens and closes the listener without a restart, the address, and the tokens with scope, expiry and last use. A value set there holds until "Wert aus schild.yaml einsetzen".
  • schild token add needs no flags: without them the token reads only and holds 90 days. --expires takes 1d to 365d as before.
  • Docker: the agent API can be reached from the host. agent_api.listen also takes 0.0.0.0:8789, and the quickstart files publish the port on 127.0.0.1 of the host. Outside a container schild does not open a listener on every interface. An existing installation adds agent_api: {listen: "0.0.0.0:8789"} to schild.yaml and "127.0.0.1:8789:8789" to the ports in compose.yaml.
  • The docs describe the setup step by step under "Agent-API einrichten", and the features page says what an agent does with it.

Server check

  • schild check install sets the server check up with one command (D100): as root on the host it writes the systemd units from the binary, enables the daily run and "Jetzt prüfen" and runs the first check. For a gateway in Docker: docker cp <container>:/usr/local/bin/schild /tmp/schild && sudo /tmp/schild check install. schild check uninstall removes the units. The docs describe it under "Server-Check einrichten".
  • "Jetzt prüfen" no longer gets stuck when schild.yaml does not load: the check removes the request before it reads the config.
  • A server without any firewall rule and without iptables is reported as "Keine Firewall auf dem Server aktiv" instead of "nicht lesbar".
  • The dashboard names the install command where the server check is not set up yet, and the overview shows the Server card only once a report exists.
  • Findings can be marked as accepted in the dashboard, with a note (D102): for example an open port that a firewall in front of the server closes. An accepted finding no longer counts as open, stays listed and can be opened again; it is open by itself when the check reports it with a higher severity.
  • schild init and the quickstart files turn the Server section on (host_check: {}); the compose templates carry the mounts of the server check as comments.
  • A report written in the same second as the one before is no longer skipped by the gateway.
  • Findings about open ports say what the check can know: a service listens on a public interface and "könnte von außen erreichbar sein". Whether a firewall on the server or at the hoster closes the port, the check cannot see from inside; the text says so and points to accepting the finding. "Keine Firewall auf dem Server aktiv" names the firewall of the hoster the same way.
  • The results of the server check are one list in the dashboard: one line per check with level, title, area and the main fact, the detail opens on click. The list can be searched (title, explanation, port, package, path) and filtered by state (open, not readable, accepted, in order) and area. The installed software has its own section.

Upgrade

  • From 0.1.0-alpha.4: change the image tag, run sudo apt update && sudo apt install schild and sudo systemctl restart schild, or replace the binary and restart. schild.yaml and schild.db need no change.
  • After the update the agent API listens on 127.0.0.1:8789 and answers 401 without a token. agent_api: {enabled: false} in schild.yaml keeps it off.
  • The server check is new to set up: sudo schild check install on the host. With Docker, copy the binary out of the container first and add the two mounts and the variable the command prints; the docs describe it under "Server-Check einrichten". With the check set up by hand before, run the command once as well: it replaces the units.

Downloads

  • Image: ghcr.io/deutschland-schild/schild:0.1.0-alpha.5 (linux/amd64, linux/arm64), digest sha256:8d18520896d1744c87af65f7b9b353a41300f1eb5695d72c3384fb2b898a1640
  • Binaries: schild_0.1.0-alpha.5_linux_amd64.tar.gz, schild_0.1.0-alpha.5_linux_arm64.tar.gz, sha256 in checksums.txt
  • Debian and Ubuntu packages: schild_0.1.0-alpha.5_linux_amd64.deb, schild_0.1.0-alpha.5_linux_arm64.deb, sha256 in checksums.txt
  • Signatures: checksums.txt.sigstore.json (cosign, keyless), build provenance as a file: provenance.intoto.jsonl

Verify:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.5 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt
gh attestation verify schild_0.1.0-alpha.5_linux_amd64.tar.gz --repo deutschland-schild/schild
gh attestation verify oci://ghcr.io/deutschland-schild/schild:0.1.0-alpha.5 --repo deutschland-schild/schild
cosign verify ghcr.io/deutschland-schild/schild:0.1.0-alpha.5 \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.5 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Schild Gateway 0.1.0-alpha.4

Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Nov 09:03
Immutable release. Only release title and notes can be modified.
v0.1.0-alpha.4

Release

  • checksums.txt is signed with cosign (keyless). The release carries the signature as checksums.txt.sigstore.json; it covers every archive and package the file lists. The command to check it stands in the release notes and in SECURITY.md.
  • The build provenance is attached to the release as a file, provenance.sigstore.json, for checks without access to the GitHub API. gh attestation verify works as before.
  • From this release on the release tag is signed by the maintainer who sets it. The tags of 0.1.0-alpha.1 to 0.1.0-alpha.3 are annotated and not signed.
  • The base images of the build are pinned by digest, and the build gets pnpm through corepack.

Docs

  • The installation docs describe the package for Debian and Ubuntu: installing with the installer script or by hand, both cases (schild as your Caddy, schild behind your web server), updating through apt, removing. README and start page name the package as one of the ways to install.

Upgrade

  • From 0.1.0-alpha.3: change the image tag, run sudo apt update && sudo apt install schild and sudo systemctl restart schild, or replace the binary and restart. schild.yaml and schild.db need no change. The gateway itself is the one of 0.1.0-alpha.2.

Downloads

  • Image: ghcr.io/deutschland-schild/schild:0.1.0-alpha.4 (linux/amd64, linux/arm64), digest sha256:25d28d005cfe8e49ccf598fb94bc9d309065c889ba4a1922338170743fd6f3a6
  • Binaries: schild_0.1.0-alpha.4_linux_amd64.tar.gz, schild_0.1.0-alpha.4_linux_arm64.tar.gz, sha256 in checksums.txt
  • Debian and Ubuntu packages: schild_0.1.0-alpha.4_linux_amd64.deb, schild_0.1.0-alpha.4_linux_arm64.deb, sha256 in checksums.txt
  • Signatures: checksums.txt.sigstore.json (cosign, keyless), build provenance as a file: provenance.sigstore.json

Verify:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.4 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt
gh attestation verify schild_0.1.0-alpha.4_linux_amd64.tar.gz --repo deutschland-schild/schild
gh attestation verify oci://ghcr.io/deutschland-schild/schild:0.1.0-alpha.4 --repo deutschland-schild/schild
cosign verify ghcr.io/deutschland-schild/schild:0.1.0-alpha.4 \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.4 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Schild Gateway 0.1.0-alpha.3

Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 21:10
Immutable release. Only release title and notes can be modified.

Packages

  • Debian and Ubuntu packages (MVP-31): every release carries schild_<version>_linux_amd64.deb and schild_<version>_linux_arm64.deb, listed in checksums.txt and covered by the build provenance. One package serves Debian 12 and 13 and Ubuntu 22.04 and 24.04. It installs /usr/bin/schild, both systemd units and the geo data, creates the user schild, and starts nothing. An upgrade replaces the files and never restarts the service; it names sudo systemctl restart schild. apt purge deletes /etc/schild and /var/lib/schild.
  • From this release on the release workflow publishes a signed apt repository with the channels alpha and stable and an installer script under https://pkg.deutschland-schild.de. The installation docs name it once it is checked against this release.

Upgrade

  • From 0.1.0-alpha.2: change the image tag (or replace the binary) and restart. schild.yaml and schild.db need no change. The gateway itself is the one of 0.1.0-alpha.2; this release adds the packages.
  • A server installed from the tarball stays as it is. The package puts the binary to /usr/bin/schild and the units to /usr/lib/systemd/system; moving an existing tarball installation to the package is not described yet.

Downloads

  • Image: ghcr.io/deutschland-schild/schild:0.1.0-alpha.3 (linux/amd64, linux/arm64), digest sha256:4b19885812654609b3437114abaee2f7f99f10021f252799ab898ba14c8379a1
  • Binaries: schild_0.1.0-alpha.3_linux_amd64.tar.gz, schild_0.1.0-alpha.3_linux_arm64.tar.gz, sha256 in checksums.txt
  • Debian and Ubuntu packages: schild_0.1.0-alpha.3_linux_amd64.deb, schild_0.1.0-alpha.3_linux_arm64.deb, sha256 in checksums.txt

Verify:

sha256sum -c --ignore-missing checksums.txt
gh attestation verify schild_0.1.0-alpha.3_linux_amd64.tar.gz --repo deutschland-schild/schild
gh attestation verify oci://ghcr.io/deutschland-schild/schild:0.1.0-alpha.3 --repo deutschland-schild/schild
cosign verify ghcr.io/deutschland-schild/schild:0.1.0-alpha.3 \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.3 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Schild Gateway 0.1.0-alpha.2

Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 19:40
Immutable release. Only release title and notes can be modified.

Gateway

  • A second Content-Type header no longer gets a JSON body past the depth and syntax check: the body is checked for every value that picks a parser, not only for the first. Values the rules read as JSON but Go does not (application/json x, application/a+json-seq) are checked as JSON too.
  • Bodies of an application/…+xml type (application/atom+xml, application/vnd.x+xml) go through the XML parser like application/xml.
  • A ;, a bad escape or a parameter sent twice no longer hides a login from the scenarios and limits: /wp-login.php?action=lostpassword&action=login counts as a login attempt, a preset limit on task=reset.request holds with other parameters around it, and of a user name field sent twice the last one counts, as in PHP.
  • On /wp-login.php the action is read as WordPress reads it: from the body over the query, and a value WordPress does not know is a login. ?action=register with action=login in the body, or ?action=anything, no longer keeps login attempts out of login_bruteforce, credential_stuffing and account_wave. Lost password, registration and the other actions stay no login attempts in the form WordPress sends them; a body schild cannot read as a form (multipart) counts as a login attempt.
  • A trusted proxy is never blocked or limited itself. When its forwarding header names no client, the request is attributed to the proxy, and a block there would have hit every visitor behind it. Trusted is loopback only unless ingress.trusted_proxies names more: a proxy or load balancer on another host or in a Docker network belongs there.
  • route_wave and inconsistency need at least 3 senders in the window: one client alone can no longer tighten a login route for everyone.
  • A client that names a search engine in its User-Agent but comes from outside that bot's published ranges is treated by aggressive_crawl like any other client. Without fresh ranges for the bot nothing changes: counted, not acted on.
  • Requests with a Host no website has no longer push the crawl baselines and learned session cookies of real websites out of the tables.
  • schild firewall run builds its table again only when the table is gone. Before, any error while writing the blocks rebuilt it, which emptied a table that was intact.
  • The firewall gets no block that shares an address with Eigene IPs, a trusted proxy or the server itself, also when only one address of a blocked IPv6 /64 is yours: the firewall drops before schild could let it through.
  • IPv6 blocks go into the firewall sorted and without overlaps. /64 blocks side by side become one interval, and schild firewall status and "Sperren" still list and count each of them.
  • Bot range lists are refused when they redirect to another host, name a private, loopback or link-local range, or a range wider than /16 (IPv4) or /32 (IPv6). The ranges fetched before stay in use.
  • The agent API names the client address (D99): ip on events, incidents and requests for as long as the gateway keeps the address (retention.raw_ip_days), next to pseudonym and /24, and an ip filter on listAgentEvents and queryRequests. A block is still named by event, incident or pseudonym, never by address. The API document is shorter and matches the code: the filter parameter, the error codes busy, no_snapshot and filter_unavailable, "profile" instead of "mode" in getAgentStatus.
  • At a full connection limit the search for an idle connection to close looks at 64 connections instead of 16.
  • The live numbers of one website (/monitoring/now?site=… and the website list) are over 60 seconds from the website's first request on. In its first minute after a start they named a window of 10 to 50 seconds, which the API document does not allow, and rates up to six times too high.
  • A start that schild run refuses (a Caddyfile it does not accept, a port in use) ends like a run: background work stopped, events written, stores closed. Before, it returned while that work was still writing into the data directory.

Upgrade

  • From 0.1.0-alpha.1: change the image tag (or replace the binary) and restart. schild.yaml and schild.db need no change.
  • With schild firewall run: update it together with the gateway, both come from the same image.
  • An agent that reads the agent API now gets client addresses. With a cloud model, everything the agent reads leaves the server; retention.raw_ip_days sets how long the gateway keeps an address.
  • On a WordPress site more requests count as login attempts than before: a POST to /wp-login.php with a body schild cannot read as a form, or with an action WordPress does not know.

Downloads

  • Image: ghcr.io/deutschland-schild/schild:0.1.0-alpha.2 (linux/amd64, linux/arm64), digest sha256:e308fcde604b49fb15aa48913a556a91ee122cb01fd3c0f27d7b464449fbc747
  • Binaries: schild_0.1.0-alpha.2_linux_amd64.tar.gz, schild_0.1.0-alpha.2_linux_arm64.tar.gz, sha256 in checksums.txt

Verify:

sha256sum -c --ignore-missing checksums.txt
gh attestation verify schild_0.1.0-alpha.2_linux_amd64.tar.gz --repo deutschland-schild/schild
gh attestation verify oci://ghcr.io/deutschland-schild/schild:0.1.0-alpha.2 --repo deutschland-schild/schild
cosign verify ghcr.io/deutschland-schild/schild:0.1.0-alpha.2 \
  --certificate-identity https://github.com/deutschland-schild/schild/.github/workflows/release.yml@refs/tags/v0.1.0-alpha.2 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Schild Gateway 0.1.0-alpha.1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 07:43
Immutable release. Only release title and notes can be modified.

First public alpha of the Schild Gateway.

Gateway

  • The first gateway version has no labs features (D72): no signals or feedback, no network rules, bundles, withdrawals or relay stream, no review queue of network recommendations. The config keys network, channel, labs, min_independent_operators, test_profile, relays, remote_rules, signals, site_key and behaviour.distributed.wave_hint are refused as unknown keys; delete them (also network: {enabled: false}) from schild.yaml. The dashboard pages Verbund, Freigaben and Signale are gone. schild-lab and schild-relay stay planned parts.
  • The default way in is the Caddy swap (D79): schild init -caddyfile FILE [-caddy-storage DIR] writes a starter schild.yaml with which schild runs as your Caddy: schild is a Caddy distribution with the WAF module built in. It loads the same Caddyfile and starts with a copy of Caddy's certificates in /var/lib/schild/caddy, so nothing is issued again and Caddy's own storage is never changed. init lists the sites, the lines the Caddyfile still needs (the snippet (schild) and import schild per site with a backend), the copy commands, the swap and the way back. It never edits the Caddyfile. -caddyfile and -upstream exclude each other.
  • schild ingress validate prints the lines to add when a site lacks schild and then checks, as the current user, what would break after a swap (D79). It refuses (result: REFUSE, exit 1) a data directory this user cannot write, where the lock and the databases go; a certificate storage that exists but that this user cannot read or write, also behind a symbolic link, with the chown command (in a container one numeric chown for the whole data volume) and the consequence in plain words (cannot read: no start or failing sites; cannot write: no renewal); a log file of the Caddyfile this user cannot write; and, under systemd, a log file outside the ReadWritePaths of schild.service, with the drop-in to add. When systemd runs but the unit cannot be read or is not installed, such a log file is a warning that says which of the two, and the result is PASS with warnings. The full check ends with one result line and keeps Caddy's provisioning log lines off the terminal. The full check also runs in a container with a read-only root file system (its temporary directory falls back to the data directory). -adapt-only reads the Caddyfile only: no data directory, no certificate storage, no provisioning, no file access. The whole report is on stdout; a refusal is no longer repeated on stderr.
  • schild init [-config FILE] [-upstream URL] [-node-name NAME] [-force] writes a starter schild.yaml for schild behind a web server (D78). It never overwrites an existing file without -force and does not write through a symlink.
  • schild dashboard setup-code prints the one-time code for the first login again while no password is set (D78). The start log keeps the field setup_code and adds dashboard_url.
  • The store migrates itself (D75): schild run brings schild.db to the schema of the binary in one transaction and writes the copy schild.db.backup-v<N> first. A database of a newer schild or of a build before this release is refused with a message that names the file; nothing is written. Other commands never migrate and ask for a restart.
  • The dashboard checks the Host header against DNS rebinding (D76). It answers under localhost, any IP address, the host of listen.dashboard and the names in the new config key dashboard.allowed_hosts; any other name gets 403 with the line to add.
  • The session cookie works over plain HTTP in a tunnel or VPN (D76): Secure whenever the request came over HTTPS, not on loopback, and not when the browser itself states it loaded the dashboard over plain HTTP.
  • Test-lab switches do nothing in release builds (D77): SCHILD_HOST_AGENTS, SCHILD_WAF_MAX_EVALS, SCHILD_WAF_QUEUE_WAIT_MS, SCHILD_EVENTS_NDJSON_DIR, SCHILD_CROWDSEC_HUB_URL and SCHILD_ALLOW_TEST_KEYS are ignored.
  • Operator rules cannot switch the rule engine or the request body off (D80). SecRuleEngine, SecRequestBodyAccess, SecRequestBodyLimit, SecRequestBodyNoFilesLimit, SecRequestBodyInMemoryLimit, SecRequestBodyLimitAction the actions ctl:ruleEngine, ctl:requestBodyAccess, ctl:requestBodyLimit and Include in rules.d are refused at start and at a sync, with the reason. Before, such a rule made schild pass an empty request body to the backend. To leave a path out of the CRS use ctl:ruleRemoveByTag=OWASP_CRS.
  • The server check judges the firewall for IPv6 too (D81). When the host has a public IPv6 address and only IPv4 is filtered, firewall.active and firewall.default_incoming are findings instead of ok. With iptables the check also reads ip6tables-save.
  • The event list of all websites names the website of every row.
  • An address without a known country (127.0.0.1, private ranges) shows a globe icon instead of the letters ZZ as a broken flag.
  • Less is redacted (D85). The User-Agent is stored as sent: an app name with a build number no longer reads [redacted]. In paths, query values and rule messages only values that look random count as tokens (32 characters or more, digits and letters mixed), so long slugs and file names stay readable. Parameter names like zipcode, country_code or monkey no longer count as secret. Passwords, tokens, JWTs and e-mail addresses are redacted as before.
  • The page "Server" no longer shows the container image ("Distroless") as the operating system. In a container without a host report it shows the kernel's name (Linux); with a host report it shows the server's distribution as before.
  • Rule exceptions are set and removed in the dashboard (D84), no longer only through the agent API: "Ausnahme anlegen" under "Eigene Regeln und Ausnahmen", in the detail of an event next to the rule that hit, and on a possible false positive, where the form opens filled. The page "Eigene Regeln" is now "Eigene Regeln und Ausnahmen", with two tabs, "Eigene Regeln" first and "Ausnahmen" behind the second, which also lists the possible false positives of all websites; the overview of the rules counts the exceptions. The page "Ausnahmen" of a website is gone, its address leads to that tab. Exceptions for the same field are one entry in the list, however many parts an agent had to set: the rules together, grouped by what they look for, removed with one click.
  • Single rules come out of a rule exception (D86): an × next to each rule number in the dashboard, rules in the body of removeAgentException for agents. The exception stays for the other rules with its reason and author; the last rule out removes it.
  • The dashboard says that the mode is about single requests and that only the scenarios block an address for a while: a line under "Modus" with how many scenarios block and a link to them, a note on "Szenarien" while none blocks. "Automatisch sperren" and "Freigeben" say that the rules block requests, not addresses.
  • The sidebar of a website or a server lists only its own pages. Schutz (Regeln, Verhalten & Limits, Eigene IPs) and Einstellungen hold for all websites and stand under "Alle Websites"; their pages no longer keep the last website in the switcher.
  • The password page of an access lock has no line above the password field; the line stays where a page holds its own text above a second part "Mit Passwort weiter".
  • A maintenance switch on the page "Zugriffsschutz" of a website: everyone gets the maintenance page "Wir sind gleich wieder da." with 503, only Eigene IPs get through, with an optional text. It is a whole-website access lock with Eigene IPs as the way in; while another protection is set, the switch stays off and says so.
  • The website cards on "Alle Websites" show the last 24 hours (requests, share stopped, response time) instead of the last minute, which is empty most of the time on a small website. "p95" is gone from the visible copy: "Antwortzeit" with "95 von 100 Anfragen waren schneller", and the latency chart names its lines that way.
  • Every blocked address in one list (D87): the new page "Sperren" shows each address schild blocks now, with reason, duration, incident and a button to lift it, and the stopped requests of all websites with the search for an incident number. "Szenarien und Limits" moved below "Regeln"; "Verhalten & Limits" and the page "Vorfälle" are gone, their old addresses lead to the new pages.
  • Blocks go into the server's firewall when you want (D87): schild firewall run, the same image as its own small container with NET_ADMIN (or a systemd service), asks the agent API for the running blocks (new scope firewall:sync, a long poll) and keeps its own nftables table inet schild, which drops the traffic of blocked addresses to the ports 80 and 443 until each block ends. A block or a lift reaches the firewall within a second; "Sperren" shows per address whether the firewall holds it. schild firewall status and off; a Compose service and a Kamal example are in the docs.
  • Unblocking an incident in the dashboard ends its timed block, not only for this client's requests: the address leaves the list of blocks and, within a second, the firewall. "Freigeben" on "Sperren" opens the same unblock (false positive or not, the address as an own IP if wanted).
  • Addresses are blocked by hand in the dashboard (D88): "Adresse sperren" on "Sperren", on an event and on an incident, for 1 hour, 24 hours or 7 days with a reason. The block reaches the firewall within a second like any other. Own IPs, the server and private addresses are refused; mobile, CGNAT and Tor addresses need a confirmation.
  • One click blocks the address of an event, an incident or a row of "Ereignisse" and "Zugriffe": data-centre addresses for 7 days, every other address for 24 hours, with the event as reason and "Rückgängig" in the notice. Another duration and "Zu Eigene IPs hinzufügen" sit ...
Read more