Download the PHP package wexample/symfony-security without Composer
On this page you can find all versions of the php package wexample/symfony-security. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wexample/symfony-security
More information about wexample/symfony-security
Files in wexample/symfony-security
Package symfony-security
Short Description Security contracts shared by the Symfony packages: secret redaction in logs, security events, security headers
License MIT
Informations about the package symfony-security
symfony-security
Version: 4.0.5
Security contracts shared by the Symfony packages: secret redaction in logs, security events, security headers
Table of Contents
- Installation
- Introduction
Installation
symfony-user and symfony-api check it at container build: without it, their kernel fails with … requires Wexample\SymfonySecurity\WexampleSymfonySecurityBundle, which masks its secrets in the logs, rather than logging their secrets unmasked. A bundle of the suite relying on it does the same from its build():
Configuration
Everything is optional: nothing is masked by configuration by default, and the headers below are the defaults.
symfony/monolog-bundle registers the processor on every channel; without it, nothing is logged through Monolog and nothing needs masking.
symfony-security is the bundle holding the security contracts several packages of the suite share, so that each one says only what is its own: what its secrets look like, what its security facts are called. symfony-user and symfony-api require it, and refuse to build without it.
- Secret redaction in logs: one
Log\SecretRedactionProcessor, on every channel, walks each record once — message, context, extra, array keys, carried exceptions with their previous ones, objects as the formatter reads them — and hands each string to every masker: a service implementingLogMaskerInterface, or a query parameter or pattern listed in the configuration. - Security events:
Event\AbstractSecurityEvent, one shape for every security fact (type, outcome, cause, user id, method, firewall, IP, user agent, request id, UTC time, extra);EventSubscriber\AbstractSecurityEventLogSubscriberwrites them to a channel of their own;Helper\RequestIdHelpergives one request id per request to every package.
All versions of symfony-security with dependencies
psr/log Version ^3.0
monolog/monolog Version ^3.5
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/event-dispatcher Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/rate-limiter Version ^7.4 || ^8.0
symfony/yaml Version ^7.4 || ^8.0
wexample/symfony-helpers Version >=19.3.0