Project

General

Profile

Actions

Feature #24506

open

filter out some RSA private keys which are logged by some /api/v2 requests

Added by Anonymous over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

RSA private keys are written in /var/log/foreman/production.log which have a 644 default mode.


2018-08-01T07:51:30 [I|kat|] GET: https://foremanproxy01.mycompany.com/pulp/api/v2/repositories/f8a653cb-30f3-4a0e-8077-2c5398dfcddb/?details=true: {"content_type"=>"application/json", "accept"=>
"application/json"}
Response: 200: {"........

The JSON data sent as response to this GET request contains certificate and private key.
Maybe private keys should not be logged, or at a higher level. If I m not wrong, it s the "information" level but the answer payload is fully dumped in log file.

Actions #1

Updated by Jonathon Turel over 5 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions #2

Updated by Zach Huntington-Meath over 5 years ago

  • Target version changed from Katello 3.9.0 to Katello Backlog
Actions

Also available in: Atom PDF