RehanAhmad25 commented on code in PR #72499:
URL: https://github.com/apache/airflow/pull/72499#discussion_r4387523912


##########
airflow-core/docs/core-concepts/params.rst:
##########
@@ -453,6 +457,50 @@ Finally the fourth section shows advanced form elements.
     ``description_html`` is now super-seeded with the attribute 
``description_md``. ``description_html`` is not supported anymore.
     Custom form elements using the attribute ``custom_html_form`` was 
deprecated in version 2.8.0 and support was removed in 3.0.0.
 
+.. _params-masking:
+
+Masking Sensitive Param Values
+-------------------------------
+
+.. versionadded:: 3.4.0
+
+If a ``string``-typed :class:`~airflow.sdk.definitions.param.Param` is 
declared with ``format="password"``,
+its value is masked wherever Airflow already masks sensitive values:
+
+.. code-block::
+
+    with DAG(
+        "the_dag",
+        params={
+            "api_token": Param(
+                default="",
+                type="string",
+                format="password",
+            ),
+        },
+    ):
+
+This is masked in:
+
+- The Trigger UI Form, as a password-style input with a show/hide toggle.

Review Comment:
   Applied, thanks. Pushed with the other changes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to