-
Notifications
You must be signed in to change notification settings - Fork 549
Upgrade caddy #828
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade caddy #828
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to test this release a little more thoroughly.
From the CHANGELOG:
⚠️ Reverse proxy: Incoming X-Forwarded-* headers will no longer be automatically trusted, to prevent spoofing. Now, trusted_proxies must be configured to specify a list of downstream proxies which are trusted to have sent good values. You only need to configure trusted proxies if Caddy is not the first server being connected to. For example, if you have Cloudflare in front of Caddy, then you should configure this with Cloudflare's list of IP ranges.
We may have to provide some documentation guidance for our customers if they're in this position.
I think we could probably copy/paste this notice into the Docker Compose upgrade notes and let CE know about this inbound change.
Accompanying release note: https://github.com/sourcegraph/sourcegraph/pull/37270 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and added release note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting a soft block on this, we need to update a good chunk of docs before we can ship this.
I started typing up a courtesy message for CE and realized we have a lot to communicate.
@kevinwojo I updated the example docker-compose file and added a sample file for |
This is on my list to test today. I am preparing a few internal examples to share with the team internally that we can use for validation of config syntax. Admittedly the Caddyfile syntax is a little nebulous ... documentation is hard to grok. |
Paired with @kevinwojo on this, determined that although we don't use the I suggest we modify these caddy files to be
|
@sourcegraph/security for approval of this approach |
Spoke with @andreeleuterio offline, and he approved this approach. I will commit and merge this. |
Validated with docker-compose up
CI is unfortunately borked here 😢 |
This patches CVE-2021-42377 and CVE-2020-28928.
Checklist
Test plan
trusted_proxies
setting, I think this is safe.