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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

PHP Build Version
Package Version
Requires php Version ^8.3
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package koh/sylius-web-bot-auth contains the following files

Loading the files please wait ...