feat: Ai Assisted Code suggestions: Sanitize prompts before sending to the backend
Problem to solve
Data collected in the prompt could contain sensitive information, such as IP addresses, usernames, passwords etc. should we sanitize the data before sending it to the backend so this kind of information will not leave the users IDE?
Example of a current prompt:
sql_server_ip = "192.168.1.120"
sql_server_user = "user"
sql_server_pass = "password
Proposed sanitized prompt:
sql_server_ip = "<ipv4 placeholder|x.x.x.x>"
sql_server_user = "<username placeholder|username>"
sql_server_pass = "<secret placeholder|secret>
Proposal
Find and replace sensitive information with placeholders, similar to the post processing done in the backend.
Edited by Fred de Gier