~hloeung/content-cache-charm:cleanup

Last commit made on 2021-02-25
Get this branch:
git clone -b cleanup https://git.launchpad.net/~hloeung/content-cache-charm
Only Haw Loeung can upload to this branch. If you are Haw Loeung please log in for upload directions.

Branch merges

Branch information

Name:
cleanup
Repository:
lp:~hloeung/content-cache-charm

Recent commits

1b9e0f3... by Haw Loeung on 2021-02-25

Be sure to clean up .juju-persistent-config, especially when building charms

9e1d668... by Haw Loeung on 2021-02-09

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397710
Reviewed-by: Paul Collins <email address hidden>

2b3f15b... by Haw Loeung on 2021-02-09

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

e96904c... by Haw Loeung on 2021-02-09

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397708
Reviewed-by: Paul Collins <email address hidden>

0d24b87... by Haw Loeung on 2021-02-09

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

This reverts commit 3bd2938698a7bdad5ada38ac84c635108749fc43.

3fcb042... by Haw Loeung on 2021-02-09

Use 'http-check send hdr' instead of adding headers at end of httpchk version

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397703
Reviewed-by: Colin Misare <email address hidden>

3bd2938... by Haw Loeung on 2021-02-09

Use 'http-check send hdr' instead of adding headers at end of httpchk version

This fixes the warning about it:

| [WARNING] 038/222205 (17722) : parsing [/etc/haproxy/haproxy.cfg:94]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.

ecc5578... by Haw Loeung on 2021-02-08

Introduce new header X-Cache-Request-IP and log that

This prevents spoofing of X-Forward-For or any additional hops from
being logged.

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397698
Reviewed-by: Colin Misare <email address hidden>

9e2a612... by Haw Loeung on 2021-02-08

Introduce new header X-Cache-Request-IP and log that

This prevents spoofing of X-Forward-For or any additional hops from
being logged.

66c3a16... by Haw Loeung on 2021-02-08

Exclude 127.0.0.1 from X-Forward-For headers

Newer HAProxy, as seen with upgrade from 2.2.3 to 2.2.9, includes
127.0.0.1 in the X-Forward-For headers. This gets logged by Nginx.