Project

General

Profile

Bug #25823

Unable to retrieve gpg_keys through smart proxy

Added by Alan Evans 6 months ago. Updated 25 days ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

puppet-foreman_proxy_content/PR 181 which is in response to #24316 has caused unintended problems.

GPG urls returned by candlepin in `/rhsm/consumers/<id>` contain "../../katello/api/repositories/<id>/gpg_key_content". When retrieving these directly from a katello server there is no problem. Trying to retrieve the URL using a smart proxy as a reverse proxy fails because of PR 181.

https://katello.example.net/katello/api/repositories/&lt;id&gt;/gpg_key_content = HTTP 200
https://katello-proxy.example.net/katello/api/repositories/&lt;id&gt;/gpg_key_content = HTTP 404

I would submit a PR but I do not what the plan is for the v1/v2 APIs going forward.

If v1/v2 should both remain supported then PR 181 should have added v2 URL support, not replaced v1. If the plan is to deprecate the v1 API then some other work has to be done. Candlepin seems to store the gpgUrl internally and any repo created pre (well I'm not sure which version exactly, but my repos were created in katello 3.4 and upgraded through to 3.9) will have to be updated from katello to candlepin. Rake task? Part of 30-upgrade.rb?


Related issues

Related to Katello - Bug #24316: Smart proxy missing GPG key (ProxyPass missing)Closed

Associated revisions

Revision 81f1a08b (diff)
Added by Jonathon Turel 2 months ago

Fixes #25823 - Unable to retrieve GPG keys through smart proxy

History

#1 Updated by Alan Evans 6 months ago

  • Description updated (diff)

#2 Updated by Andrew Kofink 6 months ago

  • Related to Bug #24316: Smart proxy missing GPG key (ProxyPass missing) added

#3 Updated by Andrew Kofink 6 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello Backlog

#4 Updated by The Foreman Bot 4 months ago

  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/8054 added

#5 Updated by Samir Jha 4 months ago

  • Assignee deleted (Samir Jha)
  • Pull request deleted (https://github.com/Katello/katello/pull/8054)

Wrong PR linked.

#6 Updated by Jonathon Turel 3 months ago

  • Assignee set to Jonathon Turel

#7 Updated by Jonathon Turel 2 months ago

  • Triaged changed from Yes to No

#8 Updated by The Foreman Bot 2 months ago

  • Triaged changed from No to Yes
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8103 added

#9 Updated by Jonathon Turel 2 months ago

  • Triaged changed from Yes to No
  • Target version changed from Katello Backlog to Katello 3.10.2

#10 Updated by Jonathon Turel 2 months ago

  • Status changed from Ready For Testing to Closed

#11 Updated by John Mitsch about 2 months ago

  • Triaged changed from No to Yes

#12 Updated by Brad Buckingham about 1 month ago

  • Bugzilla link set to 1717069

#13 Updated by Jonathon Turel 25 days ago

  • Target version changed from Katello 3.10.2 to Katello 3.11.2

Also available in: Atom PDF