Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Stepup-RA to run on Symfony 6.4 and PHP 8.2 (#313)
* Add docker configs and rebuild the .dist files to reflect the new docker based development environment * Configuring the github actions pipelines for this app * Adding the dev image and fixing up some naming conventions * Default docker config: Add mailcatcher host * Docker config: Make sure all second factors are the same * Docker config: Add correct loa1.5 * Docker: Add monolog configuration when running as a container This will let the logs go to stdout when running as a container, which is the Docker way to send logs * Rename loa's to a more standard name * Add repo name to slack notification * Bump symfony/twig-bridge from 4.4.49 to 4.4.51 Bumps [symfony/twig-bridge](https://github.com/symfony/twig-bridge) from 4.4.49 to 4.4.51. - [Release notes](https://github.com/symfony/twig-bridge/releases) - [Changelog](https://github.com/symfony/twig-bridge/blob/6.3/CHANGELOG.md) - [Commits](symfony/twig-bridge@v4.4.49...v4.4.51) --- updated-dependencies: - dependency-name: symfony/twig-bridge dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Fix unit tests Tests started failing since yesterday: ``` yarn install v1.22.19 info No lockfile found. [1/4] Resolving packages... warning @symfony/webpack-encore > webpack-dev-server > webpack-dev-middleware > [email protected]: this will be v4 [2/4] Fetching packages... error @symfony/[email protected]: The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.21.2" ``` I was able to trace to issue back to a new release of webpack-encore: https://github.com/symfony/webpack-encore/releases/tag/v4.5.0 * Bump phpseclib/phpseclib from 3.0.19 to 3.0.34 Bumps [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) from 3.0.19 to 3.0.34. - [Release notes](https://github.com/phpseclib/phpseclib/releases) - [Changelog](https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md) - [Commits](phpseclib/phpseclib@3.0.19...3.0.34) --- updated-dependencies: - dependency-name: phpseclib/phpseclib dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Moving from CMD to ENTRYPOINT * Moving back to CMD * Removing the dev image * Bump phpseclib/phpseclib from 3.0.34 to 3.0.37 Bumps [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) from 3.0.34 to 3.0.37. - [Release notes](https://github.com/phpseclib/phpseclib/releases) - [Changelog](https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md) - [Commits](phpseclib/phpseclib@3.0.34...3.0.37) --- updated-dependencies: - dependency-name: phpseclib/phpseclib dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Update and install - rector - sf/flex 2+ * Fix deprecations * 1st Rector run LevelSetList::UP_TO_PHP_82, ClassPropertyAssignToConstructorPromotionRector::class, SymfonySetList::SYMFONY_44, * Rector remove Action suffix * Repair controller calls * Update quality tools * Migrate to newer schema * Add types * Remove obsolete var * Replace session with requeststack * Replace legacy with openconext * Move twig files * Fix test with requestStack * Solve PHPStan error * Solve PHPStan error * PHPstan extensions * Remove obsolete phpdoc * Add types * Add types and DI * Replace get with container->get * Add types and DI * Ran phpcbf * DI and removed @template * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * DI and types * Add parent call * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Add types * Fix deprecations * Fix deprecations * Fix deprecations * Add return types * Add return types * Removed unused imports * Removed unused moment installation * Fix deprecations * Remove deleted service definitions * Add types * Run rector * Add types * Add types * Remove direct dependency * Change security check to composer audit * Change security check to composer audit * 1st Upgrade to 6.x * Update dependencies * Add route attribute * Add route attribute * Change config * Add error bundle * Fix phpcbf * Fix tests and config * Fix tests and config * Fix tests and config * Avoid null return * Rename varname * Replace files according rules * Correct copyright year * Remove more than 1 blank line * Disable dotenv * Use Dependency Injection * Use Dependency Injection * Create MetadataCollection * Use Dependency Injection * Remove obsolete config after renaming the service * Add phpstan rule to detect debug statements * Change early returns * Remove getIdentity call * Add AuthenticatedIdentity * Add roles via contructor * Using ICU format for translations * Remove dead code * Remove deprecated transchoice * Add Loa to Authenticated Identity * Get Loa from Authenticated Identity * Get correct Identity * Get correct Identity Service * Replaced vars * Added helper methods to get internals of Identity * Fix namespace * Fixed on behat runs * Fix flashbag * Fix return redirect * Test double for Yubikey * Test double for Yubikey * Attribute fix and exception controller * Remove obsolete token * Clean up phpcbf * Remove unneeded version * Phpstan settings * Add Logout handling * Add phpstan in check * add phpstan directives * Remove dead code * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Integrate in central config * Remove obsolete code * Use alias * Use alias * Use alias * Remove dead code * Remove dead code * Remove dead code * Github actions update * Github actions update * Add php 8.2 * Set nodejs version * Set nodejs version * Set nodejs version * Set nodejs version * Set nodejs version * Set node version * Add license check * Add license check * Optimize imports * Fix review - Add frontend build in test integration - Fix RAService line length * Move logo * Add correct DOB * Fix Call to an undefined method (phpstan) * Implement method * Fix phpstan errors * Fix phpstan errors * Fix phpstan errors * Fix phpstan errors * Fix phpstan errors * Fixed dist parameter * Configure all build components to use node20 and php82 * GHA: For creating releases the GHA workflow needs more permissions * Docker build: Use the latest actions and upgrade to php8 * Fixed monolog * Removed rubbish in html * Moved services_smoketest.yaml to config * Merge and remove remaining package/{env} config * Ensure MissingRequiredAttributeException end on error page They would not be listened to by the exception handler. As it is derived from an exception that is not handled. * Simplify bundle setup - Resource config has been moved to main /config location - samlstepupproviders.yaml was moved to packages folder * Reorganize less and js files Moved them from the bundle to the globa assets folder Updated the references to these files in the webpack config * Inject the locales instead of leaving them empty This fixed the not present vetting type input fields. Which are added based on the programmed locales. * Remove unused code and cleanup * Remove RecTokenController definition It can be autoconfigured without any issues * Remove unused method * Let PHPMD output in text format That is more in line with the other QA config * Clean up getTranslation method The code style sniffer reported some faulty formatting * Re generate PHPStan baseline Some no longer relevant entries were cleaned up And a couple new ones are added. There is insuficiant time to address them now * Remove security checker from the project Security issues are monitored using dependabot on our VCS. And in addition we scan all projects on a daily scedule with our daily-security-check.yml github action * Remove `app` and `web` folder references * Run scrutinizer on default-jammy * Rename Kernel namepace From `src` to `Surfnet\StepupRa` this sticks to the naming convention we stick to in the other stepup projects * Update Composer dependencies - Remove the repository version of the saml bundle. We can rely on the latest actual release now - Upgrade the monitor bundle - Upgrade any other bundle within the set constraints * Remove unused dotenv component * Update Symfony version constraints Pin them to the 6.4 version we built this app on * Sync lockfile and set a version number * Revert "Simplify bundle setup" This reverts commit 965cf09. * Repair vetting type hints * Upgrade Composer dependencies * Repair vetting type hint controller The locales and hints were not set correctly set when no hints were found for the chosen institution * Remove redundant config option The saml bundle now listens for the authentication_context_class_ref param. Our config chekcs if it is set by verifying the required_loa config option. Having parameters for both options makes no sense. So I merged them * Also the /internal/{info,health} paths must be publically available * GitHub actions workflows: Remove deprecated set-output commands Phase out ancient (4 years!) create release action --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Bart Geesink <[email protected]> Co-authored-by: Dan <[email protected]> Co-authored-by: Peter Havekes <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tim van Dijen <[email protected]> Co-authored-by: Thijs Kinkhorst <[email protected]> Co-authored-by: Michiel Kodde <[email protected]>
- Loading branch information