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
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
When I try to call the following command
docker run --mount type=bind,source=,target=/config/config.yaml -p 8000:8000 -it ghcr.io/teamhanko/hanko:main migrate up
I got this error
"failed to validate config: failed to validate passcode settings: failed to validate email settings: from_address must not be empty"
I have changed the PATH-TO-CONFIG-FILE to my actual config.yaml path.
Reproducing the bug
Install docker
run docker pull mysql
Setup the config.yaml
run docker run --mount type=bind,source=,target=/config/config.yaml -p 8000:8000 -it ghcr.io/teamhanko/hanko:main migrate up
Logs
2023/06/15 11:02:36 Using config file: ./config/config.yaml
2023/06/15 11:02:36 failed to validate config: failed to validate passcode settings: failed to validate email settings: from_address must not be empty
Looks like we always validate the complete config, although we only need to validate the database part of the config for the migrate command. So we should only validate the parts of the config file that we need for each command.
As a workaround you can add all required fields to the config e.g:
failed to validate config: failed to validate passcode settings: failed to validate email settings: from_address must not be empty · Issue #857 · teamhanko/hanko
Activity
FreddyDevelop commentedon Jun 16, 2023
Looks like we always validate the complete config, although we only need to validate the database part of the config for the
migrate
command. So we should only validate the parts of the config file that we need for each command.As a workaround you can add all required fields to the config e.g:
Also i see, that the readme refers to an outdated docker image, it should be
ghcr.io/teamhanko/hanko:latest
instead ofmain
.github-actions commentedon Jul 27, 2023
This issue is stale because it has been open for 30 days with no activity.
github-actions commentedon Aug 10, 2023
This issue was closed because it has been inactive for 14 days since being marked as stale.