Sha256: c2eaeb5c0aac9fdb08b9791888f9f9a16844b087890d6e89ad7e05341e7a2462
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 Bytes
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Utils # Determine if configuration keys is excluded from logging module ExcludeKey EXCLUDE_FROM_LOG = %w[api api_key url service_key user_name].cs__freeze class << self # Check if a config key can be logged or not # # @param key [String] key to check # @return[Boolean] true | false def excludable? key EXCLUDE_FROM_LOG.any? { |exclude_key| key.include? exclude_key } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems