Skip to content

Commit cf7c9e9

Browse files
kenjisMGatner
authored andcommitted
docs: add changelog and upgrading guide
1 parent 285c062 commit cf7c9e9

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.2.11.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ Release Date: December 21, 2022
99
:local:
1010
:depth: 2
1111

12+
SECURITY
13+
********
14+
15+
- *Attackers may spoof IP address when using proxy* was fixed. See the `Security advisory GHSA-ghw3-5qvm-3mqc <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-ghw3-5qvm-3mqc>`_ for more information.
16+
17+
BREAKING
18+
********
19+
20+
- The ``Config\App::$proxyIPs`` value format has been changed. See :ref:`Upgrading Guide <upgrade-4211-proxyips>`.
21+
1222
Bugs Fixed
1323
**********
1424

user_guide_src/source/installation/upgrade_4211.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ Please refer to the upgrade instructions corresponding to your installation meth
1212
:local:
1313
:depth: 2
1414

15+
Breaking Changes
16+
****************
17+
18+
.. _upgrade-4211-proxyips:
19+
20+
Config\\App::$proxyIPs
21+
======================
22+
23+
The config value format has been changed. Now you must set your proxy IP address and the HTTP header name for the client IP address pair as an array::
24+
25+
public $proxyIPs = [
26+
'10.0.1.200' => 'X-Forwarded-For',
27+
'192.168.5.0/24' => 'X-Forwarded-For',
28+
];
29+
30+
``ConfigException`` will be thrown for old format config value.
31+
1532
Project Files
1633
*************
1734

0 commit comments

Comments
 (0)