-
Notifications
You must be signed in to change notification settings - Fork 21
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
OAuth token validation fails due to clock skew #757
Comments
Hello and thank you for opening the issue. Yes, a colleague of ours (@richardtreier) has already addressed and fixed this in the core-edc and the fix was released with the core-edc version mentioned. In fact, we haven't migrated to this yet, I can only confirm that at this point. I'll also link another colleague who takes care of planning our releases, maybe he can give a hint here when we'll migrate to the newer version of the core-edc v0.5.0 @AbdullahMuk . |
Hello again, thank you for looking into the issue. Knowing that using core-edc v0.5.0 is on the roadmap it's good news! |
Consider as part of https://github.com/sovity/edc-ee/issues/710 ? |
@efiege what is the status? |
Closing for cleanup. Please wait for upcoming release of sovity's EDC CE based on new Core EDC 0.7.x. in Q1.2025. |
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: