Project

Profile

Help

Backport #9429

Backport #9350 "gpgkey value created for .repo file wrongly has two slashes after hostname; fails to verify signature" to 3.14.z

Added by dalley 25 days ago. Updated 24 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 105
Quarter:
Q4-2021

Description

Noticed when adding and installing a repo build with pulp.

"Error: Failed to download metadata for repo 'mycompany-2.x-rhel-8': repomd.xml GPG signature verification error: Bad GPG signature "

Looking at the repo config


[mycompany-2.x-rhel-8]
enabled=1
baseurl=https://download.mycompany.com/2.x-rhel-8/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://download.mycompany.com//2.x-rhel-8/repodata/repomd.xml.key
                        notice       ^^

It seems to be constructed here: https://github.com/pulp/pulp_rpm/blob/c29fe23ccb01bb9b148a38f450fe2ede4703bae3/pulp_rpm/app/models/repository.py#L442-449

versionmap:

    core: 3.14.4
    rpm: 3.14.1
    file: 1.8.2
    deb: 2.14.1
    container: 2.8.0

Related issues

Copied from RPM Support - Issue #9350: gpgkey value created for .repo file wrongly has two slashes after hostname; fails to verify signatureMODIFIED<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision b0e42a79 View on GitHub
Added by dalley 24 days ago

backports edge case where gpg key location in .repo file is invalid

backports: #9350 https://pulp.plan.io/issues/9350

fixes #9429

(cherry picked from commit f53002466efd809e1d49f2b0f8c6fb12ea344293)

History

#1 Updated by dalley 25 days ago

  • Copied from Issue #9350: gpgkey value created for .repo file wrongly has two slashes after hostname; fails to verify signature added

#2 Updated by dalley 24 days ago

  • Status changed from NEW to MODIFIED
  • % Done changed from 0 to 100

#3 Updated by pulpbot 24 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF