Login items with local TLD matched according to "Base domain" rule contrary to the information in the docs?

My setup
Default URI match detection set to Base domain.
Login item with urls http://localhost, http://domainX.company.local, http://domainY.company.local, all set to Default match detection.

Being on page with url http://logstash.test.company.local/(…) Bitwarden shows above login item as matching.

Isn’t this contrary to the the following note (emphasis mine):

Login items intended to auto-fill in a URI with a local TLD (e.g. http://mysite.local or https://mysite.lan) or single-term hostname (e.g. http://localdevice) will not be available for base domain detection. We recommend using host matching.


Seems you are right. I would suggest reporting this as a bug (local TLDs are matched on “Base Domain” rule) using a GitHub Issue report.

I reported it here Local TLDs are matched on “Base Domain” rule · Issue #8309 · bitwarden/clients · GitHub and the only person who left a comment couldn’t reproduce it.

Maybe try contacting support to see if they can troubleshoot (in case it’s an issue on your end)?

I don’t have access to a .local domain that I could test on, unfortunately.

You could easily have any domain you want locally using hosts file – hosts (file) - Wikipedia

Thanks — to test your issue, wouldn’t I also need to run a local server that is listening for HTTPS requests sent to the domain? For example, if I go to https://localhost, I just get an error message (“localhost refused to connect”).

Right, you need http server and we can skip https (which requires setting up certificates).
If you have Python you can run http server like this python3 -m http.server 8000 and add port number to test URI – http://test.company.local:8000/

Thanks. I don’t have Python installed on my current laptop, unfortunately. Thus, I don’t want to promise to go ahead with setting up a test for your issue. However, in case I do decide to take those steps, I would need a few more instructions:

  • How to kill the HTTP server.
  • How to set up the hosts file entry to associate the Python HTTP server with a .local domain (i.e., what IP address to put in the first column).

When you run it with python3 -m http.server 8000 it runs in the foreground meaning it waits for your kepresses on command line. When you press Ctrl-C it quits.

In the first column you put IP address of localhost which is so it would be test.company.local

1 Like