Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Documented how to configure Symfony correctly with regards to the Forwarded header#6526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
magnusnordlander wants to merge3 commits intosymfony:2.7fromfervo:proxy-trust

Conversation

@magnusnordlander
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies to>2.7
Fixed tickets

Ref:symfony/symfony#18688

your reverse proxy is not handling the Forwardedheader the way Symfony expects it to.
in the Symfony configuration so that Varnish is seen as a trusted proxy and the
:ref:`X-Forwarded<varnish-x-forwarded-headers>` headers are used.

Varnish, in its' default configuration, sends the ``X-Forwarded-For`` header but
Copy link
Member

Choose a reason for hiding this comment

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

its' ->its

@javiereguiluz
Copy link
Member

👍 nice additions to an important topic which is probably underdocumented. Thanks@magnusnordlander

Varnish, in its default configuration, sends the ``X-Forwarded-For`` header but
does not filter out the ``Forwarded`` header. If you have access to the Varnish
configuration file, you can configure Varnish to remove the ``Forwarded``
header::
Copy link
Member

Choose a reason for hiding this comment

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

One of the colons needs to be removed to make the build happy. :)

@fabpot
Copy link
Member

👍

stored in a ``X-Forwarded-Host`` header.
headers or the ``Forwarded`` header. For example, the ``Host`` HTTP header is
usually used to returnthe requested host. But when you're behind a proxy,
the true host may bestored in a ``X-Forwarded-Host`` header.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe replace "true host" with "actual host" here? (my dev. mind strongly binds true to a boolean value)

@wouterj
Copy link
Member

Thanks@magnusnordlander! I've left a lot of very minor comments. It would be great if you can fix these, otherwise we'll do it while merging.

xabbuh added a commit that referenced this pull requestMay 9, 2016
…s to the Forwarded header (magnusnordlander)This PR was squashed before being merged into the 2.7 branch (closes#6526).Discussion----------Documented how to configure Symfony correctly with regards to the Forwarded header| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | >2.7| Fixed tickets |Ref:symfony/symfony#18688Commits-------87ab598 Documented how to configure Symfony correctly with regards to the Forwarded header
xabbuh added a commit that referenced this pull requestMay 9, 2016
@xabbuh
Copy link
Member

Thank you@magnusnordlander! I have squashed your commits while merging and made some minor tweaks in574afd5.

@xabbuhxabbuh closed thisMay 9, 2016
xabbuh added a commit that referenced this pull requestMay 9, 2016
* 2.7:  [#6526] some minor tweaks  Documented how to configure Symfony correctly with regards to the Forwarded header  Improved the description of the Twig global variables  Add a warning about using same user for cli and web server  Correctly document new twig functions  Updated Twig template to take into account asset() function changes  [DependencyInjection] Unquote services FQCN in parent-services examples
xabbuh added a commit that referenced this pull requestMay 9, 2016
* 2.8:  [#6526] some minor tweaks  Documented how to configure Symfony correctly with regards to the Forwarded header  Improved the description of the Twig global variables  Add a warning about using same user for cli and web server  Correctly document new twig functions  Updated Twig template to take into account asset() function changes  [DomCrawler] Removed references to CssSelector  [DependencyInjection] Unquote services FQCN in parent-services examples  [DependencyInjection] Unquote services FQCN in autowiring examples
xabbuh added a commit that referenced this pull requestMay 9, 2016
* 3.0:  [#6526] some minor tweaks  Documented how to configure Symfony correctly with regards to the Forwarded header  Improved the description of the Twig global variables  Add a warning about using same user for cli and web server  Correctly document new twig functions  Updated Twig template to take into account asset() function changes  [DomCrawler] Removed references to CssSelector  [DependencyInjection] Unquote services FQCN in parent-services examples  [DependencyInjection] Unquote services FQCN in autowiring examples
fabpot added a commit to symfony/symfony that referenced this pull requestJun 29, 2016
…nd X-Forwarded-For (magnusnordlander)This PR was squashed before being merged into the 2.7 branch (closes#18688).Discussion----------[HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#6526Emit a warning when a request has both a trusted Forwarded header and a trusted X-Forwarded-For header, as this is most likely a misconfiguration which causes security issues.Commits-------ee8842f [HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestJun 29, 2016
…nd X-Forwarded-For (magnusnordlander)This PR was squashed before being merged into the 2.7 branch (closes #18688).Discussion----------[HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#6526Emit a warning when a request has both a trusted Forwarded header and a trusted X-Forwarded-For header, as this is most likely a misconfiguration which causes security issues.Commits-------ee8842f [HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For
symfony-splitter pushed a commit to symfony/http-kernel that referenced this pull requestJun 29, 2016
…nd X-Forwarded-For (magnusnordlander)This PR was squashed before being merged into the 2.7 branch (closes #18688).Discussion----------[HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#6526Emit a warning when a request has both a trusted Forwarded header and a trusted X-Forwarded-For header, as this is most likely a misconfiguration which causes security issues.Commits-------ee8842f [HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For
symfony-splitter pushed a commit to symfony/http-foundation that referenced this pull requestJun 29, 2016
…nd X-Forwarded-For (magnusnordlander)This PR was squashed before being merged into the 2.7 branch (closes #18688).Discussion----------[HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |symfony/symfony-docs#6526Emit a warning when a request has both a trusted Forwarded header and a trusted X-Forwarded-For header, as this is most likely a misconfiguration which causes security issues.Commits-------ee8842f [HttpFoundation] Warning when request has both Forwarded and X-Forwarded-For
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@magnusnordlander@javiereguiluz@fabpot@wouterj@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp