Skip to content

Add minimum dependency age#762

Merged
sosthene-nitrokey merged 5 commits into
Nitrokey:min-agefrom
sosthene-nitrokey:min-age
Jun 19, 2026
Merged

Add minimum dependency age#762
sosthene-nitrokey merged 5 commits into
Nitrokey:min-agefrom
sosthene-nitrokey:min-age

Conversation

@sosthene-nitrokey

Copy link
Copy Markdown
Contributor

This adds a configuration so that poetry, uv and pip don't consider releases that are less than 7 days old to reduce the risk of installing malware through simple dependency update.

This PR also adds an exclusion for the nitrokey package, as it's most likely that a compromise to the nitropy package would mean our python packages can all be compromised, and nitropy and nitrokey-app2 are generally updated in sync with the sdk.

@sosthene-nitrokey sosthene-nitrokey requested a review from a team as a code owner June 17, 2026 13:06
@sosthene-nitrokey sosthene-nitrokey requested review from daringer, james-knippes, mmerklinger and robin-nitrokey and removed request for a team June 17, 2026 13:06
@sosthene-nitrokey sosthene-nitrokey changed the title Add minimum dependency age for most config files we could use Add minimum dependency age Jun 17, 2026
robin-nitrokey and others added 4 commits June 18, 2026 13:49
This already uses solver.min-release-age = 7 as proposed in
Nitrokey#762.
This adds a configuration so that poetry, uv and pip don't consider releases that are less than 7 days old to reduce the risk of installing malware through simple dependency update.

This PR also adds an exclusion for the `nitrokey` package, as it's most likely that a compromise to the `nitropy` package would mean our python packages can all  be compromised, and `nitropy` and `nitrokey-app2` are generally updated in sync with the sdk.
@sosthene-nitrokey

Copy link
Copy Markdown
Contributor Author

I disabled the minimum age for the CI

@sosthene-nitrokey sosthene-nitrokey merged commit dadd361 into Nitrokey:min-age Jun 19, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants