couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

feat: add same_site = none_secure option

Open janl opened this issue 5 years ago • 4 comments

c.f. https://web.dev/samesite-cookies-explained/

also https://github.com/apache/couchdb/discussions/3012

janl avatar Sep 07 '20 11:09 janl

I’d be happy to bike shed this to make it its own config variable cookie_secure = bool and folks who want both can set both, this was the least effort way to propose a change tho :)

janl avatar Sep 07 '20 12:09 janl

hm, the secure flag is added automatically if couchdb is serving a TLS response. If something else is doing TLS (like haproxy) then it should also add the secure flag.

rnewson avatar Sep 07 '20 12:09 rnewson

I'm -1 on this on principle, but please update the PR if I'm missing something obvious.

rnewson avatar Sep 07 '20 13:09 rnewson

This might still be useful for scenarios where folks are behind proxies where they can’t add the Secure flag to the Set-Cookie header dynamically, and if they don’t want to go through the particular fun of setting up TLS with CouchDB itself.

But unless we have folks reporting they are in this situation, I’m happy to hold off on this.

janl avatar Sep 07 '20 14:09 janl