AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.38k stars 246 forks source link

Allow configuring HTTP basic authentication for DoH Server #359

Closed ameshkov closed 11 months ago

ameshkov commented 11 months ago

DnsLibs has recently implemented basic authentication support on the client-side: https://github.com/AdguardTeam/DnsLibs/issues/189

The end goal is to add DoH Basic auth to both AdGuard Home and AdGuard DNS as a way to:

  1. Recognize the client that's connecting to the DoH server.
  2. Ensure that no other client can be using the DoH server.

In order to do that, we first need to implement basic authentication support in dnsproxy (both for DoH server and DoH client -- there will be a separate task about the client-side).