fix: use plain password in configuration for MailJet webhook url

This commit is contained in:
Björn Fromme
2026-04-30 11:44:17 +02:00
parent c0c8ad515c
commit 68900dd4ea
8 changed files with 63 additions and 14 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
security:
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
password_hashers:
Symfony\Component\Security\Core\User\InMemoryUser: 'plaintext'
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
@@ -12,7 +13,7 @@ security:
memory:
users:
mailjet:
password: '%env(MAILJET_WEBHOOK_BASIC_PASSWORD_HASH)%'
password: '%env(MAILJET_WEBHOOK_BASIC_PASSWORD)%'
roles: ['ROLE_MAILJET_WEBHOOK']
firewalls:
dev:
@@ -58,6 +59,7 @@ when@test:
# important to generate secure password hashes. In tests however, secure hashes
# are not important, waste resources and increase test times. The following
# reduces the work factor to the lowest possible values.
Symfony\Component\Security\Core\User\InMemoryUser: 'plaintext'
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4 # Lowest possible value for bcrypt