You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pgAdmin4 through the Docker image, the email set in the PGADMIN_DEFAULT_EMAIL variable is validated during the execution of the entrypoint.sh file. However, this does not care about any Python configuration file provided, leading to validation errors whilst setup should allow it.
To Reproduce
Steps to reproduce the behavior:
Create a config_system.py file with the following content, to allow .local email addresses: import email_validator email_validator.SPECIAL_USE_DOMAIN_NAMES.remove("local")
Launch the Docker image with the following command: docker run -ti --rm -e [email protected] -e PGADMIN_DEFAULT_PASSWORD=admin -e PGADMIN_CONFIG_CHECK_EMAIL_DELIVERABILITY=False -v $(pwd)/config_system.py:/etc/pgadmin/config_system.py dpage/pgadmin4
Expected behavior
The Docker image launches, pgAdmin4 is started and I can use the [email protected] email address to authenticate.
Error message
The Docker image exits with the following message: '[email protected]' does not appear to be a valid email address. Please reset the PGADMIN_DEFAULT_EMAIL environment variable and try again.
Environment
Debian 12.6 on WSL2
Docker Desktop 4.33.1
pgAdmin4 8.11.0
Additional context
Attempting to validate the email address manually using the email_validator Python library works, as long as the content of the config_system.py file is executed before all.
The error raised within the entrypoint.sh file is the following: email_validator.exceptions_types.EmailSyntaxError: The part after the @-sign is a special-use or reserved name that cannot be used with email.
The text was updated successfully, but these errors were encountered:
Does this mean that the config_(local|system).py tip to bypass .local email addresses mentionned in issues #6222, #6504 and #7668 does not work anymore?
Describe the bug
When using pgAdmin4 through the Docker image, the email set in the PGADMIN_DEFAULT_EMAIL variable is validated during the execution of the entrypoint.sh file. However, this does not care about any Python configuration file provided, leading to validation errors whilst setup should allow it.
To Reproduce
Steps to reproduce the behavior:
import email_validator email_validator.SPECIAL_USE_DOMAIN_NAMES.remove("local")
docker run -ti --rm -e [email protected] -e PGADMIN_DEFAULT_PASSWORD=admin -e PGADMIN_CONFIG_CHECK_EMAIL_DELIVERABILITY=False -v $(pwd)/config_system.py:/etc/pgadmin/config_system.py dpage/pgadmin4
Expected behavior
The Docker image launches, pgAdmin4 is started and I can use the [email protected] email address to authenticate.
Error message
The Docker image exits with the following message:
'[email protected]' does not appear to be a valid email address. Please reset the PGADMIN_DEFAULT_EMAIL environment variable and try again.
Environment
Additional context
email_validator.exceptions_types.EmailSyntaxError: The part after the @-sign is a special-use or reserved name that cannot be used with email.
The text was updated successfully, but these errors were encountered: