Skip to content
Corex

ProviderTestLog

Corex\Config\Settings\ProviderTestLog · class · Config layer

The latest test of each provider’s keys (spec 119, US-SET-03, FR-016, FR-017). A failed test left no trace, so a wrong key was found by a visitor. Each record keeps when the test ran, whether the keys worked and the reason in words, and a one-way fingerprint of the values the test used: an HMAC with the site’s salt, so the record cannot be turned back into a key. When any of those values changes, here or in the site’s .env, the fingerprint no longer matches and the provider reads “Not tested yet” again. No key is ever stored.

record(string $provider, bool $worked, string $reason, int $at): void

Section titled “record(string $provider, bool $worked, string $reason, int $at): void”

latest(string $provider): ?ProviderTestRecord

Section titled “latest(string $provider): ?ProviderTestRecord”

The latest test of the values in force, or null when they were never tested.