geerlingguy / geerlingguy/drupal-for-kubernetes

Configure trusted host settings in Docker container environment

Open
#34 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
177
Forks
53
PR merge metrics
No merged PRs in 30d

Description

From the Status report page (https://www.pidramble.com/admin/reports/status):

Not enabled
The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

I should add a setting for www.pidramble.com in production, or localhost locally.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Drupal status report and the project's settings.php configuration, then read the linked trusted host settings guidance. Determine how production and local container environments provide their host values. Done means the appropriate host setting is configured for each environment and the status report no longer warns that trusted_host_patterns is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, kubernetes, php
Domain
backend, devops, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.