"AuthenticationFailed" Error in Dashboard when connecting to /api/management/ using MDS EDC Connector #1069
-
We have a MDS EDC Connector running on our Server gaiax.example.de Our UI-Dashboard is available at https://gaiax.example.de/dashboard and we there get multiple "Failed fetching Dashboard Page Data" Errors. When the Dashboard requests data from the Management-API (https://gaiax.example.de/api/management/) the response is always the following Error-Message: This happens for every request to the Management-API, for example https://gaiax.example.de/api/management/edc-ui-config or https://gaiax.example.de/api/management/last-commit-info . We set up our Connector using this template: https://github.com/Mobility-Data-Space/mobility-data-space/blob/main/templates/connector_with_traefik.yaml . Because Traefik couldn't get a certificate to authenticate, we created one by ourselves and added it to traefik:
When we try to access the Management-API using curl with the API-KEY we get the same Error-Message. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Context: Was also posted here Mobility-Data-Space/mobility-data-space#32 Unfortunately, I am not familiar with the configuration used in terms of traefik. EDC CE wise the most important setting is the Example: You set the content to The EDC UI needs to know the set api-key and needs to have the same value in |
Beta Was this translation helpful? Give feedback.
We found our problem, it was indeed the API-Key.
The problem is that our API-Key started with & and we therefore put quotation marks around the Key, so it looked like this:
EDC_API_AUTH_KEY: "&123456"
Without the quoatation marks we got an error from Docker. With a new API-Key only consisting of numbers and letters without any quotation marks everything works perfectly. If we add quotation marks to the API-Key in the docker-compose.yaml it doesn't work again.
A hint in the default docker-compose.yaml that quotation marks shouldn't be used and therefore the API-Key can't start with a special character may be useful that other users don't encounter the same problem :)