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

Multiple Maven Repositories #3576

Open
henrysachs opened this issue Jan 9, 2025 · 2 comments
Open

Multiple Maven Repositories #3576

henrysachs opened this issue Jan 9, 2025 · 2 comments
Labels

Comments

@henrysachs
Copy link
Contributor

What would you like to be added:

syft can authenticate and communicate with multiple maven repositories for its networking features

Why is this needed:

currently you can only configure one maven-url in the syft settings and the maven reposistory can't be authenticated against.

Additional context:

When using private registries or parent poms you reach the point of multiple repositories quite fast (unfortunately!). I think the best would be to leverage the current authentication mechanism of the package managers itself but are also open to configure each url and a password.

@henrysachs henrysachs added the enhancement New feature or request label Jan 9, 2025
@spiffcs spiffcs moved this to Backlog in OSS Jan 15, 2025
@kzantow
Copy link
Contributor

kzantow commented Jan 23, 2025

FWIW the Maven resolver already supports multiple repos: https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/java/internal/maven/config.go#L25.

In fact, it looks like Syft currently supports multiple Maven repo URLs by comma-separating them when specifying the maven-base-url property.

@henrysachs
Copy link
Contributor Author

FWIW the Maven resolver already supports multiple repos: https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/java/internal/maven/config.go#L25

Oh sorry I didnt knew about this thanks a lot! But we don't have a way to authenticate to those already am I right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

3 participants