I cannot get it to work for me 20 subdomains.domain.com… It seems the browser extension cannot differentiate subdomains.

Wonder if there is an easier solution for those selfhosting?

The general Bitwarden discussion does not help: https://community.bitwarden.com/t/we-have-lots-of-subdomains-which-use-different-accounts-now-all-are-suggested/2332/6

That thread links to the official documentation here: https://bitwarden.com/help/uri-match-detection/

I have tried all input methods and none of them consistently work.

  • dragonlover@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 hours ago

    I set up authentik for all my subdomains. Everything either has an ODIC / LDAP login or is behind domain wide forward auth. Then everything is logged into from auth.my.domain and I don’t have to worry about juggling credentials. (Also its safer)

    I have local admin accounts for important stuff saved without a URL for autofill in case I need into something and authentication is down.

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      52 minutes ago

      This is one of the things that I love most about bitwarden/vaultwarden. The host/domain matching is amazing.

    • ComradeMiao@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      12 hours ago

      I typically use that, sadly. It seems to work somewhat but not for all subdomains…

      • LordOsslor@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        I pretty much use LDAP on all of it anyway, so its not really a problem, however, it seems to just randomly pick a subdomain and then fill that, so same issue

      • Buck@jlai.lu
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        I’ve never had it not work on Linux/Windows, and I use 20+ subdomains.

        What I can’t figure out however, it’s why iOS won’t find it, when it does find it for the “normal” domain matches for all other websites.

      • irotsoma@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        10 hours ago

        First, I don’t think it’s the backend that matters (Vaultwarden vs Bitwarden), I believe its the client (browser plugin, app, etc) in most cases that handles the filtering of sites that show in the popup or dropdown lists. Is it only on one platform that you have the issue?

        Also, to clarify, are you saying the plugin doesn’t detect the login form and thus doesn’t display even the popup/dropdown, or that it shows the list as expected, but a login you expect to show up is missing? The first issue actually may be an issue with the plugin properly detecting a certain type of login form, but may be an issue with the site. Some sites actually actively try to stop people from using password managers for whatever misguided reason. And the detection of login forms is an inexact thing, complicated by odd UI patterns or strangely named fields or odd proprietary implementations of password fields and not properly labeling them on some sites.

        If you’re saying you get the popup/dropdown but a site is missing for that subdomain, then is the correct subdomain listed I the list of URIs for the site with the exact format including https:// vs http:// I’ve had issues in the past with the http vs https though not always. But I rarely have issues with any other sites if they are exact matches to an entry in the URI list.

        I rarely use the browser plugin except on my laptop since on my phone I use the Keyguard app. I bought it ages ago when I switched from LastPass to Vaultwarden. But even on the Bitwarden browser plugin I haven’t had an issue once I set the setting to host. But the URI must match exactly the domain of the logon form itself, not the original site you browsed to. If, for example, the button or link you click on to get to the login page redirects you to another site or the form is an iframe or similar hosted at a different domain or subdomain, then it’s not going to show it to you unless you have that subdomain in the Vaultwarden login entry URI list. Or sometimes sites that make you enter your username alone first and then redirect or reload to enter the password are switching between multiple backend login forms depending on your particular username format. In this case if the site it redirects to is not on the URI list, it will now show up. Sites will also sometimes switch their login system to a separate SSO system that’s hosted on another subdomain and that would break a login you may have been using previously. Also, if it’s an iframe or similar issue, you may have to check the developer console of the browser to find out what subdomain is serving the form the password field is in. Note that if you get a popup asking you to add the site to Bitwarden after logging in without it, you can sometimes use that newly created entry to see what URI is added to the list in the new entry and then copy that to your existing one and delete the new one, or vice versa, so you don’t have duplicates.

        Anyway, if it’s none of that, then I have no clue. I haven’t experienced any issue if the proper full subdomain for the form is in the URI list and it’s not an issue where it’s not that it’s missing from the list, but that the list isn’t showing at all which is a form detection issue, not a subdomain detection issue.

      • perishthethought@piefed.social
        link
        fedilink
        English
        arrow-up
        5
        ·
        12 hours ago

        I don’t host vaultwarden (just use bitwarden). And I also changed this setting ages ago and yet still have the problem you’re reporting. Watching this thread to see if there’s a fix…

        • Leon@pawb.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 hours ago

          Vaultwarden is just the backend. You use the regular Bitwarden clients with it. That’s to say, any problems affecting the Bitwarden client will affect Vaulwarden users as well.

  • ArchEngel@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 hours ago

    I change Match Detection to Starts With, and then it gives me scary warnings, I ignore them, and go about my day - it works for me.

    • Arda@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      I believe the warning is because a site that starts with the same sub domain but isnt actually your site would still trigger it and let it auto fill, but thats also what I always used

      • WhatAmLemmy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        29 minutes ago

        The warning is because it can operate like a wildcard. If you used “http” it would appear as an autofill option on all sites. Not sure why you’d start with the subdomain and omit the domain.tld … That’s asking for trouble.