File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
airbyte_cdk/cli/airbyte_cdk Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 4040import rich_click as click
4141import yaml
4242from click import style
43- from numpy import isin
4443from rich .console import Console
4544from rich .table import Table
4645
@@ -398,9 +397,15 @@ def _print_ci_secrets_masks_for_config(
398397
399398
400399def _is_secret_property (property_name : str ) -> bool :
401- """Check if the property name is in the list of properties to mask."""
400+ """Check if the property name is in the list of properties to mask.
401+
402+ To avoid false negatives, we perform a case-insensitive check, and we include any property name
403+ that contains a rule entry, even if it is not an exact match.
404+
405+ For example, if the rule entry is "password", we will also match "PASSWORD" and "my_password".
406+ """
402407 names_to_mask : list [str ] = _get_spec_mask ()
403- if any ([property_name .lower () in mask .lower () for mask in names_to_mask ]):
408+ if any ([mask .lower () in property_name .lower () for mask in names_to_mask ]):
404409 return True
405410
406411 return False
You can’t perform that action at this time.
0 commit comments