How to use the sap.cf_logging.defaults.REDACTED function in sap

To help you get started, we’ve selected a few sap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED
github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED
github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED
github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED
github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED
github SAP / cf-python-logging-support / sap / cf_logging / record / request_log_record.py View on Github external
def _hide_sensitive_fields(self):
        if os.environ.get(LOG_SENSITIVE_CONNECTION_DATA, 'false').lower() != 'true':
            self.remote_ip = defaults.REDACTED
            self.remote_host = defaults.REDACTED
            self.remote_port = defaults.REDACTED
            self.x_forwarded_for = defaults.REDACTED

        if os.environ.get(LOG_REMOTE_USER, 'false').lower() != 'true':
            self.remote_user = defaults.REDACTED

        if os.environ.get(LOG_REFERER, 'false').lower() != 'true':
            self.referer = defaults.REDACTED