v0.10.0
Laravel SDK quiet-guard/laravel-monitor
Requires the core as ^0.10.0 (its SqlNormalizer), and a server that knows POST /api/v1/performance.
Added
- Aggregated performance measurement, off by default (
MONITOR_PERFORMANCE=trueturns it on,MONITOR_PERFORMANCE_ENVIRONMENTSlimits it,productionby default). Each request and each queued job adds one line to a local file: its route name (or URI pattern, never the path), status, duration, number and time of SQL queries, its few remarkable SQL statements (the three costliest, any N+1, any run of one second or more) normalised and masked, and the hosts it called through Laravel's Http client. No SQL query and no cache call per request, nothing sent per request. Once a minute the lines are merged into one summary and sent: from a task the SDK schedules by itself, from a worker's loop, or from the first request of a new minute. SQL values, URLs, query strings, user ids, IP addresses, headers and bodies are never written nor sent. - An N+1 is a
SELECTrun ten times or more in one request with five distinct sets of values at least, outside the framework's own tables (cache, locks, sessions, jobs, batches, failed jobs, read from the configuration with the table prefix). MONITOR_PERFORMANCE_PATHsets the local directory,storage/framework/quiet-guard/performanceby default. A directory that cannot be written turns the measurement off. A file is capped at 8 MB and the directory at 64 MB; anything fifteen minutes old is deleted unsent.- A summary refused with a 402 or a 403 pauses the measurement for an hour, with one warning in the application's log. After a timeout, a 429 or a 5xx the same summary is sent again, with the same batch id, so the server never counts it twice. A backlog left by an outage is sent two summaries at a time, oldest first, so a recovering server is not flooded.
PHP Core quiet-guard/monitor-php
Added
Support\SqlNormalizer: the shape of an SQL statement with every value taken out (strings, numbers including1_000and0o17, hex and bit literals, dollar-quoted strings, comments), lists of values collapsed to one placeholder. Every ambiguity masks the rest of the statement: a backslash inside a string, an unterminated quote, backtick or comment, or a comment holding a quote, a$, a carriage return or a nested/*, since the dialects disagree on where a comment ends. Double quotes are strings on MySQL and MariaDB. On Postgres, SQLite and SQL Server (DOUBLE_QUOTED_IDENTIFIER_DRIVERS), whose SQLite and SQL Server can still read them as strings, a double-quoted token is kept only where Laravel's grammars write names (beside a dot, after FROM, JOIN, INTO, UPDATE, AS, SELECT, BY, in a column list, or right before a comparison); a function argument or the right side of an operator is masked. Used by the Laravel SDK's performance measurement, and run again by the server.
Sans changement : Symfony Bundle, WordPress Plugin.
v0.9.0
Laravel SDK quiet-guard/laravel-monitor
Requires the core as ^0.9.0.
Added
- The same exception, thrown from the same place (class, file and line), is sent once per window, 60 seconds by default (
MONITOR_DEDUPE_SECONDS,0sends every occurrence). The occurrences held back are counted in the application's cache and sent with the next report of that exception asskipped, which a server from this release adds to the issue's count: the dashboard still counts every occurrence, the monthly quota counts what was sent. An exception thrown in a loop of ten thousand used to be ten thousand reports. A count not followed by another report within a day is dropped, and a cache that fails sends every occurrence, as before.
Sans changement : PHP Core, Symfony Bundle, WordPress Plugin.
v0.8.1
WordPress Plugin quiet-guard/monitor-wordpress
- Changed: the bundled core is required as
^0.8.1.
- Fixed: an uncaught exception left the visitor a blank page answered HTTP 200, with no WordPress error page and no recovery mode email, because the plugin's handler ended the request itself. Once reported, the exception is now handed back to PHP, which logs it, answers 500 and lets WordPress handle it as it would without the plugin.
- Fixed: a fatal error (memory exhausted, maximum execution time, a compile error) was read only from
error_get_last()after WordPress's own fatal handler had run, and anything that handler raised first, even a suppressed warning, replaced it: the report was lost. The plugin now reads it from WordPress'swp_php_error_argsfilter, keeps the shutdown hook as a fallback, and reports a crash that reaches both once.
Sans changement : Laravel SDK, PHP Core, Symfony Bundle.
v0.8.0
Laravel SDK quiet-guard/laravel-monitor
Added
monitor:backupsends the encrypted archive to the storage in parts, straight from the application, through addresses the server signs: the archive no longer passes through the server's web stack, so the size of a single request is no longer a limit. Each part is retried three times (after 1, 2 and 4 seconds), a new address is asked for when one has expired, and an upload that gives up is aborted so it holds no space. Asking for new addresses and completing the upload are retried the same way after a network error or a 5xx from the server, so a blip after gigabytes sent does not lose the upload. The--keeprotation still runs only after a successful upload.monitor:restoredownloads straight from the storage through a signed address and checks the archive against the checksum the server published. The project key is sent only to the server's own host, never to the storage.- Against a server that does not know these routes (or has no storage configured), both commands fall back to the single-request upload and download of v0.7.x. Nothing to configure.
- A signed address never appears in a command's output, in
lastError()or in a log line: only the host and the status.
PHP Core quiet-guard/monitor-php
Security
- The signature of a presigned S3 address (
X-Amz-Signature=followed by 64 hex digits, whatever the case of the parameter name) is masked as[redacted:aws_presigned]in exception messages and logs, so a signed backup URL never leaves the application. The host, path andX-Amz-Credentialstay readable.
Sans changement : Symfony Bundle, WordPress Plugin.
v0.7.1
Laravel SDK quiet-guard/laravel-monitor
Security
- A log context value that is an object is unwrapped before it is scrubbed.
Log::warning('x', ['input' => collect($request->all())])used to send the password in clear, and withMONITOR_QUEUEset it was also serialized into the application'sjobsandfailed_jobstables. Nothing leaves that 0.7.0 did not send, it is now masked first: whatjson_encodewould have produced,jsonSerialize()or the public properties of aStringable, never its string (that of aResponseor aRequestcarriesSet-Cookie,CookieandAuthorization). Any other object, anArrayableor aValidatedInputincluded, still gives its class name. An object that throws while being unwrapped is replaced by its class name instead of losing the log line, a cycle between objects is cut ([recursion]), a log written while a context is being unwrapped is ignored, and unwrapping never writes through a reference the application shares. - A log context nested deeper than 32 levels is now cut to
[depth], an unwrapped object counting as one level.
PHP Core quiet-guard/monitor-php
Security
Reporterturns the objects of a log context, and of an exception context, into the datajson_encodewould have sent BEFORE the scrubber and the redactor run. Both walk arrays and strings only, so an object (a DTO, a collection) was expanded by the HTTP client after them, and apasswordit carried left in clear under a key that was not itself secret-named. This covers the Symfony bundle. When the whole context cannot be encoded (ajsonSerialize()that throws, a depth past 512), each key is tried alone, so one bad value costs that value only.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Security
- An object in a log record context (a DTO with a public
passwordproperty) is masked like an array: the core now turns it into data before masking, where it used to be expanded byjson_encodeafter it.
Sans changement : WordPress Plugin.
v0.7.0
Laravel SDK quiet-guard/laravel-monitor
Added
php artisan monitor:testsends one test exception right away, without the queue even whenMONITOR_QUEUEis set, and prints whether the server accepted it, with the server's own reason when it did not (an invalid key, a suspended payment), and fails when the server accepted it without keeping it because the month's quota is used up. It also runs in an environment left out ofMONITOR_ENVIRONMENTS, to check the connection from a local machine, and warns that real exceptions there are not reported.- Browser errors.
@quietGuardBrowserin a layout's<head>prints a small dependency-free script, inline, that reports the uncaught JavaScript errors and unhandled promise rejections of your pages to the project's browser endpoint: the page address without its query string or fragment, the user agent, the error and its stack, whether Livewire is on the page, and the Alpine expression that failed when there is one. At most ten reports per page load, the same error once. It needsMONITOR_BROWSER_KEY, the project's public browser key from the dashboard (neverMONITOR_KEY), and follows the sameenabledandenvironmentsgates as exceptions. The script carries the nonce Vite gives the page, for a strict Content-Security-Policy; add the server's origin toconnect-src. No source maps: frames show the built bundle.
Sans changement : PHP Core, Symfony Bundle, WordPress Plugin.
v0.6.0
Laravel SDK quiet-guard/laravel-monitor
Security
- Request headers go out on an allow list.
PayloadBuildersent$request->headers->all()whole and masked it by name, so any header the scrub list had not thought of travelled with its value. Every header now travels with its NAME, and with its value only whenmonitor.request_headersnames it (by defaultaccept,accept-encoding,accept-language,cache-control,content-length,content-type,host,origin,user-agent,x-requested-with,x-livewire,x-inertia,x-inertia-version); the others carry[scrubbed]. The scrub list still applies on top. The six visitor IP headers are absent from the list and a customer with a legal basis adds them, removing them fromscrub(forwardedincluded, since it masksx-forwarded-forby substring). - A route parameter whose NAME the scrub list matches, or that is a credential in an address (
hash,signature: Laravel's own/email/verify/{id}/{hash}), is masked in the reported URL whatever its length (/reset-password/{token}): the path rule only knew a token by its shape, forty letters or digits, which stays as the safety net. Read from$request->route(), failing open on anything unexpected. - The message is no longer cut hard at 8192 characters before masking, which let the first half of a token straddling the cut leave in clear: it is cut softly at a whitespace past the limit (
PayloadBuilder,LogCollector), masked whole, then cut at the limit (Transport::redact, through the core'sCut::before()andCut::payload()). A request context past the 65 535 bytes the server keeps is replaced before masking by the server's own marker rather than scanned whole. - Credentials are masked by their shape wherever they sit, the queued path included (the report is masked before it is dispatched), through the core's
ValueRedactor: see the core's changelog for the shapes. The published configuration template now writes'redact' => null, the client's own list, so a published copy follows the package and names no class of it (removing the package never makes that file fatal); the exact list a copy published before this version carries,['email', 'iban', 'nir', 'card', 'phone'], is read as the default it was, so it masks credentials too. - The shapes of the query string and of a path segment that
fullUrl()writes percent-encoded are masked in the reported URL, as they already were in thequeryarray beside it, through the core'sValueRedactor, which now reads an encoded value decoded.
Changed
- The core is required as
^0.6.0:PayloadBuildercallsScrubber::masks()and the report relies onValueRedactor::CREDENTIALS. PayloadBuildertakes a sixth constructor argument, the headers sent in clear (null takesPayloadBuilder::HEADERS).
PHP Core quiet-guard/monitor-php
Security
ValueRedactormasks credentials by their shape, wherever they sit (an exception message, a context field of any name, a code snippet line, a log), on by default: Stripe keys (sk_live_,sk_test_,rk_live_,rk_test_,whsec_), AWS access key ids (AKIA,ASIA) and the secret key only where it is known for what it is (within eighty characters after an id, or underaws_secret_access_key), GitHub tokens (ghp_,gho_,ghu_,ghs_,ghr_,github_pat_), GitLab tokens (glpat-,glrt-,gldt-,gloas-,glptt-,glffct-,glimt-,glagent-,glcbt-,glsoat-), Slack tokens (xox?-,xapp-) and the path of ahooks.slack.comwebhook, JWTs (header decoded and parsed), private key blocks (-----BEGIN ... PRIVATE KEY-----, PGP included, to the end of the text when the block was cut), a LaravelAPP_KEY(base64:) and a Quiet Guard project key (lm_). The new shapes formValueRedactor::CREDENTIALS, run before the personal ones (a GitHub token starting with digits came out as[redacted:phone]) and keep the precision rule: a class name, a git hash, a UUID or a word carrying a prefix without the token behind it travels.- The password of a
user:password@hostwritten into an address of any scheme is masked wherever the address sits in a text (url_password,[redacted:password]), the scheme, the user and the host staying readable. TheScrubberonly read an address that opens a string, and an exception message never went through it; the email shape then ate the password and the host together. The slashes may arrive escaped (redis:\/\/, as json_encode writes them, for an application key too), the user may carry an@(a mailer DSN), the password an@or a/: it runs to the last@of the authority. - A hard cut before masking halved a token straddling the limit, and its first half, the prefix, left in clear.
Cut::soft()cuts on the first whitespace past the limit,Cut::before()applies it to the message and the snippet lines before masking (theReportercalls it), and the hard cut ofCut::payload()lands on masked text.Cut::before()also replaces a context whose JSON exceeds the 65 535 bytes the server keeps by the server's own marker,environment,releaseandoccurred_atkept, rather than scanning megabytes the server drops. - The exact list every client shipped before this version,
['email', 'iban', 'nir', 'card', 'phone']in that order (ValueRedactor::LEGACY_DEFAULT), is read as the default it was: every published configuration carries it, and read literally it would have switched every credential shape off for whoever followed the installation page. - A masking failure withholds the field instead of sending it as it came: a PCRE failure on a built-in pattern, or on a custom one that compiled, replaces the field whole by
ValueRedactor::UNSCANNABLE([redacted:unscannable]). A string over 64 KB, formerly skipped whole, is read in pieces cut on a line break (failing that a space, failing that a byte outside the token alphabet), the key block being read on the whole text first. A custom pattern that does not compile is dropped at construction, as before: a configuration error, not an unreadable value. A piece never ends between the bytes of one character, or a custom pattern written with/ufailed on it. The private key block is read without backtracking, so a block of a megabyte comes out masked rather than unscannable. - A percent-encoded value is read decoded (
ValueRedactor):fullUrl()andgetUri()write the query string encoded, so an email (%40), a number, an IBAN or a card written with spaces (%20), a DSN or an application key passed as a parameter left in clear in the reported URL. Credentials are read as written, then the decoded text (up to three levels, for an address passed as a parameter and encoded again), then the personal shapes; only the value is rewritten, the mask unencoded (?email=[redacted:email]), every other byte as it was written. The password of an address no longer runs across a&name=pair to the@of an email further on, in a decoded layer only and only on a written&: in doubt, the whole password goes. cardis read on every run of digit groups: the whole run (13 to 19 digits), failing that a span laid out as a card, so a card next to its expiry or a phone number is found, and a second pass finds nothing new.url_passwordis bounded (a 256-character password) and ends on the punctuation of a sentence (),,,;,>, a backquote, a final.).- A custom label holding a bracket or a line break is refused.
Scrubber::scrubLines()masks whole a line that hands a string literal to a call whose arguments are credentials (Scrubber::CREDENTIAL_CALLS:new PDO,new mysqli,mysqli_connect,mysqli_real_connect,mysql_connect,pg_connect,pg_pconnect,oci_connect,ldap_bind,ftp_login,imap_open,ssh2_auth_password, PHP 8.4'sPDO::connectandPdo\Mysql::connect/Pdo\Pgsql::connect/Pdo\Sqlite::connectfactories, and->real_connect). A call passing variables, or a literal nested in another call (env('DB_PASSWORD')), stays readable.
Added
Scrubber::masks(string $key): boolandScrubber::masksParameter(string $name): bool, the key rule and the address-parameter rule made public, for an adapter to ask about a name of its own (the Laravel SDK asks about route parameters,{hash}of the email verification link included).ValueRedactor::CREDENTIALS,ValueRedactor::PERSONAL,ValueRedactor::LEGACY_DEFAULT,ValueRedactor::UNSCANNABLEandValueRedactor::CHUNK_BYTES;Cut::soft(),Cut::before(),Cut::SLACK,Cut::CONTEXT_MARKERandCut::LIMITS['context'].ValueRedactor::redactAll()keeps two keys masked to the same label as two rows ([redacted:email],[redacted:email] (2)) rather than one replacing the other.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Security
- Credentials are masked by their shape wherever they sit, through the core's
ValueRedactorthe bundle already runs: see the core's changelog for the shapes. Theredactdefault isValueRedactor::PATTERNSand follows the core; aredactlist written out inmonitor.yamlreplaces that default, except the exact pre-0.6.0 list ([email, iban, nir, card, phone]), which is read as the default it was and masks credentials too. The bundle sends the request method and URL only, so the header allow list of the Laravel SDK has no counterpart here. - The shapes
getUri()writes percent-encoded in the reported URL (an email as%40, a number written with spaces as%20) are masked, through the core'sValueRedactor, which now reads an encoded value decoded.
Changed
- The core is required as
^0.6.0.
WordPress Plugin quiet-guard/monitor-wordpress
- Security: credentials are masked by their shape wherever they sit, through the bundled core (Stripe keys, an AWS access key id and its secret key when it follows one, GitHub, GitLab and Slack tokens, JWTs, private key blocks, a Quiet Guard project key, the password of a
user:password@hostin an address); a code snippet line that hands a literal tonew PDO(...),mysqli_connect(...)or another call whose arguments are credentials is masked whole; a field the engine could not read is withheld as[redacted:unscannable]rather than sent as it came. - Security: a percent-encoded value (an email written
%40, a number written with%20) is read decoded by the bundled core, so a URL quoted in an error message is masked as it would be in clear. - Changed: the bundled core is required as
^0.6.0.
v0.5.0
Laravel SDK quiet-guard/laravel-monitor
Added
monitor:backup --exclude-table=<table>, repeatable, with--databaseonly. The table's structure stays in the backup and its rows do not: twomysqldumppasses on MySQL and MariaDB (every structure, then every row but the excluded tables, each pass with--single-transaction),--exclude-table-dataon PostgreSQL, and on SQLite a copy emptied of those tables then vacuumed, so the deleted rows are not left readable in its free pages. A name carrying anything but letters, digits,_,$and-stops the command before any request, rather than backing the table up anyway.
Changed
- The core is required as
^0.5.0. It carries no change of its own and is released at the same version, so the four packages of the family install as one.
Sans changement : PHP Core, Symfony Bundle, WordPress Plugin.
v0.4.0
Laravel SDK quiet-guard/laravel-monitor
Added
- Automatic heartbeats. In production, the SDK pings a
schedulerheartbeat each timeschedule:runstarts, at the cron's own cadence, and, for every watched queue, pingsqueue-{connection}-{queue}from the worker's own loop with the shortest wait a job saw since the previous ping (Laravel 12.11 or later). The scheduler heartbeat needs two runs ofschedule:runto arm (the first only records the time), and several hosts sharing one cache count as one scheduler; a queue heartbeat arms on a worker's first loop turn, with a grace that follows the worker's--timeouton Laravel 13.10 or later.MONITOR_SCHEDULER_HEARTBEAT,MONITOR_QUEUE_HEARTBEATSandMONITOR_HEARTBEAT_ENVIRONMENTScontrol them. A worker whose ping fails sends no queue ping for a minute, so a Quiet Guard server that hangs costs each worker oneMONITOR_TIMEOUTa minute, whatever the number of queues. Transport::pingAuto().
Changed
- The core is required as
^0.4.0. It carries no change of its own and is released at the same version, so the four packages of the family install as one.
Requires
- A Quiet Guard server that reads the heartbeat body (quietguard.dev from its deployment of this change). An older server records the pings unarmed.
Sans changement : PHP Core, Symfony Bundle, WordPress Plugin.
v0.3.1
Laravel SDK quiet-guard/laravel-monitor
Security
- The password of an HTTP Basic request travelled in clear. The request names its headers lower-cased with hyphens, so it sat under
php-auth-pwwhile thescrublist writesphp_auth_pw, and a name only matched as written. A hyphen counts as an underscore now, which also catchesx-api-keyunderapi_key. - A password reset token travelled in the reported URL.
context.urlwas set outside the scrubber, so the token and the signature in the query of Filament's reset link, and the token in the path of Laravel's own (/reset-password/{token}, the one Breeze, Fortify and Jetstream send), reached the server in clear. The URL goes throughScrubber::scrubUrl()now: the query values thescrublist names become%5Bscrubbed%5D, and so does every path segment made of forty letters or digits in a row.signature, the parameter that authorises a URL Laravel signed (URL::signedRoute), joins the defaultscrublist. - A Livewire request was not opened.
components.*.snapshotis a JSON string, and a scrubber that only descends into arrays handed it over whole, the state of the component and a password typed into it included. JSON written as a string is decoded, masked by key and written back now. - A secret hardcoded into an array travelled in a snippet: in
$config['password'] = '...'a']stood between the name and the=, and the line rule did not read it. Such a line is masked whole now, and so is a comparison with such an index.
Fixed
- An empty
MONITOR_URLsilenced the client. v0.2.2 resolved an empty address to the hosted service and said so, but the two gates in front of the transport, the exception reporter and the log hook, still required a URL: an installation that left it empty, as the configuration invites, sent no exception and no log at all, and said nothing. Both gates ask for the key alone now. - A snippet line that calls a static method (
Auth::user()) is no longer masked whole. The first colon of::read as the start of a value, so such lines went, the line of the throw included. A hardcoded'php-auth-pw' => '...'line is masked, ascrubname with a hyphen or an underscore inside it being tried in both spellings.
Changed
- The core is required as
^0.3.1: this release callsScrubber::scrubUrl()and relies on the masking rules that arrived with it, so it must never resolve with an older core. - A machine that has a key and no
MONITOR_URL, a staging box for instance, now reports to the hosted service. To keep it quiet, leave itsMONITOR_KEYempty or setMONITOR_ENABLED=false.
PHP Core quiet-guard/monitor-php
Security
- A header spelled with hyphens is masked like its underscore spelling. Symfony's request, which Laravel's extends, names every header lower-cased with hyphens, so the password of an HTTP Basic request arrived as
php-auth-pwwhile the lists writephp_auth_pw, and travelled in clear;x-api-keygot pastapi_keythe same way. A hyphen and an underscore are one character now when a key or a query-string name is matched. - A name with a separator inside it is also found in a key written without one. Supabase and Kong send their key as an
apikeyheader and a form field isapiKey, which hold noapi_key, so they travelled in clear. A configured name that carries a hyphen or an underscore between two of its characters is now also looked for, without them, in a key or a query-string name stripped of its own. A name with no separator matches as before, and one that starts or ends with a separator keeps its spelling: WordPress'sdb_written asdbwould maskfeedback. Scrubber::scrub()opens a JSON object or array written as a string, such as Livewire'scomponents.*.snapshot, the state of a component with a typed password in it. The scrubber only descended into arrays, so the string travelled as it came. It is decoded, masked by key and written back now; handed back byte for byte when nothing inside matched, and replaced whole with the mask when it held a secret and cannot be written back. A string that opens like JSON and does not decode is replaced whole with the mask when a quoted name followed by:in it matches: a client that masks values by shape over the whole payload turns a sixteen-digit number that passes Luhn into[redacted:card], the snapshot is no longer JSON, and the password beside that number travelled with it. The names are read in one pass, literal after literal, never by a pattern retried from every quote, then once more without pairing quotes, so that a stray quote earlier in the text does not hide a"password":after it.- A string that starts with an absolute
http(s)URL is masked as an address (Scrubber::scrubUrl(), public): the values of the query-string parameters and of the fragment'sname=valuepairs whose name matches, and every path segment made of forty letters or digits in a row, whatever the list says. A password reset link carries its token in the query or in the path (/reset-password/{token}in Breeze, Fortify and Jetstream), and a context value holding one, Symfony'srequest.urlfor instance, carried it in clear. A number, a slug, a UUID or a ULID stays; the scheme, the host, the port and the user of a userinfo travel as they came, its password is masked (user:%5Bscrubbed%5D@), since a URL typed into a form field or a webhook setting carries it; a relative address is not reached. A string that starts with an address of any other scheme, a DSN such asmysql://root:secret@db/apporredis://:secret@cache:6379, has the password of its userinfo masked the same way, and the values of its query-string parameters whose name matches, since a DSN writes its options there (tcp://127.0.0.1:6379?password=...); the path-token rule stays the web's. The text after the URL is handed back as it came, except a pair opened by&,?or#whose name matches. - Four parameter names of an address are masked whatever the list holds, since a link carrying one is a working credential until it expires:
hash(Symfony's login links, besideuserandexpires),_hash(Symfony'sUriSigner, beside_expiration),sig(Azure's shared access signatures) andsignature(Scrubber::URL_CREDENTIALS). The name is matched exactly, decoded and regardless of case, sohashtagandcontent_hashstay, and only in the query, the fragment and the pairs after the URL: in the key listshashwould mask every key containing it and every snippet line callinghash('sha256', ...). - A source line that gives a value to an array index named in quotes is masked whole. A secret hardcoded into an array (
$config['password'] = '...',$headers['Authorization'] = 'Bearer ...') travelled in clear in a snippet, since the']between the name and the=matched none of the value shapes. A comparison with such an index counts as a value, as it does for a variable, since its other side may be the secret itself; an index that is a variable ($data[$key] = ...) is not read as a name.
Fixed
- A snippet line that calls a static method keeps its context. The first colon of
::read as a key separator, so any line naming a needle before one (Auth::user(),TokenMismatchException::expired()) was masked whole, the line of the throw included.::is a scope now. - A term is tried in its other spelling in a source line when a hyphen or an underscore sits inside it, between two letters or digits, so a hardcoded
'php-auth-pw' => '...'is masked underphp_auth_pw. The line itself is never rewritten, and a term that starts or ends with a separator keeps its one spelling, a configured one and a word ofScrubber::LINE_NEEDLESalike: the other one of WordPress'sdb_starts an ordinary word ('db-new'), the other one ofsk_ends one ('disk-usage').
Changed
Reporter::sendLogs()reaches the message of a log as well as its context, since the strings of the batch are opened: when a message starts with a URL or is JSON, the values it carries are masked by the rules of any other string, and the rest of its text is kept.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Security
- The reported URL is masked.
request.url, built fromRequest::getUri(), travelled whole, with a reset link's token in its query or its path. The query values thescrublist names become%5Bscrubbed%5Dnow, and so does every path segment made of forty letters or digits in a row. - The
hashof a login link and the_hashof a URL signed by theUriSignerare masked in the reported URL whatever thescrublist holds, with Azure'ssigandsignature: a login link works for whoever has it until it expires. The names are matched exactly and in an address only, so acontent_hashparameter, ahashkey and a line callinghash()stay. - A key spelled with hyphens is masked like its underscore spelling (
x-api-keyunderapi_key), and a JSON object or array written as a string is opened and masked by key instead of travelling as it came. signaturejoins the defaultscrublist, as in the Laravel SDK, and so doespassword_confirmation, whichpasswordalready covered.
Changed
- The core is required as
^0.3.1: the masking this release documents (hyphenated header names, JSON strings, URLs, signed-URL parameters) lives in that core, so it must never resolve with an older one. - The message of a forwarded log goes through the scrubber too: when it starts with a URL or is JSON, the values it carries are masked like a context value's, and the rest of its text is kept.
WordPress Plugin quiet-guard/monitor-wordpress
- Added:
signaturejoins the masked names, as in the other clients. A value under that name, or a source line that gives it a value, is masked. - Fixed: a name written with hyphens is masked like its underscore spelling (
api_keymasksx-api-key), and a source line tries a masked name in its other spelling when a hyphen or an underscore sits inside it.db_, which ends with one, keeps its own, so a line such as'db-new'stays readable. - Fixed: a source line that gives a value to an array index named in quotes, such as
$config['password'] = '...', is masked whole, and so is a comparison with one. The']between the name and the=let such lines travel in clear. - Fixed: a source line that calls a static method, such as
Auth::check(), is no longer masked whole. The first colon of::was read as the start of a value, so such lines were hidden, the line of the error included. - Changed: the bundled core is required as
^0.3.1.
v0.3.0
Laravel SDK quiet-guard/laravel-monitor
Added
- Stack traces start at the throw site and application frames carry a source snippet, the five lines on each side of the frame's line, so the dashboard shows the failing line in context.
MONITOR_CODE_SNIPPETS=falsesends file and line only. A line naming a key of thescrublist is masked whole. Dependencies never carry one. Requiresquiet-guard/monitor-phpwithSourceSnippet.
- The release is detected when
MONITOR_RELEASEis empty: from aREVISIONfile at the application root (what Capistrano, Deployer and most deploy scripts write), else from the checkout's own.git/HEAD, following a branch ref to its loose file or topacked-refs. The documentation used to sayMONITOR_RELEASE=${GIT_SHA}and nothing about where that value comes from, so most installations sent no release at all and the error to commit link in the dashboard never lit up.MONITOR_RELEASEstill wins when set;MONITOR_RELEASE_AUTO=falsesends only the configured value, for a server whose checkout is not the branch that runs. The files are read once per process. The configuration page now carries one recipe per deployment shape (Forge, Envoyer, GitHub Actions, Docker, plaingit pull).
PHP Core quiet-guard/monitor-php
Added
- Stack traces start at the throw site: the exception's own file and line travel as frame zero, the way Laravel's exception page shows them, since PHP's
getTrace()starts at the caller.trace_limitcounts that frame. - Application frames carry a source snippet (
code.start,code.lines): the five lines on each side of the frame's line, read from the file that ran, cut at 500 characters a line, at most ten frames a report, never a dependency's (SourceSnippet).Config::$codeSnippets(default true) switches it off. A line that names a secret (a scrub key, or one ofScrubber::LINE_NEEDLES:key,auth,credential,salt,private,dsn,bearer) AND gives it a value is masked whole, because source is where a hardcoded secret lives (Scrubber::scrubLines()); a line that only uses the name stays.wp-config.php,.env*,wp-includes/andwp-admin/never carry a snippet, andCut::payload()bounds snippet lines again after redaction, which lengthens them.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Added
- The
code_snippetsoption (defaulttrue): application frames carry a few lines of source around their line;falsesends file and line only. Requiresquiet-guard/monitor-phpwithSourceSnippet.
WordPress Plugin quiet-guard/monitor-wordpress
- Added: stack traces start at the throw site. The exception's own file and line travel as frame zero, since PHP's trace starts at the caller and never held the failing line.
trace_limitcounts that frame. - Added: application frames carry a source snippet, the five lines on each side of the frame's line, so the dashboard shows the failing line in context. WordPress core,
wp-config.phpand the dependencies never carry one, and a line that names a secret and gives it a value is masked whole. Thecode_snippetsoption key (default on) switches it off. - Changed: the bundled core is required as
^0.3.0.
v0.2.2
Laravel SDK quiet-guard/laravel-monitor
Fixed
MONITOR_URLis optional again, for real this time. v0.2.1 put the hosted address in the publishable config template, and the installation page tells every reader to publish that file: the copy is frozen at the version they installed and wins over the package's defaults, so the default reached nobody who had followed the guide, and would not have reached them aftercomposer updateeither. The address is resolved by the client now (QuietGuard\Monitor\Config::HOSTED_URL), applied wherever the value is read, and the template carries no address at all.Transportand the coreReportereach held their own copy of the trailing-/apistripping rule; both delegate to the one definition.- The client asks only for a key. An empty
MONITOR_URLused to silence it completely, which is not what an operator means by an empty value; useMONITOR_ENABLED=false, which says so.
Added
monitor:restore --file=<blob>decrypts a backup you already downloaded from the dashboard, instead of fetching its own copy. The Download button hands you the sealed.encblob, because that is all the server holds, and until now nothing could open it. The id becomes optional; without it there is no published checksum to compare against, and the command says so. Your file is never deleted.
PHP Core quiet-guard/monitor-php
Fixed
Configresolves and normalises the server address itself: an absent value becomes the hosted service (Config::HOSTED_URL), and a trailing/apior/api/vNsupplied by the caller is stripped, since every path carries its own.Reporterheld a second copy of that stripping rule and now reads the normalised value.isConfigured()asks for the key alone, the only thing that cannot be guessed.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Changed
- The
urloption is optional: left empty it resolves to the hosted service. The bundle's own source did not change; it builds the coreConfig, and the core now fills an absent address. Seturlonly to reach a self-hosted instance. Requiresquiet-guard/monitor-php^0.2.2.
WordPress Plugin quiet-guard/monitor-wordpress
- Fixed: the server URL is optional. The bundled core resolves an empty address to the hosted service, so a site only has to paste its project key.
v0.2.1
Laravel SDK quiet-guard/laravel-monitor
Security
- Payloads are masked before they are queued. With
MONITOR_QUEUEset, the masking ran on the wire only, so the raw exception and log payloads, with the email addresses, IBANs and card numbers the masking exists to catch, were serialised in clear into yourjobstable and permanently intofailed_jobs.
Added
MONITOR_URLdefaults tohttps://quietguard.dev. Pointing at the hosted service now needs a key and nothing else; set the variable to reach your own instance.monitor:backupslists what the vault holds for this project: id, type, name, size and date. The endpoint has existed since the vault shipped and no command could reach it, so an id lost after an upload could only be found in the dashboard, whilemonitor:restoretakes that id as its only argument.monitor:backup --keep=Ndeletes older backups of the same type after a successful upload. Nothing rotated anything before, so the nightly schedule the documentation recommends filled the plan allowance and then failed every night.
Fixed
- A failure says what happened.
monitor:dependencies,monitor:backupandmonitor:restoreprint the status, the address and the server's own sentence. "Encryption is not configured for this team" used to answer four different situations, three of which that advice does not fix. - An address that already ends in
/api/v1is accepted, and whitespace around it is ignored. The client appends/api/v1itself, so the other reading of the setting answered 404 on every call. MONITOR_QUEUEnames a queue CONNECTION, and an unknown one no longer stops reporting.default,monitoringorhighare not keys underqueue.connections, so the dispatch threw, the client swallowed it, and nothing was reported again. An unknown value now logs the valid connections and reports synchronously. This covers log batches too, where the failure was worse: the buffer is cleared before dispatch, so every flush lost its entries.- One bad line no longer sinks a whole log batch. The server refuses an empty message and one over 8192 characters, and refuses the entire batch with it, so a single line could lose the two hundred it travelled with. Long messages are trimmed, empty ones substituted, and
MONITOR_LOGS_MAX_BATCHis held to the server's own limit of 500, above which nothing was ever accepted. - Exception messages, class names, file paths and release strings are trimmed to the server's limits instead of being refused and lost. A query exception carries its whole SQL in its message, and an exception from an anonymous class carries the file path inside its class name.
monitor:restorecompares the checksum the server publishes before it decrypts. A damaged download used to fail with the same message as a wrong passphrase, and those two do not get fixed the same way.monitor:backup --databaseno longer locks the database it is backing up:mysqldumpruns with--single-transaction,--no-tablespacesso a least-privileged user is enough, and--default-character-set=utf8mb4. A failed sqlite copy is detected instead of producing an empty archive.- A dump or an archive cut short by a full disk fails instead of being uploaded and reported as a success. A database backup needs about twice the dump size free in the temporary directory, once for the dump and once for the encrypted copy, and the message says so.
monitor:backupchecks its own options before the network call, so running it with none names the missing option rather than the encryption key.- The queued jobs fail when the send failed, so the two attempts they declare are real. They completed silently whatever the server answered.
Changed
- Requires
quiet-guard/monitor-php^0.2.1.
PHP Core quiet-guard/monitor-php
Fixed
- A refused report is no longer silent. Any non-2xx answer is logged through the PSR-3 logger with the status and the address it was sent to. The previous version could only speak from a
catch, and the bundled cURL client never throws, so an invalid key, a suspended account and a refused payload all produced nothing at all. - The configured server address is trimmed, and an address that already ends in
/apior/api/v1is accepted. Every method appends/api/v1itself, so supplying the API address, which is how the setting is often read, used to answer 404 on every call and look exactly like a wrong key. - Exception messages over 8192 characters, class names over 255, file paths over 1024 and release strings over 255 are trimmed with a visible marker instead of being refused by the server and lost. The trim is the last thing applied before sending, after masking, because masking replaces a value with a longer label and a payload trimmed before it could come back over the limit.
- French social security numbers from Corsica are masked. The pattern accepted
2Aand2Bas a department while the check digit was computed on digits alone, which left fourteen characters where fifteen are required, so the check always failed and the number travelled in clear. - An encrypted backup cut short by a full disk now fails where it is written. Every write is compared against what it was asked to write, and the closing flush is checked, on both the encrypting and the decrypting side. A truncated archive used to be produced, uploaded and reported as a success, and found out months later at restore time.
Changed
ErrorHandler::register()reports userland fatals and recoverable errors by default rather than every notice and warning, reports one site once, and stops at twenty reports. It forwarded every severity as one blocking HTTP request each, so a single warning inside a loop was hundreds of requests in one page load. PassE_ALLas the second argument to restore the previous reach, and a count as the third to change the ceiling. The two counters are per registration: a host that registers once per request gets a per-request budget, and a long-running process should register per unit of work.
Added
Support\Cut, the one definition of the server's field limits, usable directly when you build a payload yourself.
Symfony Bundle quiet-guard/monitor-symfony-bundle
Fixed
enabled: falseno longer breaks container compilation. Switching the bundle off defined no services at all, so aconfig/packages/dev/monitor.yamloverride, which is the obvious way to do it, failed with "You have requested a non-existent service monitor.log_handler" whenever a Monolog handler pointed at it. The services are always defined and the switch acts at runtime.- The reporter receives the application logger when the container has one. It was constructed without it, and the logger is the only thing in this bundle that emits a diagnostic, so a wrong key or a wrong address produced nothing anywhere. With the core this release requires, a refused report also names its status and address.
logs.max_batchis held to the server's limit of 500 at send time. A larger value was accepted here and refused on every send, so nothing arrived. It is clamped rather than refused at compile time, so an application that boots today still boots.
Added
redactandredact_customare configurable. Value masking has been on by default since the bundle shipped, declared in no configuration tree, so any attempt to change it failed compilation with "Unrecognized option" and[redacted:phone]in a message could not be explained or turned off. An emptyredactlist disables it; the default is the shared list of shapes.
Changed
- Requires
quiet-guard/monitor-php^0.2.1.
WordPress Plugin quiet-guard/monitor-wordpress
- Fixed: a wrong key, a wrong server address or a refused report now writes a
[Quiet Guard]line to the PHP error log, which iswp-content/debug.logwhereWP_DEBUG_LOGis on. Until now every one of those failed in complete silence, with nothing to see anywhere. - Changed: only uncaught exceptions, fatal shutdowns and userland fatal errors are reported. Notices and warnings are not, and there is no setting to restore them. Each one was a blocking HTTP request during page rendering, so one warning inside a loop over five hundred rows was five hundred requests in a single page load.
- Changed: the same error on the same line is reported once, and a request stops at twenty reports.
- Fixed: an exception message, class name or file path too long for the server now arrives trimmed instead of being refused and lost.
- Fixed: French social security numbers from Corsica are masked before sending. The check digit was computed in a way that could never succeed for them, so they travelled in clear.
- Fixed: a server address that already ends in
/api/v1is accepted, and surrounding whitespace is ignored. - Changed: requires PSR-3 version 2 or 3. The bundled logger is typed and cannot run against version 1.
v0.2.0
WordPress Plugin quiet-guard/monitor-wordpress
- Changed: the Composer package and the PHP namespaces moved to Quiet Guard. Update the package name in your
composer.jsonand anyQuietGuard\imports; the wp-admin screen, the stored options and the plugin slug are unchanged.
v0.1.0
WordPress Plugin quiet-guard/monitor-wordpress
- Initial release: global exception, error and fatal-shutdown capture forwarded to a Quiet Guard server, with a wp-admin settings screen (server URL, project key, release, enable switch) and key-based context scrubbing.