Project

Profile

Help

Issue #1667

closed

repo protection is not properling looking for client cert (causing ISE 500)

Added by jsherril@redhat.com about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

This line here

https://github.com/pulp/pulp/blob/master/oid_validation/pulp/oid_validation/oid_validation.py#L32

seems to be not looking up the SSL client certificate properly. It throws an exception:

Exception Type: KeyError
Exception Value:
'mod_ssl.var_lookup'

on that line. This is through apache.

Actions #1

Updated by jcline@redhat.com about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jcline@redhat.com
  • Platform Release set to 2.8.0
Actions #2

Updated by jcline@redhat.com about 8 years ago

  • Status changed from ASSIGNED to POST
  • Triaged changed from No to Yes

Added by Jeremy Cline about 8 years ago

Revision 4ba83c87 | View on GitHub

Use SSL_CLIENT_CERT and fall back to mod_ssl.var_lookup.

Depending on how a request arrives and who is performing the authentication, mod_ssl.var_lookup may not be present and SSL_CLIENT_CERT is. This commit causes the authenticator to look in both locations for the certificate and if neither can be found, it returns False. Previously, it would cause an HTTP 500 by raising a KeyError.

closes #1667

Added by Jeremy Cline about 8 years ago

Revision 4ba83c87 | View on GitHub

Use SSL_CLIENT_CERT and fall back to mod_ssl.var_lookup.

Depending on how a request arrives and who is performing the authentication, mod_ssl.var_lookup may not be present and SSL_CLIENT_CERT is. This commit causes the authenticator to look in both locations for the certificate and if neither can be found, it returns False. Previously, it would cause an HTTP 500 by raising a KeyError.

closes #1667

Actions #3

Updated by Anonymous about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #5

Updated by dkliban@redhat.com almost 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF