uranusjr commented on code in PR #32867:
URL: https://github.com/apache/airflow/pull/32867#discussion_r1285362582


##########
airflow/models/connection.py:
##########
@@ -43,6 +47,30 @@ def parse_netloc_to_hostname(*args, **kwargs):
     return _parse_netloc_to_hostname(*args, **kwargs)
 
 
+def sanitize_conn_id(conn_id: str | None) -> str | None:
+    """
+    Sanitizes the connection id and allows only specific characters to be 
within. Namely,
+    it allows alphanumeric characters plus the symbols @,#,$,%,&,!,-,_,. and 
() from 1
+    and up to 200 consecutive matches.

Review Comment:
   ```suggestion
       """Sanitizes the connection id and allows only specific characters to be 
within.
       
       Namely, it allows alphanumeric characters plus the symbols 
@,#,$,%,&,!,-,_,. and ()
       from 1 and up to 200 consecutive matches.
   ```



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