Bug #15471
Foreman Fails to load Smart-Proxy PuppetCA page
Description
When navigating to the PuppetCA Smart-Proxy and going to the PuppetCA tab Foreman fails to load the page throwing an argument error. Debug logs from the Foreman production.log is attached as well as a screenshot of the webUI. All other functions of the PuppetCA Smart-Proxy seem to be working as expected.
http://pasteboard.co/1Pl9rITX.png
http://pastebin.com/pfj0C6dg
Associated revisions
Fixes #15471 - Find CA expiry even if some dates are missing
If some certificates in the puppet CA proxy are missing dates, the proxy
view for puppet CA will be broken as the comparison used to find the CA
certficate's expiry date will fail. This change also adds a minor
optimization - running in O(n) instead of O(nlogn).
(cherry picked from commit 20fb338ed84d7c024c9a00d96cd4509bcc2d84f8)
History
#1
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/3605 added
#2
Updated by Tomer Brisker over 4 years ago
The root cause for this is that you have a certificate missing the "valid from" field on your CA proxy - you might be interested in looking into that.
In any case, I've created a patch that prevents this failure (see linked PR).
#3
Updated by Chris Pisano over 4 years ago
Tomer Brisker wrote:
The root cause for this is that you have a certificate missing the "valid from" field on your CA proxy - you might be interested in looking into that.
In any case, I've created a patch that prevents this failure (see linked PR).
Thank you for this! I was banging my head against the wall yesterday. I'll test out this patch in my lab after I'm finished going through my production certs and clearing things up.
#4
Updated by Anonymous over 4 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 20fb338ed84d7c024c9a00d96cd4509bcc2d84f8.
#5
Updated by Dominic Cleal over 4 years ago
- Legacy Backlogs Release (now unused) set to 161
Fixes #15471 - Find CA expiry even if some dates are missing
If some certificates in the puppet CA proxy are missing dates, the proxy
view for puppet CA will be broken as the comparison used to find the CA
certficate's expiry date will fail. This change also adds a minor
optimization - running in O(n) instead of O(nlogn).