Skip to content
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

Wpackagist not compliant with repository metadata v1 endpoint so not interfacable with dependency track #486

Closed
ghost opened this issue Mar 2, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2023

Hello,

The repository wpackagist is not compliant with repository metadata v1 endpoint.

Dependency Track (DT) only uses the repository information to fetch metadata about the component such as the latest available version. Regarding composer, DT uses the repository metadata v1 endpoint. It does seems that https://wpackagist.org/ does not support this endpoint. See https://wpackagist.org/p2/wpackagist-plugin/elementor.json which results in a 404 and https://repo.packagist.org/p/johnpbloch/wordpress.json which works.

Is it possible to make it compliant? This would be a really nice feature which permits to manage our outdated dependencies.

More information on this issue: DependencyTrack/dependency-track#2544

Thanks a lot in advance,

@NoelLH
Copy link
Contributor

NoelLH commented Mar 7, 2023

@fakeNews-jpg I'd be open to PRs, but I think it's highly unlikely we'll ever be able to devote the time to do all the work for this to implement the deprecated schema.

There's some discussion on #408 about v2 metadata but it's a bit blocked for work my side on both clarity on the most valuable properties and feasibility of getting them, and lack of time generally.

Would you be able to work with v2 metadata? Is there anything intrinsic about v1 that meets requirements v2 doesn't?

@NoelLH
Copy link
Contributor

NoelLH commented Aug 30, 2023

I'm going to close this for now, as I think any future effort is more likely to be on v2 if anybody has the time.

From the linked issue and our past research, I also suspect that adding this endpoint would not lead to vulnerability alerts as you want without some additional outside developments – our research for other purposes has mostly shown a lack of bulk-queryable databases of WordPress security alerts that can be used freely without limits unfortunately.

@NoelLH NoelLH closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant