korbit-ai[bot] commented on code in PR #32041:
URL: https://github.com/apache/superset/pull/32041#discussion_r1935684855


##########
superset/db_engine_specs/TDengine.py:
##########
@@ -0,0 +1,19 @@
+# TDengine driver for Apache SuperSet
+from superset.db_engine_specs.base import  BaseEngineSpec
+
+class TDengineEngineSpec(BaseEngineSpec):
+    engine = "taosws"
+    engine_name = "TDengine"
+    max_column_name_length = 64
+    default_driver = "taosws"
+    sqlalchemy_uri_placeholder = 
("taosws://user:password@host:port/dbname[?key=value&key=value...]")

Review Comment:
   ### Insecure Credential Example in URI Placeholder <sub>![category 
Security](https://img.shields.io/badge/Security-e11d48)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The connection string example includes 'user:password' which could encourage 
users to include actual credentials in code or configuration files.
   
   ###### Why this matters
   Even example credentials in placeholder strings can lead to security issues 
if users copy-paste them as templates, potentially committing actual 
credentials to version control.
   
   ###### Suggested change ∙ *Feature Preview*
   ```python
   sqlalchemy_uri_placeholder = 
"taosws://{username}:{password}@host:port/dbname[?key=value&key=value...]"
   ```
   or
   ```python
   sqlalchemy_uri_placeholder = 
"taosws://username:******@host:port/dbname[?key=value&key=value...]"
   ```
   
   
   </details>
   
   <sub>
   
   [![Report a problem with this 
comment](https://img.shields.io/badge/Report%20a%20problem%20with%20this%20comment-gray.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmNWVjMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10cmlhbmdsZS1hbGVydCI+PHBhdGggZD0ibTIxLjczIDE4LTgtMTRhMiAyIDAgMCAwLTMuNDggMGwtOCAxNEEyIDIgMCAwIDAgNCAyMWgxNmEyIDIgMCAwIDAgMS43My0zIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/dce536b8-1807-4b32-8018-5604ca915476?suggestedFixEnabled=true)
   
   💬 Chat with Korbit by mentioning @korbit-ai.
   </sub>
   
   <!--- korbi internal id:9fc09c6e-7d28-41fa-9f7b-8de46e196c00 -->
   



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to