Skip to content

Commit eedf273

Browse files
authored
Update instructions (#3220)
1 parent 6e1f4ea commit eedf273

3 files changed

Lines changed: 89 additions & 8 deletions

File tree

docs/update_and_migration/from_4.6/update_from_4.6.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,78 @@ Run the provided SQL upgrade script to update your database:
664664
psql <database_name> < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-4.6.28-to-4.6.29.sql
665665
```
666666

667+
## v4.6.30
668+
669+
### Update Twig to v3.26.0
670+
671+
For security reasons, it's highly recommenced to update `twig/twig` and `twig/intl-extra` to version v3.26.0 or higher.
672+
673+
For more information, see the following security advisories:
674+
675+
* [PKSA-5k7f-wvjj-jrgw](https://packagist.org/security-advisories/PKSA-5k7f-wvjj-jrgw)
676+
* [PKSA-sjvz-tbbr-vwth](https://packagist.org/security-advisories/PKSA-sjvz-tbbr-vwth)
677+
* [PKSA-h8hf-ytnd-5t9q](https://packagist.org/security-advisories/PKSA-h8hf-ytnd-5t9q)
678+
* [PKSA-wwb1-81rc-pd65](https://packagist.org/security-advisories/PKSA-wwb1-81rc-pd65)
679+
* [PKSA-hgmw-wn4d-hpcy](https://packagist.org/security-advisories/PKSA-hgmw-wn4d-hpcy)
680+
* [PKSA-kvv6-36cr-fkzb](https://packagist.org/security-advisories/PKSA-kvv6-36cr-fkzb)
681+
* [PKSA-n14z-jjjg-g8vd](https://packagist.org/security-advisories/PKSA-n14z-jjjg-g8vd)
682+
* [PKSA-3mcc-k66d-pydb](https://packagist.org/security-advisories/PKSA-3mcc-k66d-pydb)
683+
* [PKSA-gw7n-z4yx-7xjt](https://packagist.org/security-advisories/PKSA-gw7n-z4yx-7xjt)
684+
* [PKSA-dpx1-78wg-1kqs](https://packagist.org/security-advisories/PKSA-dpx1-78wg-1kqs)
685+
* [PKSA-21g2-dzjv-sky5](https://packagist.org/security-advisories/PKSA-21g2-dzjv-sky5)
686+
* [PKSA-yhcn-xrg3-68b1](https://packagist.org/security-advisories/PKSA-yhcn-xrg3-68b1)
687+
* [PKSA-2wrf-1xmk-1pky](https://packagist.org/security-advisories/PKSA-2wrf-1xmk-1pky)
688+
* [PKSA-6319-ffpf-gx66](https://packagist.org/security-advisories/PKSA-6319-ffpf-gx66)
689+
* [PKSA-n7sg-8f52-pqtf](https://packagist.org/security-advisories/PKSA-n7sg-8f52-pqtf)
690+
* [PKSA-8kk8-h2xr-h5nx](https://packagist.org/security-advisories/PKSA-8kk8-h2xr-h5nx)
691+
* [PKSA-2rbx-bjdx-4d4d](https://packagist.org/security-advisories/PKSA-2rbx-bjdx-4d4d)
692+
693+
To use these packages in versions not affected by security vulnerabilities, PHP 8.1 is the minimum required version.
694+
695+
For projects meeting this requirement, you can update the packages with Composer.
696+
697+
If you're using PHP 7.4 or 8.0, to do the [[= product_name =]] update, you have two options:
698+
699+
#### Update PHP, the custom code, then the platform (recommended)
700+
701+
Make sure to use on PHP 8.1 or higher.
702+
Migrate custom code to be compatible with PHP 8.1 or higher, for example by using [Rector](https://github.com/rectorphp/rector).
703+
Then, update Ibexa DXP.
704+
705+
#### Implement other countermeasures
706+
707+
If updating the Twig packages isn't possible, for example, because the project is using PHP 7.4 or 8.0 where the fixes are not available, review the security issues carefully and assess the danger.
708+
709+
If you choose to implement countermeasures without upgrading PHP and updating Twig, you can silence the advisories in `composer.json`:
710+
711+
```json
712+
"config": {
713+
"audit": {
714+
"ignore": {
715+
"PKSA-5k7f-wvjj-jrgw": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
716+
"PKSA-sjvz-tbbr-vwth": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
717+
"PKSA-h8hf-ytnd-5t9q": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
718+
"PKSA-wwb1-81rc-pd65": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
719+
"PKSA-hgmw-wn4d-hpcy": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
720+
"PKSA-kvv6-36cr-fkzb": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
721+
"PKSA-n14z-jjjg-g8vd": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
722+
"PKSA-3mcc-k66d-pydb": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
723+
"PKSA-gw7n-z4yx-7xjt": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
724+
"PKSA-dpx1-78wg-1kqs": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
725+
"PKSA-21g2-dzjv-sky5": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
726+
"PKSA-yhcn-xrg3-68b1": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
727+
"PKSA-2wrf-1xmk-1pky": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
728+
"PKSA-6319-ffpf-gx66": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
729+
"PKSA-n7sg-8f52-pqtf": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
730+
"PKSA-8kk8-h2xr-h5nx": "Description of the countermeasures you've implemented causing this one to be safe to ignore.",
731+
"PKSA-2rbx-bjdx-4d4d": "Description of the countermeasures you've implemented causing this one to be safe to ignore."
732+
}
733+
}
734+
}
735+
```
736+
737+
In addition, consider upgrading your project to one of [the actively supported PHP versions](requirements.md#php).
738+
667739
## LTS Updates
668740

669741
[LTS Updates](https://doc.ibexa.co/en/4.6/ibexa_products/editions/#lts-updates) are standalone packages with their own update procedures.

docs/update_and_migration/from_5.0/update_from_5.0.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,21 @@ Run the provided SQL upgrade script to update your database:
448448
psql <database_name> < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-5.0.6-to-5.0.7.sql
449449
```
450450

451+
## v5.0.8
452+
453+
### VCL configuration
454+
455+
When using Varnish or Fastly, update your [VCL files](reverse_proxy.md#vcl-base-files) to align with the ones from [`vendor/ibexa/http-cache/docs/varnish/vcl/`](https://github.com/ibexa/http-cache/tree/v5.0.8/docs/varnish/vcl) or `vendor/ibexa/fastly/fastly/`,
456+
especially if you plan to use the [Anonymous user segmentation in [[= product_name_cdp =]]](https://doc.ibexa.co/en/5.0/cdp/cdp_activation/cdp_configuration/#anonymous-user-segmentation).
457+
Make sure it contains the highlighted addition:
458+
459+
``` vcl hl_lines="2 3"
460+
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa[-_][^=]*)=", "; \1=");
461+
// Keep the Raptor anonymous visitor identifier cookie so CDP segmentation can resolve visitor segments.
462+
set req.http.cookie = regsuball(req.http.cookie, ";(rsa)=", "; \1=");
463+
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
464+
```
465+
451466
## LTS Updates and additional packages
452467

453468
[LTS Updates](editions.md#lts-updates) are standalone packages with their own update procedures.
@@ -488,9 +503,3 @@ To use the [latest features](ibexa_dxp_v5.0.md) added to them, update them separ
488503
```bash
489504
composer require ibexa/fieldtype-richtext-rte:[[= latest_tag_5_0 =]] ibexa/ckeditor-premium:[[= latest_tag_5_0 =]]
490505
```
491-
492-
=== "Shopping list"
493-
494-
### Shopping list [[% include 'snippets/lts-update_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
495-
496-
To learn more about the [Shopping list](shopping_list_guide.md), see the [installation and configuration instructions](install_shopping_list.md).

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,8 @@ extra:
10371037
latest_tag_4_3: '4.3.5'
10381038
latest_tag_4_4: '4.4.4'
10391039
latest_tag_4_5: '4.5.7'
1040-
latest_tag_4_6: '4.6.29'
1041-
latest_tag_5_0: '5.0.7'
1040+
latest_tag_4_6: '4.6.30'
1041+
latest_tag_5_0: '5.0.8'
10421042

10431043
symfony_doc: 'https://symfony.com/doc/7.4'
10441044
user_doc: 'https://doc.ibexa.co/projects/userguide/en/5.0'

0 commit comments

Comments
 (0)