mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #681] Excluded domain rules still in effect #457
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patrickli on GitHub (Oct 24, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/681
In the web vault you can configure domain rules for equivalent domains. This works for extra custom domains. But if I want to exclude a predefined
Global Equivalent Domains, the logins for excluded domains are still listed together.For example:
mi.com, xiaomi.comfrom the vault.mi.com, one item forxiaomi.com.mi.com.Expected Outcome:
Only item for
mi.comis listed in the extension.Actual Outcome:
Both items are listed.
This is tested on the Chrome extension. Tested with official bitwarden vault and it does not have this problem. Browser extension honored the exclusion correctly.
@patrickli commented on GitHub (Nov 3, 2019):
Had a dig myself today.
According to the syncService, it simply adds all that is returned from
/api/syncto theEquivalentDomainssetting.There is a difference in the returned values between the official API and this implementation.
Official Implementation
Under the
GlobalEquivalentDomainskey, no excluded domains are returned.bitwarden_rs Implementation
All domains including the excluded are returned, with an extra
Excludedattribute indicating whether the item is excluded. In fact the official implementation does not have theExcludedandTypeattributes at all.So the fix is to change the logic here and add a filter to remove all excluded items. Or this can be done as an extra parameter at
get_eq_domains.Sorry I can't code rust otherwise will try to do a PR.