When deploying OpenWA locally using docker compose with the --profile full orchestration, the dashboard loads correctly, but it is impossible to authenticate. Entering the configured API_MASTER_KEY (or the default seed key found in the data files) always results in an "Invalid API Key" error.
After inspecting the container environment and network behavior, the issue appears to be caused by how variables are handled during the Vite build process inside Dockerfile.traefik. The frontend is trying to resolve requests against a hardcoded or misconfigured endpoint, breaking the communication between the dashboard UI and the backend API, which returns a generic invalid key message.
Steps to Reproduce
Configure docker-compose.yml using the default repository profile settings.
Define API_MASTER_KEY in the environment variables.
Boot the environment using docker compose --profile full up -d --build.
Verify via docker exec openwa-api printenv API_MASTER_KEY that the backend holds the key successfully.
Open the dashboard at http://localhost:2886 and attempt to log in using the correct key.
Expected Behavior
The dashboard should build with dynamic environment contexts and successfully authenticate against the backend API container.
Actual Behavior
The UI rejects any key provided with an "Invalid API Key" error due to a CORS or network mismatch caused by the compiled production build of the frontend.
Environment
OS: Windows 11 / Docker Desktop
Deployment: Docker Compose (with Traefik profile)
OpenWA Version: Latest main branch
When deploying OpenWA locally using docker compose with the --profile full orchestration, the dashboard loads correctly, but it is impossible to authenticate. Entering the configured API_MASTER_KEY (or the default seed key found in the data files) always results in an "Invalid API Key" error.
After inspecting the container environment and network behavior, the issue appears to be caused by how variables are handled during the Vite build process inside Dockerfile.traefik. The frontend is trying to resolve requests against a hardcoded or misconfigured endpoint, breaking the communication between the dashboard UI and the backend API, which returns a generic invalid key message.
Steps to Reproduce
Configure docker-compose.yml using the default repository profile settings.
Define API_MASTER_KEY in the environment variables.
Boot the environment using docker compose --profile full up -d --build.
Verify via docker exec openwa-api printenv API_MASTER_KEY that the backend holds the key successfully.
Open the dashboard at http://localhost:2886 and attempt to log in using the correct key.
Expected Behavior
The dashboard should build with dynamic environment contexts and successfully authenticate against the backend API container.
Actual Behavior
The UI rejects any key provided with an "Invalid API Key" error due to a CORS or network mismatch caused by the compiled production build of the frontend.
Environment
OS: Windows 11 / Docker Desktop
Deployment: Docker Compose (with Traefik profile)
OpenWA Version: Latest main branch