-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configured API BASE URL is not used for login webflow #159
Comments
docker pull dependencytrack/frontend docker pull dependencytrack/apiserver |
i verified along the call chain that the POST request arrives at the service, just at the frontend endpoint vs. the api endpoint. The docker-compose says this setting is ignored during login. |
https://app.bountysource.com/issues/106780030-api-server-is-unavailable-via-frontend-gui |
Ah, it looks like this was a breaking change introduced in #141 that we missed to update the documentation for. Since 4.5.0, Can you try changing the path you're mounting your config file into and see if that resolves your issue? I'll update the documentation accordingly.
Containers are labeled. Version and Git revision are included: $ docker inspect dependencytrack/frontend:4.5.1 | jq '.[].Config.Labels'
{
"maintainer": "steve.springett@owasp.org",
"org.opencontainers.image.description": "Dependency-Track is an intelligent Component Analysis platform",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "90e1b44a9f5beefc14591773b4edd15e76452895",
"org.opencontainers.image.source": "https://github.com/DependencyTrack/frontend",
"org.opencontainers.image.title": "Official Dependency-Track Frontend Container image",
"org.opencontainers.image.url": "https://dependencytrack.org/",
"org.opencontainers.image.vendor": "OWASP",
"org.opencontainers.image.version": "4.5.1"
} |
As identified in DependencyTrack/frontend#159 Signed-off-by: nscuro <nscuro@protonmail.com>
Closing as the change has since been included in both the documentation and the changelog. |
We are running a safe installation without public DNS in a complex secured environment.
When I analyse the login flow the request does not use the API_BASE_URL configured in /app/static/config.json
(https://dtrackapi.domain)
but instead uses the FE_BASE_URL resulting in a 405 error
This does not look as described.
the faulty request copied from firefox (domain redacted):
curl "https://dtrackfe.domain/api/v1/user/login" -X POST -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" -H "Accept: application/json, text/plain, /" -H "Accept-Language: en-US,en;q=0.5" --compressed -H "Content-Type: application/x-www-form-urlencoded" -H "Origin: https://dtrackfe.domain" -H "Connection: keep-alive" -H "Referer: https://dtrackfe.domain/login?redirect="%"2Fdashboard" -H "Sec-Fetch-Dest: empty" -H "Sec-Fetch-Mode: cors" -H "Sec-Fetch-Site: same-origin" -H "Pragma: no-cache" -H "Cache-Control: no-cache" --data-raw "username=admin&password=admin"
Versions:
dependencytrack/frontend latest 72cbc720c2a8 11 days ago 59.2MB
dependencytrack/apiserver latest b3d93dda0d2b 12 days ago 266MB
(it would be helpful to find the version numbers in the containers somewhere)
The text was updated successfully, but these errors were encountered: