This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
workspace get_by_domain isn't compatible with docker-compose networking #249
Labels
bug
Something isn't working
Describe the bug
fief/fief/repositories/workspace.py
Line 24 in 6df2773
admin api call cannot identify any domain except the given with ROOT_DOMAIN/FIEF_DOMAIN on setup (i.e. localhost is recognized, but inner docker-compose domains are not)
To Reproduce
docker-compose.yml: (note: env secrets are generated for testing and are not my production secrets)
-> run -> get CANT_DETERMINE_VALID_WORKSPACE error
however, run the same curl command from the host machine with
http://localhost:8000/admin/api/users/
and it finds the workspaceExpected behavior
I expect it to understand default workspace with whatever root domain it's accessed from
Configuration
self-hosted, as per
https://docs.fief.dev/self-hosting/quickstart/
butFIEF_MAIN_ADMIN_API_KEY=ACAB
addedAdditional context
For context, the main point of why I'm doing this call from inside docker-compose is that I'd like to setup some default schema, namely a field for users, that I'd like to do through admin API automatically on docker setup
The text was updated successfully, but these errors were encountered: