Skip to content

Conversation

@ronjaquensel
Copy link
Contributor

@ronjaquensel ronjaquensel commented Apr 22, 2025

What this PR changes/adds

Removes the authentication check from the DSP versions endpoint.

Why it does that

In 2025/1, the version endpoint must be unauthenticated.

Further notes

I did not make any changes to the dispatchers, i.e. the authorization header will be set also on outgoing ProtocolVersionRequestMessages. I think this makes sense for now, as older versions would still have the versions endpoint authenticated. Could be refactored at a later point to not set the authorization header for version requests.

Who will sponsor this feature?

me

Linked Issue(s)

Closes #4918

@ronjaquensel ronjaquensel added the dataspace-protocol related to the dataspace protocol label Apr 22, 2025
@ronjaquensel ronjaquensel requested a review from wolf4ood April 22, 2025 11:36
@ronjaquensel ronjaquensel self-assigned this Apr 22, 2025
@ronjaquensel ronjaquensel added the bug Something isn't working label Apr 22, 2025

@Override
public ServiceResult<ProtocolVersions> getAll(TokenRepresentation tokenRepresentation) {
return tokenValidator.verify(tokenRepresentation, RequestVersionPolicyContext::new)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this RequestVersionPolicyContext not used anymore right? 🪓

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! other than registration of scopes/policy contexts doesn't seem to be used anywhere else. Since thematically it fits to this PR, I'll do so right away 🪓

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

though I just noticed that it is also registered on the dispatchers. Since older version still would have the versions endpoint authenticated, maybe it would make sense to leave it for now

@ronjaquensel ronjaquensel merged commit 085d1db into eclipse-edc:main Apr 23, 2025
19 checks passed
@ronjaquensel ronjaquensel deleted the chore/4918-unauthenticated-dsp-versions-endpoint branch April 23, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dataspace-protocol related to the dataspace protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DSP version API should not require an authentication

3 participants