Project

Profile

Help

Issue #6694

closed

RHSM CertGuard needs to only verify the path of the Distribution.base_path

Added by bmbouter almost 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 73
Quarter:

Description

Problem

Currently the RHSMCertGuard checks the full path which includes the /pulp/content/

Katello's certs disinclude the /pulp/content/ in their entitlement certs.

Solution

Have RHSMCertGuard only perform path checking on the Distribution.base_path

Actions #1

Updated by fao89 almost 4 years ago

  • Project changed from Pulp to CertGuard
  • Triaged changed from No to Yes
  • Sprint set to Sprint 72
Actions #2

Updated by rchan almost 4 years ago

  • Sprint changed from Sprint 72 to Sprint 73
Actions #3

Updated by bmbouter almost 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #4

Updated by pulpbot almost 4 years ago

  • Status changed from ASSIGNED to POST

Added by bmbouter almost 4 years ago

Revision ff4fd03d | View on GitHub

Adjust RHSM cert checking to only use base_path

The RHSMCertGuard was requiring the settings.CONTENT_PATH_PREFIX to also be one of the authorized urls in the certificate. This is not desirable due to compatability with a huge number of certificates already deployed to clients.

This PR removes the settings.CONTENT_PATH_PREFIX from the request.path so RHSMCertGuard authorization check. Now only the Distribution.base_path is expected in the client RHSM certificate.

The test are also updated with new certificates and base_paths due to authorized urls changing for RHSMCertGuard.

https://pulp.plan.io/issues/6694 closes #6694

Actions #5

Updated by bmbouter almost 4 years ago

  • Status changed from POST to MODIFIED

Added by bmbouter almost 4 years ago

Revision 50e42a32 | View on GitHub

Unskip test and RHSM path check and debug docs

This PR add:

  • Docs with examples of how the RHSM path authorization works
  • A debugging section on how to inspect RHSM certificates for authorized paths
  • unskips a test that was failing on Travis
  • A few very small fixes that did not affect users but could have been better

https://pulp.plan.io/issues/6694 closes #6694

Actions #6

Updated by bmbouter almost 4 years ago

Actions #7

Updated by bmbouter over 3 years ago

  • Sprint/Milestone set to 1.0.0 Release
Actions #8

Updated by bmbouter over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF