Verify CVE-free dependency floors when a project is created
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
Research direction
Start by reading scripts/audit_floors.py, nexy/modules/cli/templates/_shared/web/pyproject.toml.jinja2, the api variant’s package.json.jinja2, and the floor list in docs/reference/security.md. Trace project creation to find where shared audit logic can run online and where floors and the offline command can be emitted. Done means generated projects receive the documented floors, advisories block scaffolding, and tests cover exact outputs, a fake OSV advisory, and the offline message.
Written by the indexing model from the issue text.
Description
Problem
Generated projects depend on nexy>=<version> and ORM packages with no minimum versions chosen for security. The framework repository audits its floors with OSV and pip-audit, but a project a user just created never gets that check.
What we know
nexy/modules/cli/templates/_shared/web/pyproject.toml.jinja2and theapivariant declarenexy>=<version>plus ORM and driver packages.scripts/audit_floors.pylines 20 to 92 reads floor versions from the rootpyproject.tomland the generatedpackage.json.jinja2, querieshttps://api.osv.dev/v1/querybatch, and fails when a floor has an advisory.docs/reference/security.mdlines 5 to 21 lists the floors and the reason for each.- Generated projects do not carry the floors or the audit.
Proposal
- Give generated projects the same CVE-free floors the framework uses, for Python and for JavaScript packages.
- Share the OSV audit logic between the repository script and the scaffold, instead of copying it.
- Run the check when a project is created while online; offline, write the floors and print the command to run the check later.
Acceptance
- A test asserts the exact floors written into a generated
pyproject.tomlandpackage.json. - A test uses a fake OSV response to prove an advisory blocks the scaffold.
- A test covers the offline path and its message.
- No advisory is ignored without a dated entry in
SECURITY.md.
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 265
Getting set up
- No 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 NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli difficulty:intermediate enhancement
Difficulty 2/5 Half a day Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days