python-tuf icon indicating copy to clipboard operation
python-tuf copied to clipboard

Use Immutable Releases

Open jku opened this issue 8 months ago • 2 comments

There's a checkbox in the settings Enable release immutability: we should check it.

The docs are just vague enough that I'm not 100% sure if our current released workflow works with it:

  • Description is "Disallow assets and tags from being modified once a release is published"
  • We don't modify assets but do add them after the initial publish: I think that might still be a violation

Maybe best to tweak the release workflow so the initial publish makes the release a draft (and the final publish makes it non-draft): then we should be good to go.

jku avatar Mar 12 '26 08:03 jku

Doing this also gives us a light weight version of release attestations (#2000) for free

jku avatar Mar 12 '26 08:03 jku

Hi @jku, could you assign this issue to me (@Sauvi72)? I'd like to implement the draft-first approach you suggested and open a focused PR.

In .github/workflows/cd.yml, I propose setting draft: true when creating the candidate release, explicitly awaiting all asset uploads so failures stop the job, and setting draft: false when finalizing the release after the existing release-environment approval and PyPI publish steps. Enabling release immutability itself would remain a maintainer-controlled repository setting.

I'd validate the draft/upload/finalize sequence in a test repository without publishing to PyPI. Does that approach fit what you had in mind? I'll wait for assignment before starting the implementation and PR.

Sauvi72 avatar Nov 24 '26 13:11 Sauvi72