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

Error updating apt repo: Policy rejected packet type Caused by: Signature Packet v3 is not considered secure #3869

Closed
er0k opened this issue Dec 24, 2024 · 5 comments
Assignees
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/release Categorizes an issue or PR as relevant to SIG Release. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@er0k
Copy link

er0k commented Dec 24, 2024

What happened:

I recently updated apt to 2.9.19 on Debian sid and I'm unable to update the kubernetes repositories. When I run apt update I get this error:

Get:4 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.32/deb  InRelease [1,186 B]
Err:4 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.32/deb  InRelease
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Policy rejected packet type  Caused by:     Signature Packet v3 is not considered secure since 2021-02-01T00:00:00Z
Hit:17 https://download.sublimetext.com apt/dev/ InRelease
Warning: GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.32/deb  InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Policy rejected packet type  Caused by:     Signature Packet v3 is not considered secure since 2021-02-01T00:00:00Z
Error: The repository 'https://pkgs.k8s.io/core:/stable:/v1.32/deb  InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.

What you expected to happen:

I can run apt update to update kubernetes package information

How to reproduce it (as minimally and precisely as possible):

  1. configure kubernetes apt repo according to these instructions
  2. use apt 2.9.19
  3. run apt update

Anything else we need to know?:

apt-listchanges says:

apt (2.9.19) unstable; urgency=medium

This release switches to OpenSSL for hashing and TLS, replacing the
GnuTLS and gcrypt libraries.

I'm not sure if this is a bug in apt, but all my other repositories are working fine, only the kubernetes repo is throwing this error. apt update works fine in Debian stable (12/bookworm) using apt 2.6.1 with the kubernetes repo.

Environment:

$ uname -srvo
Linux 6.12.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.6-1 (2024-12-21) GNU/Linux
$ apt --version
apt 2.9.19 (amd64)
$ head -n1 /etc/os-release 
PRETTY_NAME="Debian GNU/Linux trixie/sid"
$ openssl version
OpenSSL 3.3.2 3 Sep 2024 (Library: OpenSSL 3.3.2 3 Sep 2024)
@er0k er0k added area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. sig/release Categorizes an issue or PR as relevant to SIG Release. labels Dec 24, 2024
@xmudrii
Copy link
Member

xmudrii commented Dec 24, 2024

I can confirm this issue, however, this issue is with our repositories provider (OpenBuildService) and we can't do much about this at the moment. We'll raise this issue with them, but given it's the holidays seasons, it might take a while for this to get sorted out.

For time being, I advise staying away from apt 2.9.19 if possible. apt 2.9.16 is working fine.

/triage accepted
/priority critical-urgent
/assign

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. and removed needs-priority labels Dec 24, 2024
@xmudrii
Copy link
Member

xmudrii commented Dec 24, 2024

Update: I've sent a message to the OpenBuildService folks via their IRC channel.

@mythi
Copy link

mythi commented Jan 4, 2025

I've followed theapt issue a bit more as I ran into it also. apt moved to sqv based signature verification method and the sqv default policy rejects the OBS generated apt repos. Details openSUSE/open-build-service#4174

However, the "latest" version of apt should now give more time for repos to move to v3+:

cat /usr/share/apt/default-sequoia.config
[hash_algorithms]
sha1.second_preimage_resistance = 2026-01-01
[packets]
signature.v3 = 2026-01-01

The gpgv based verification method is still supported:

sudo apt update -o APT::Key::GPGVCommand=1

@xmudrii
Copy link
Member

xmudrii commented Jan 6, 2025

@mythi Thanks for reporting this! I can confirm that the latest apt version v2.9.21 is not affected by this issue, so our recommendation is to upgrade your apt if you're affected by this issue. Other than that, there's nothing else we can do on our side until this is not fixed on the OBS side.

Because of that, I'll go ahead and close this issue.
/close

@k8s-ci-robot
Copy link
Contributor

@xmudrii: Closing this issue.

In response to this:

@mythi Thanks for reporting this! I can confirm that the latest apt version v2.9.21 is not affected by this issue, so our recommendation is to upgrade your apt if you're affected by this issue. Other than that, there's nothing else we can do on our side until this is not fixed on the OBS side.

Because of that, I'll go ahead and close this issue.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/release Categorizes an issue or PR as relevant to SIG Release. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants