pierrejeambrun commented on code in PR #43396:
URL: https://github.com/apache/airflow/pull/43396#discussion_r1828146946


##########
airflow/api_fastapi/core_api/serializers/connections.py:
##########
@@ -34,8 +35,16 @@ class ConnectionResponse(BaseModel):
     login: str | None
     schema_: str | None = Field(alias="schema")
     port: int | None
+    password: str | None
     extra: str | None
 
+    @field_validator("password", mode="after")
+    @classmethod
+    def redact_password(cls, v: str | None) -> str | None:
+        if v is None:
+            return None
+        return redact(v)
+

Review Comment:
   yes like this. (Referencing my comment on the other PR)



-- 
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