|
1 | | -.. include:: /Includes.rst.txt |
2 | | -.. index:: |
3 | | - Security guidelines; Checksums |
4 | | - Security guidelines; Package integrity |
5 | | -.. _security-integrity-packages: |
6 | | - |
7 | | -=========================== |
8 | | -Integrity of TYPO3 Packages |
9 | | -=========================== |
10 | | - |
11 | | -In order to ensure that the downloaded TYPO3 package is an official |
12 | | -package released by the TYPO3 developers, compare the `SHA2-256` checksum of |
13 | | -the downloaded package with the checksum stated on the TYPO3 website, |
14 | | -before you extract/install TYPO3. You find the `SHA2-256` checksums on |
| 1 | +:navigation-title: Code Integrity |
| 2 | + |
| 3 | +.. include:: /Includes.rst.txt |
| 4 | +.. _security-integrity-packages: |
| 5 | + |
| 6 | +=============================== |
| 7 | +Verify integrity of TYPO3 code |
| 8 | +=============================== |
| 9 | + |
| 10 | +Ensuring that the TYPO3 source code has not been tampered with is very important |
| 11 | +for security reasons. TYPO3 can either be installed via Composer or by downloading |
| 12 | +a prebuilt package. Each method requires different integrity checks. |
| 13 | + |
| 14 | +.. _security-integrity-packages-composer: |
| 15 | + |
| 16 | +Composer-based installations |
| 17 | +============================ |
| 18 | + |
| 19 | +When using Composer, TYPO3 and its dependencies are downloaded directly by |
| 20 | +Composer from trusted sources such as `packagist.org` and `packages.typo3.org`. |
| 21 | + |
| 22 | +To ensure source integrity: |
| 23 | + |
| 24 | +- Use official TYPO3 packages (for example :composer:`typo3/cms-base-distribution`) |
| 25 | +- Commit the :file:`composer.lock` file to track versions and sources |
| 26 | +- Keep Composer and your system's trusted certificate store (CA certificates) |
| 27 | + up to date to ensure secure HTTPS connections when downloading packages. |
| 28 | + |
| 29 | +Composer ensures a secure and verifiable dependency management workflow. It is |
| 30 | +recommended to run Composer locally or in a |
| 31 | +`CI pipeline <https://docs.typo3.org/permalink/t3coreapi:ci-cd-for-typo3-projects>`_, |
| 32 | +and `deploy <https://docs.typo3.org/permalink/t3coreapi:deployment>`_ only the |
| 33 | +prepared files - including the :directory:`vendor/` directory - |
| 34 | +to the production environment. |
| 35 | + |
| 36 | +.. _security-integrity-packages-classic: |
| 37 | + |
| 38 | +Classic (non-Composer) installations |
| 39 | +==================================== |
| 40 | + |
| 41 | +If installing TYPO3 via a downloaded archive (ZIP, tar.gz), verify the |
| 42 | +SHA2-256 checksum before extracting. Only download from the official site: |
15 | 43 | `get.typo3.org <https://get.typo3.org>`_. |
16 | 44 |
|
17 | | -Be careful when using pre-installed or pre-configured packages by |
18 | | -other vendors: due to the nature and complexity of TYPO3 the system |
19 | | -requires configuration. Some vendors offer download-able packages, |
20 | | -sometimes including components such as Apache, MySQL, PHP and TYPO3, |
21 | | -easy to extract and ready to launch. This is a comfortable way to set |
22 | | -up a test or development environment very quickly but it is difficult |
23 | | -to verify the integrity of the components – for example the integrity |
24 | | -of TYPO3. |
25 | | - |
26 | | -A similar thing applies to web environments offered by hosting |
27 | | -companies: system images sometimes include a bunch of software |
28 | | -packages, including a CMS. It depends on the specific project and if |
29 | | -you can trust the provider of these pre-installed images, systems, |
30 | | -packages – but if you are in doubt, use the official TYPO3 packages |
31 | | -only. For a production site in particular, you should trust the source |
32 | | -code published at `get.typo3.org <https://get.typo3.org>`_ only. |
| 45 | +For details, see: `TYPO3 release integrity |
| 46 | +<https://docs.typo3.org/permalink/t3coreapi:release-integrity>`_ |
| 47 | + |
| 48 | +Avoid vendor-provided or pre-installed packages unless you fully trust their |
| 49 | +source. |
0 commit comments