Skip to content

cloud-init shouldn't use apt-key #3405

@ubuntu-server-builder

Description

@ubuntu-server-builder

This bug was originally filed in Launchpad as LP: #1836336

Launchpad details
affected_projects = []
assignee = holmanb
assignee_name = Brett Holman
date_closed = 2021-11-02T19:54:11.759887+00:00
date_created = 2019-07-12T08:41:08.109276+00:00
date_fix_committed = 2021-10-29T19:34:13.901299+00:00
date_fix_released = 2021-11-02T19:54:11.759887+00:00
id = 1836336
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1836336
milestone = None
owner = juliank
owner_name = Julian Andres Klode
private = False
status = fix_released
submitter = juliank
submitter_name = Julian Andres Klode
tags = []
duplicates = [1892493, 1930281]

Launchpad user Julian Andres Klode(juliank) wrote on 2019-07-12T08:41:08.109276+00:00

In cc_apt_configure.py, add_apt_key_raw() uses apt-key to add keys. apt-key is deprecated (that's why it prints a warning)

It should instead be dropping raw .gpg files or (optionally, starting with bionic / apt 1.4) ASCII armored .asc files into trusted.gpg.d, with a name matching the name of the source.

Not sure if there are other places.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions