Trusted host patterns are not declared in the observed settings file
Reviewed Implementation Rule reviewed rule evaluated against project evidence
A reviewed rule whose authority is a pinned authoritative source. It says what to look for; it says nothing until evidence settles it.
Drupal's trusted host mechanism is enabled by declaring $settings['trusted_host_patterns']. No such declaration was observed in the settings files this analysis read.
Record security.trusted-host-patterns-not-declared
What this is
- What is this
- reviewed rule evaluated against project evidence: Trusted host patterns are not declared in the observed settings file
- Why it exists
- A reviewer tied an authoritative Drupal statement to a condition that project evidence can settle.
- What makes it authoritative
- A reviewed rule whose authority is a pinned authoritative source. It says what to look for; it says nothing until evidence settles it.
- Project scope
- This record is scoped to the context it names and is not a Drupal-wide rule.
- Recommended next step
- Evaluate it against a project with `dk implementation-findings`.
- Was anything changed
- No. Querying Drupal Knowledge changes nothing.
What is not known
- Nothing was left unstated by this record.
What the record states
| Category | security |
|---|---|
| Context requirements | config.settings_declaration |
| Enforcement intent | guidance |
| Review status | reviewed |
| Scope | component: settings.php, drupal_core_minimum_major: 8, notes: The Symfony trusted host mechanism is used from Drupal 8 onwards. |
| Severity state | not_established |
Provenance
The snapshot digest identifies the exact bytes this record was derived from, so the claim can be checked rather than believed.
- authoritative_source · drupal-trusted-host-settings
https://www.drupal.org/docs/installing-drupal/trusted-host-settings
snapshotsha256:11e4f4be0c3b46177c5f8fa6ad0fa7d76bba3fd08f61d9b06252b930b0f7f407 - authoritative_source · drupal-default-settings-php
https://api.drupal.org/api/drupal/sites%21default%21default.settings.php/11
snapshotsha256:1e2df3981d9cc138fa916171a710909b3e6922ebd978252b453b903e540b4a39
Related records
Only relationships the canonical records already declare. Nothing here is inferred.