complément logs et exceptions #20
Loading…
Reference in New Issue
No description provided.
Delete Branch "issue-19"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ajout de logs en cas d'exception PDOException cacthée avec LoggerInterface pour obtenir le message d'erreur précis dans la console.
Création d'exceptions pour différencier les différentes erreurs PDO possible, notamment différencier la connection à la bdd des erreur de configuration comme par exemple une colonne demandée qui n'existe pas.
##Test
mettre dans le .env.local la valeur de PEPPER indiquée dans le README
docker compose up
http://localhost:8000
Faire une première connexion pour valider le fonctionnement
Pour chaque modification suivante, faire un test de connexion et vérifier qu'un message compréhensible est visible.
ensuite modifier des valeurs dans le fichier de configuration config/sql_login_configuration/sql_login.yaml
email
parmail
salt
salt
par autre choseDans le .env, modifier le DSN de connexion à la bdd pour créer un problème.
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
Cadoles_hydra-sql_PR-20/src/SQLLogin/SQLLoginRequest
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/LoginElementsConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DataToFetchConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DatabaseConnectionException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/SecurityPatternConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullPasswordColumnNameException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullDataToFetchException
Cadoles_hydra-sql_PR-20/src/Service/SQLLoginService
Errors
`Cadoles_hydra-sql_PR-20/src/SQLLogin/SQLLoginRequest`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DataToFetchConfigurationException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/SecurityPatternConfigurationException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullDataToFetchException`
Output
applied fixers:
Rapport PHPStan
issue-19to complément logs et exceptionsd056b1feac
tocdecc0b695
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/LoginElementsConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DataToFetchConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DatabaseConnectionException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/SecurityPatternConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullPasswordColumnNameException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullDataToFetchException
Cadoles_hydra-sql_PR-20/src/Service/SQLLoginService
Errors
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/LoginElementsConfigurationException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DatabaseConnectionException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullPasswordColumnNameException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/Service/SQLLoginService`
Output
Rapport PHPStan
cdecc0b695
to1e2491f9c6
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/LoginElementsConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DataToFetchConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DatabaseConnectionException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/SecurityPatternConfigurationException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullPasswordColumnNameException
Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullDataToFetchException
Cadoles_hydra-sql_PR-20/src/Service/SQLLoginService
Errors
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/LoginElementsConfigurationException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/DatabaseConnectionException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/SQLLogin/Exception/NullPasswordColumnNameException`
Output
applied fixers:
`Cadoles_hydra-sql_PR-20/src/Service/SQLLoginService`
Output
Rapport PHPStan
Symfony Security Check Report
2 packages have known vulnerabilities.
symfony/security-http (v5.4.23)
symfony/twig-bridge (v5.4.22)
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
Cadoles_hydra-sql_PR-20/src/Controller/MainController
Errors
`Cadoles_hydra-sql_PR-20/src/Controller/MainController`
Output
Rapport PHPStan
Symfony Security Check Report
2 packages have known vulnerabilities.
symfony/security-http (v5.4.23)
symfony/twig-bridge (v5.4.22)
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
Cadoles_hydra-sql_PR-20/src/Controller/MainController
Errors
`Cadoles_hydra-sql_PR-20/src/Controller/MainController`
Output
Rapport PHPStan
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
src/Controller/MainController
Errors
`src/Controller/MainController`
Output
Rapport PHPStan
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
src/Controller/MainController
Errors
`src/Controller/MainController`
Output
Rapport PHPStan
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
src/Controller/MainController
src/Security/Hasher/PasswordEncoder
Errors
`src/Controller/MainController`
Output
applied fixers:
Rapport PHPStan
Les messages d'erreur pour mauvais mot de passe / mauvais login doivent être les mêmes pour des questions de sécurité. Les exceptions peuvent être différentes pour aider au debug mais les messages doivent être les mêmes.
@ -71,3 +72,1 @@
$scope .= $data.',';
}
$scope = substr($scope, 0, -1);
if ($this->config[self::DATA_TO_FETCH]) {
Inverser cette condition
ok
@ -90,10 +101,16 @@ class SQLLoginUserAuthenticator extends AbstractLoginFormAuthenticator
return $passport;
Le type de $passport ne correspond pas au return type de la méthode.
ok
@ -18,3 +23,3 @@
$this->loggerInterface = $loggerInterface;
}
public function fetchDatas($login)
typer $login (mixed possible)
ok
@ -42,3 +54,1 @@
* @return bool
*/
public function fetchPassword($login)
public function fetchPassword($login): array|bool
typer $login (mixed possible)
ok
@ -1,4 +1,7 @@
error:
A supprimer, utiliser les fichier xlf pour les traductions
ok
@ -1,4 +1,7 @@
error:
A supprimer
ok
1e2491f9c6
to0791727694
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
src/SQLLogin/SQLLoginRequest
src/Service/SQLLoginService
src/Security/SQLLoginUserAuthenticator
Errors
`src/SQLLogin/SQLLoginRequest`
Output
applied fixers:
`src/Security/SQLLoginUserAuthenticator`
Output
Rapport PHPStan
Rapport d'analyse du fichier
./misc/images/hydra-sql-standalone/Dockerfile
avec HadolintRapport d'analyse de l'image avec Trivy
Target
reg.cadoles.com/cadoles/hydra-sql-standalone:2024.4.29-pr20.1044.0791727 (alpine 3.17.1)
Vulnerabilities (2)
libcrypto3
libssl3
No Misconfigurations found
Target
Node.js
Vulnerabilities (1)
tar
No Misconfigurations found
Rapport d'analyse du fichier
./misc/images/hydra-sql-base/Dockerfile
avec HadolintRapport d'analyse de l'image avec Trivy
Target
reg.cadoles.com/cadoles/hydra-sql-base:2024.4.29-pr20.1044.0791727 (alpine 3.17.1)
Vulnerabilities (2)
libcrypto3
libssl3
No Misconfigurations found
Target
Node.js
Vulnerabilities (1)
tar
No Misconfigurations found
Symfony Security Check Report
No packages have known vulnerabilities.
Note that this checker can only detect vulnerabilities that are referenced in the security advisories database.
Execute this command regularly to check the newly discovered vulnerabilities.
Test report
PHP CS Fixer
Overview
Total duration: 0s
See details
src/Service/SQLLoginService
src/Security/SQLLoginUserAuthenticator
Errors
`src/Service/SQLLoginService`
Output
applied fixers:
Rapport PHPStan
Rapport d'analyse du fichier
./misc/images/hydra-sql-standalone/Dockerfile
avec HadolintRapport d'analyse de l'image avec Trivy
Target
reg.cadoles.com/cadoles/hydra-sql-standalone:2024.4.29-pr20.1109.51c92a0 (alpine 3.17.1)
Vulnerabilities (2)
libcrypto3
libssl3
No Misconfigurations found
Target
Node.js
Vulnerabilities (1)
tar
No Misconfigurations found
Rapport d'analyse du fichier
./misc/images/hydra-sql-base/Dockerfile
avec HadolintRapport d'analyse de l'image avec Trivy
Target
reg.cadoles.com/cadoles/hydra-sql-base:2024.4.29-pr20.1109.51c92a0 (alpine 3.17.1)
Vulnerabilities (2)
libcrypto3
libssl3
No Misconfigurations found
Target
Node.js
Vulnerabilities (1)
tar
No Misconfigurations found