]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: Update cookie domain warn to RFC6265
authorJoao Morais <jcmoraisjr@gmail.com>
Thu, 31 Oct 2019 00:04:00 +0000 (21:04 -0300)
committerWilly Tarreau <w@1wt.eu>
Thu, 31 Oct 2019 05:06:52 +0000 (06:06 +0100)
commite1583751b67704f297060afaabe87fd7d8d602a2
tree9cc25475c9e4050c736e05019a1f489e90fb8751
parent1dccfbeb5bfd1ff396642268d98128a691accff5
BUG/MINOR: config: Update cookie domain warn to RFC6265

The domain option of the cookie keyword allows to define which domain or
domains should use the the cookie value of a cookie-based server
affinity. If the domain does not start with a dot, the user agent should
only use the cookie on hosts that matches the provided domains. If the
configured domain starts with a dot, the user agent can use the cookie
with any host ending with the configured domain.

haproxy config parser helps the admin warning about a potentially buggy
config: defining a domain without an embedded dot which does not start
with a dot, which is forbidden by the RFC.

The current condition to issue the warning implements RFC2109. This
change updates the implementation to RFC6265 which allows domain without
a leading dot.

Should be backported to all supported versions. The feature exists at least
since 1.5.
src/cfgparse-listen.c