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

python312Packages.hkdf: drop #330769

Merged
merged 2 commits into from
Oct 11, 2024
Merged

python312Packages.hkdf: drop #330769

merged 2 commits into from
Oct 11, 2024

Conversation

pyrox0
Copy link
Member

@pyrox0 pyrox0 commented Jul 29, 2024

Description of changes

Part of #326513

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An HKDF implementation is probably one of the less concerning cryptography libraries to not be updated for a decade, but I still don’t feel great about this.

autobahn only requires it (and spake2) optionally for some dead cryptocurrency thing that we should probably drop, but magic-wormhole depends on this through spake2. It looks like magic-wormhole was removed by Fedora along with hkdf and spake2 in favour of the Rust version from the same upstream.

I’m going to ask around about this, but it might be better just to drop this if we find the Rust version of Magic Wormhole to be an acceptable replacement.

@pyrox0
Copy link
Member Author

pyrox0 commented Jul 29, 2024

I’m going to ask around about this, but it might be better just to drop this if we find the Rust version of Magic Wormhole to be an acceptable replacement.

Sounds like a plan, I'll make this into a draft till there's a conclusion on that front.

@pyrox0 pyrox0 marked this pull request as draft July 29, 2024 17:26
@emilazy
Copy link
Member

emilazy commented Aug 10, 2024

After engaging with upstream, it looks like they’re actively maintaining spake2 again; the current unstable version has moved off hkdf to cryptography and also dropped the six dependency. We should probably wait for an official release, but it should be possible to drop hkdf after that.

@emilazy
Copy link
Member

emilazy commented Sep 22, 2024

The changes to spake2 were merged, but there’s no release yet; I’ve opened warner/python-spake2#20.

@emilazy
Copy link
Member

emilazy commented Oct 4, 2024

There’s new releases of spake2 and magic-wormhole 🎉

Did you want to handle the bumps and dropping hkdf in this PR, or would you prefer I do it? The xbr optional dependencies of autobahn should definitely be able to go.

@pyrox0
Copy link
Member Author

pyrox0 commented Oct 4, 2024

Working on doing those bumps and dropping the package now.

Edit: seems like the bumps have already been done, just dropped the xbr deps of autobahn and ensuring nothing else breaks when dropping hkdf.

@emilazy
Copy link
Member

emilazy commented Oct 8, 2024

Any progress on this? I’m holding out hope that we can rush the last few packages in the few days before the 24.11 freeze 😅

@emilazy
Copy link
Member

emilazy commented Oct 8, 2024

Actually I misread the release schedule and we have until the 25th to finish the job, so don’t feel unduly rushed!

@pyrox0 pyrox0 changed the title python312Packages.hkdf: Drop nose dependency; modernize python312Packages.hkdf: drop Oct 11, 2024
@pyrox0
Copy link
Member Author

pyrox0 commented Oct 11, 2024

Pushed an update, this doesn't evaluate nicely because there's tahoe-lafs build failures, but the exact same check error counts ((skips=14, expectedFailures=1, failures=41, errors=4342, successes=724)) appear by building from the master branch, so I know that this PR does not change that. Should probably investigate fixing or marking that package as broken.

@emilazy
Copy link
Member

emilazy commented Oct 11, 2024

Thanks for updating this :) An existing build failure is fine and normal; it’ll be dealt with in Zero Hydra Failures before the 24.11 release soon. Is there anything else blocking this or did you want to undraft?

@pyrox0
Copy link
Member Author

pyrox0 commented Oct 11, 2024

Nope, I'll undraft now, I don't see anything else that would be blocking.

@pyrox0 pyrox0 marked this pull request as ready for review October 11, 2024 18:07
@nix-owners nix-owners bot requested a review from natsukium October 11, 2024 18:09
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result of nixpkgs-review pr 330769 run on aarch64-linux 1

4 packages marked as broken and skipped:
  • python312Packages.magic-wormhole-mailbox-server
  • python312Packages.magic-wormhole-mailbox-server.dist
  • python312Packages.magic-wormhole-transit-relay
  • python312Packages.magic-wormhole-transit-relay.dist
4 packages failed to build:
  • tahoe-lafs
  • tahoe-lafs.dist
  • tahoe-lafs.doc
  • tahoe-lafs.info
42 packages built:
  • authentik
  • buildbot
  • buildbot-full
  • buildbot-ui
  • buildbot-worker
  • buildbot-worker.dist
  • buildbot.dist
  • gnome-keysign
  • gnome-keysign.dist
  • magic-wormhole (python312Packages.magic-wormhole)
  • magic-wormhole.dist (python312Packages.magic-wormhole.dist)
  • paperless-ngx
  • python311Packages.autobahn
  • python311Packages.autobahn.dist
  • python311Packages.channels
  • python311Packages.channels-redis
  • python311Packages.channels-redis.dist
  • python311Packages.channels.dist
  • python311Packages.daphne
  • python311Packages.daphne.dist
  • python311Packages.labgrid
  • python311Packages.labgrid.dist
  • python311Packages.magic-wormhole
  • python311Packages.magic-wormhole-mailbox-server
  • python311Packages.magic-wormhole-mailbox-server.dist
  • python311Packages.magic-wormhole-transit-relay
  • python311Packages.magic-wormhole-transit-relay.dist
  • python311Packages.magic-wormhole.dist
  • python311Packages.strawberry-graphql
  • python311Packages.strawberry-graphql.dist
  • python312Packages.autobahn
  • python312Packages.autobahn.dist
  • python312Packages.channels
  • python312Packages.channels-redis
  • python312Packages.channels-redis.dist
  • python312Packages.channels.dist
  • python312Packages.daphne
  • python312Packages.daphne.dist
  • python312Packages.labgrid
  • python312Packages.labgrid.dist
  • python312Packages.strawberry-graphql
  • python312Packages.strawberry-graphql.dist

@emilazy emilazy merged commit 3ab0313 into NixOS:master Oct 11, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants