Bug 1733563

Summary: ipa-healthcheck: add a filter to anonymize output
Product: Red Hat Enterprise Linux 8 Reporter: François Cami <fcami>
Component: ipa-healthcheckAssignee: Rob Crittenden <rcritten>
Status: CLOSED WONTFIX QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: fcami
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-04 13:48:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description François Cami 2019-07-26 14:12:19 UTC
Description of problem:

ipa-healthcheck's output contains detailed information about the host (fqdn), realm, etc.

It would be nice to have a CLI option to anonymize the output


Version-Release number of selected component (if applicable):
ipa-healthcheck-0.2


How reproducible:
Always


Steps to Reproduce:
1. Launch ipa-healthcheck
2. Examine output


Actual results:

Output contains:
* hostname:
    {
        "source": "ipahealthcheck.meta.core",
        "check": "MetaCheck",
        "severity": 0,
        "uuid": "7cc97681-c30c-47ae-a1eb-a7f23d8974f8",
        "when": "20190726140932Z",
        "duration": "0.000108",
        "kw": {
            "fqdn": "f29-idm0.laptop.example.org",
            "ipa_version": "4.7.91.dev201906201640+git970af1346",
            "ipa_api_version": "2.232"
        }
    },
* realm:
    {
        "source": "ipahealthcheck.ipa.files",
        "check": "IPAFileNSSDBCheck",
        "severity": 0,
        "uuid": "7c67e7c5-a844-4fad-bf83-2721552313c9",
        "when": "20190726140931Z",
        "duration": "0.000056",
        "kw": {
            "key": "_etc_dirsrv_slapd-LAPTOP-EXAMPLE-ORG_cert9.db_mode",
            "type": "mode",
            "path": "/etc/dirsrv/slapd-LAPTOP-EXAMPLE-ORG/cert9.db"
        }
    },



Expected results:
With an appropriate filter, no IP addresses, no usernames, no hostnames, no realms, no DNS zone appears.