Skip to content

Conversation

@doudou
Copy link
Member

@doudou doudou commented Dec 30, 2025

apt-key is deprecated. One is now supposed to save the keys separately in
/etc/apt/keyrings and refer to them with the signed-by attribute.

This commit updates the existing scheme to allow for named keys, that is
the 'keys' entries in osrepos can have a 'name' entry, and the 'repo' entries
should have a 'key' entry with the name of that key

If a key has a name, it is saved in /etc/apt/keyrings instead of being passed
to apt-key. If a repo has a 'key' entry, it gets the corresponding signed-by
attribute.

@doudou doudou requested a review from g-arjones December 30, 2025 01:49
…ebian key management

apt-key is deprecated. One is now supposed to save the keys separately in
/etc/apt/keyrings and refer to them with the signed-by attribute.

This commit updates the existing scheme to allow for named keys, that is
the 'keys' entries in osrepos can have a 'name' entry, and the 'repo' entries
should have a 'key' entry with the name of that key

If a key has a name, it is saved in /etc/apt/keyrings instead of being passed
to apt-key. If a repo has a 'key' entry, it gets the corresponding signed-by
attribute.
@doudou doudou force-pushed the new_apt_key_management branch from 1ad26d8 to c35fe5c Compare December 30, 2025 14:59
Aruba 2.2 seems to have a weird bug related to accessing `stdin`. Stick to 2.1
on ruby < 3 and move to 2.3 on ruby > 3
@g-arjones
Copy link
Contributor

Cool! Tests are failing though...

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.

3 participants