OAuth token validation fails due to clock skew #757
Labels
kind/bug
Something isn't working. The software does not behave as expected or specified.
scope/ce
sovity's Open Source Community Edition
task/analyze
Need for investigation
Bug Report
Description
Verification of OAuth token attached to requests fails due to skew between the verifying connector clock and the authorization server clock. This happens in particular if the authorization server clock is in the future in respect of the connector clock.
Expected Behavior
Connectors should be able to talk each other correctly, dealing with some amount of clock drift between connector and the authorization server.
Observed Behavior
Connectors experience errors in communication due to invalid tokens, e.g. exploring the catalog results in exception:
Steps to Reproduce
Steps to reproduce the behavior:
docker-compose.yaml
ce
imagesdocker-compose up
to start everythingFAILED FETCHING CATALOG.
error on the UIContext Information
I have experienced this while trying to follow Productive Deployment Guide, using Keycloak as DAPS.
The error sparks from EDC Connector class
org.eclipse.edc.iam.oauth2.rule.Oauth2ExpirationIssuedAtValidationRule
, checks, at line 54 in particular, should take into account skew between connector's and auth server's clocks.Looking at EDC Connector issues, it looks like this has been fixed by eclipse-edc/Connector#3728, which is included in v0.5.0, but sovity extensions is still on v0.2.1.
The text was updated successfully, but these errors were encountered: