dlt-hub / verified-sources

Contribute to dlt verified sources 🔥
https://dlthub.com/docs/walkthroughs/add-a-verified-source
Apache License 2.0
72 stars 50 forks source link

rest_api: mask secrets in config #542

Closed willi-mueller closed 3 months ago

willi-mueller commented 3 months ago

Tell us what you do here

fixing a bug (please link a relevant bug report)

Short description

The masking of secrets works as follows:

  1. deepcopy the configuration dict
  2. take the auth configuration and replace all values for allowed sensitive keys with masked versions
  3. validate the deep copy where sensitive values are replaced

Assumption: Authentication objects that are not dictionaries are expected not to print their sensitive values when __str__() is called.

Complexity:

Related Issues