docs: Document Trusted Hosts validation and input formats#699
Conversation
Expand documentation for the Trusted Hosts configuration setting to: - Explain that regex patterns are required, not plain hostnames - Provide correct and incorrect examples - Document the new validation behavior that prevents invalid patterns - Add a caution warning about lockout risk Related to mautic/mautic PR #16006.
The previous documentation incorrectly stated that Trusted Hosts requires regex patterns only. The merged PR #16006 actually accepts both: - Plain domain names (e.g., mautic.yourdomain.com) - Regex patterns for advanced matching (e.g., .*\.?trusted.com$) Also removes duplicate entries that were incorrectly placed in both CORS settings and Miscellaneous settings sections.
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the suggestions.
Apply reviewer suggestions to remove "will" and use more direct active voice in the Trusted Hosts validation documentation.
|
I've addressed the review feedback:
Both changes remove "will" and use more direct, active phrasing as requested. |
|
Thanks for the review! Ready for merge when you are. |
adiati98
left a comment
There was a problem hiding this comment.
@promptless-for-oss please address the suggestions.
- Use 'regular expression' instead of 'regex' per Vale style guide - Fix caution admonition indentation to 3 spaces
|
I've addressed the review feedback:
The changes have been pushed to this branch. Ready for another review when you have a moment. |
Change "where your Mautic is installed" to "where you installed Mautic" per reviewer request.
|
I've applied the active voice change:
Ready for review. |
Changed domain examples in Trusted hosts documentation for consistency: - mautic.yourdomain.com → mautic.example.com - trusted.com → example.com in regular expression examples
|
I've applied your feedback for URL example consistency:
This aligns with the Ready for review. |
Avoids word repetition since example.com is already used in the text.
|
I've applied your feedback to avoid word repetition:
This avoids repeating "example" since Ready for review. |
Open this suggestion in Promptless to view citations and reasoning process
Documents the Trusted Hosts configuration field validation behavior added in PR #16006.
Changes
docs/configuration/settings.rst
mautic.yourdomain.com) and regex patterns for advanced matchingContext
PR #16006 fixes issue #15743 by adding validation to the Trusted Hosts field. The validation accepts valid domain names or valid regex patterns, and prevents users from saving invalid values that could lock them out of Mautic.
Tip: Set up a GitHub Issues trigger in Projects to enable @Promptless mentions in issues 🐙