Enhancement request: Support global, per product, and per package registry/proxy configuration for purl2url
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- backend, infrastructure
Research direction
Start by locating the existing purl2url conversion entry point and the SBOM-import automatic-scan flow, then identify how global, product, and package settings are stored and resolved. Done means supported package managers honor global < product < package registry overrides, including automatic SBOM scans, with tests covering precedence.
Written by the indexing model from the issue text.
Description
Is your enhancement request related to a problem? Please describe.
Currently, DejaCode attempts to convert the PURL to a URL in order to submit a scan to ScanCode.io. Since PURLs do not contain any indication where the package is actually stored, this will not work for when the packages are stored in an internal artifact registry service (like Nexus, JFrog Artifactory, or similar). Additionally, attempting to download packages directly from the package registries could trigger rate limits or some organization may block direct downloads for security reasons, so that the use of an artifact proxy registry may be required (essentially, instead of requesting a package from e.g., npm, one would direct the request at the proxy registry on the internal artifact server, which would then request it from npm and the package data would be cached for subsequent requests by the artifact registry service)
What are the benefits of the requested enhancement?
If the target registry could be configured, then downloads from an internal artifact registry would be possible. This would help with analyzing internal packages that are not published to the public registry of the respective package manager and also support usage in security restricted environments.
Describe the solution you would like
This suggested approach would be a tiered configuration, global, per product, and per package, where for each supported package manager one can set the target registry, which would override the default purl2url behavior. Furthermore the configuration for the global configuration would be overridden by the product configuration and the product configuration overridden by the package configuration.
Additional notes
This feature should be compatible with SBOM imports followed by automatic scans (applying the global or product settings, or if package already exists, the package specific one)
- Dominant language
- Python
- Stars
- 53
- Forks
- 32
- Avg merge
- 16h 44m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/dejacode
-
Unify product Clone, "Save as new" and admin "Save as new" into a single clone featurePossibly taken @d4rshnn claimed this 10 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aboutcode-org/dejacode#603 ·
Maintainers usually reply within 1 day
-
design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
aboutcode-org/dejacode#561 · 3 comments ·
Maintainers usually reply within 1 day
-
Enhancement request: Refine License Category - Copyleft LimitedMay be free again @hesa claimed this 138 days ago, and no pull request is open. Opendesign needed enhancement
aboutcode-org/dejacode#499 · 13 comments · 3 assignees ·
Maintainers usually reply within 1 day
-
BUG: Product overview page splits product with many versions across pagesMay be free again A pull request for this issue was closed without being merged. Openbug design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aboutcode-org/dejacode#460 ·
Maintainers usually reply within 1 day
-
design needed
Difficulty 5/5 Over a week Newbie friendliness 20/100
aboutcode-org/dejacode#452 · 2 comments ·
Maintainers usually reply within 1 day
All issues in aboutcode-org/dejacode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day