您可以控制敏感信息(如 IP 地址和主机名)是否显示在运行状况检查 API https://WS1AccessHostnameFQDN/SAAS/jersey/manager/api/system/health
和 https://WS1AccessHostnameFQDN/SAAS/API/1.0/REST/system/health
的输出中。默认情况下,API 输出中不包含此类信息。
runtime-config.properties 文件中的 service.health.check.basic
属性可控制该设置。当该属性设置为 true 时,将会仅显示基本信息,而隐藏敏感信息。输出中的标签 "unknown" 指示信息受到限制。例如:
AnalyticsUrl: "unknown" OpensearchServiceOk: "true" EhCacheClusterPeers: "unknown" OpensearchMasterNode: "unknown" OpensearchIndicesCount "unknown" OpensearchDocsCount: "unknown" AuditPollInterval: "1000" AnalyticsConnectionOk: "true" ... IpAddress: "unknown" AuditDisabled: "false" AllOk: "true"
当该属性设置为 false 时,将会显示所有可用信息。例如:
AnalyticsUrl: "http://198.51.100.0" OpensearchServiceOk: "true" EhCacheClusterPeers: "" OpensearchMasterNode: "198.51.100.1" OpensearchIndicesCount: "13" OpensearchDocsCount: "11173" AuditPollInterval: "1000" AnalyticsConnectionOk: "true" ... IpAddress: "198.51.100.2" AuditDisabled: "false" AllOk: "true"
默认情况下,该属性设置为 true。
注: 如果您设置了一个
Workspace ONE Access 集群,则在更改该属性时,请确保在集群的所有节点中进行更改。