Download the PHP package koh/sylius-web-bot-auth without Composer
On this page you can find all versions of the php package koh/sylius-web-bot-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download koh/sylius-web-bot-auth
More information about koh/sylius-web-bot-auth
Files in koh/sylius-web-bot-auth
Package sylius-web-bot-auth
Short Description Web Bot Auth key directory for Sylius: publishes an Ed25519 JWKS at /.well-known/http-message-signatures-directory.
License MIT
Homepage https://ole-hartwig.eu/open-source/sylius-web-bot-auth
Informations about the package sylius-web-bot-auth
koh/sylius-web-bot-auth
Publishes a Web Bot Auth key
directory at /.well-known/http-message-signatures-directory.
What this does — and what it does not
The directory lets a receiving site verify HTTP Message Signatures on requests this shop sends out (a price crawl, a feed fetch, an outbound agent call). It says nothing about requests arriving here, and installing it does not make the shop verify anything.
That distinction is worth stating because a published directory reads like inbound verification. If you want to authenticate incoming bots, this package is the wrong half of the protocol.
Install
Configure
Generate a seed:
Use a dedicated secret. Never derive the seed from APP_SECRET. It is
tempting — the value is already there — but it welds the signing identity to the
session secret: rotating one invalidates the other, and anything that leaks
APP_SECRET also lets an attacker sign as this bot.
Keys are derived deterministically, so every instance behind the load balancer publishes the same directory. A per-process random key would make the directory contradict itself between requests.
With no key configured the route returns 404. That is deliberate: an empty directory reads to a verifier as this origin has no valid keys, which is a stronger and wronger claim than not configured.
Rotation
List both keys, newest first:
not_before and expires_at are configured in unix seconds and serialised
as milliseconds, which is what the directory format expects.
The kid is not configurable — it is the RFC 7638 thumbprint of the key it
names, derived on every render. A hand-maintained kid can drift from its key,
and a drifted kid makes a rotation impossible to verify.
Custom key source
Alias the interface to use a KMS, a file, or a hardware token:
Output
Decommission
Remove the composer require, the config/bundles.php entry, the route import
and config/packages/koh_web_bot_auth.yaml. Then revoke the seed: the
directory disappearing does not invalidate signatures already made with that
key, so rotate the secret wherever it is stored.
Security
Report vulnerabilities privately — see SECURITY.md. Advisories are published as CSAF 2.0 at https://ole-hartwig.eu/.well-known/csaf/.
The family threat model, covering this package, is at https://github.com/ohartwig/sylius-agent-ready/blob/main/docs/threat-model.md.
Licence
MIT — see LICENSE.
All versions of sylius-web-bot-auth with dependencies
ext-sodium Version *
koh/sylius-agent-contracts Version ^1.0
symfony/config Version ^7.4 || ^8.0
symfony/console Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/routing Version ^7.4 || ^8.0