arthexis / sigils

Interpolate %[meta-text] with %[sigils]
MIT License
3 stars 1 forks source link

Protected sigils (sensitive data) #3

Open arthexis opened 1 year ago

arthexis commented 1 year ago

Add this to the README and make the necessary code changes:

By starting a sigil with a . character, you can protect it from being printed to logs. This is useful for sensitive data such as passwords.

.. code-block:: text

[[.MODEL='natural-key'.PASSWORD]] [[.USER=[[USERNAME]].SECRET]]

The sigil value will be replaced with [[REDACTED]] in the logs.

arthexis commented 1 year ago

Need to consider a new way to make these one work, currently sigils is transparent to logging and doesn't log anythign by default unless you are using --debug