bernardo-bruning / ollama-copilot

Proxy that allows you to use ollama as a copilot like Github copilot
MIT License
356 stars 24 forks source link

ollama-copilot making requests to copilot-telemetry.githubusercontent.com - why? #20

Open sprig opened 3 hours ago

sprig commented 3 hours ago

Hello,

Thanks for making this tool!

I use LuLu and while it's not perfect, sometimes things pop up; Screenshot 2024-11-15 at 15 29 52

So, looking at recent DNS logs, I see:

;QUESTION
copilot-telemetry.githubusercontent.com. IN A
;ANSWER
copilot-telemetry.githubusercontent.com. 3561 IN CNAME copilot-telemetry-service.githubusercontent.com.
copilot-telemetry-service.githubusercontent.com. 3561 IN CNAME glb-db52c2cf8be544.github.com.
glb-db52c2cf8be544.github.com. 21 IN A 140.82.114.22
;AUTHORITY
;ADDITIONAL
id 51567
opcode QUERY
rcode NOERROR
flags QR RD RA
edns 0
eflags DO
payload 1232

Why is ollama-copilot making requests to copilot-telemetry.githubusercontent.com and how do I prevent this (from the software itself, not via firewall)?

I couldn't find any code initiating telemetry in this repo so it might be a relayed request or a library.

sprig commented 2 hours ago

OK, looking further at the code, it looks like the proxy just forwards just any random requests except for ones which it rewrites. Personally, I don't like this. I will try to disable this and perhaps submit a PR for an optional flag, if you would (potentially) accept it.