Skip to content

Configure trusted proxies - #428

Merged
jbrooksuk merged 2 commits into
mainfrom
codex/fix-trusted-proxies
Aug 13, 2026
Merged

Configure trusted proxies#428
jbrooksuk merged 2 commits into
mainfrom
codex/fix-trusted-proxies

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

  • configure Laravel's built-in proxy middleware from CACHET_TRUSTED_PROXIES
  • preserve * so forwarded HTTPS schemes are trusted correctly
  • add regression coverage for HTTPS forwarded by a trusted proxy

Root cause

The Cachet application converted * to ['*'], which Laravel treats as a literal IP instead of its all-proxies wildcard. That caused Livewire to generate HTTP update URLs behind TLS-terminating proxies.

Validation

  • vendor/bin/pest tests/Feature/TrustedProxiesTest.php
  • vendor/bin/pint --test

The full Core suite was also attempted, but the environment's 128 MB PHP memory limit exhausted in unrelated tests.

@jbrooksuk
jbrooksuk marked this pull request as ready for review August 11, 2026 18:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17cd20b399

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/Feature/TrustedProxiesTest.php
@jbrooksuk
jbrooksuk force-pushed the codex/fix-trusted-proxies branch from 01a87d6 to 39a9f1e Compare August 13, 2026 08:29
@jbrooksuk
jbrooksuk merged commit bdbea5d into main Aug 13, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the codex/fix-trusted-proxies branch August 13, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant