New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-2083] Subdomains exclusion #2289
Conversation
hey , any chance to have a review on this? Thanks |
Hi @jotak, Thank you for your contribution. This has been added to our internal Community PR board for review. Due to some recent changes to that part of the code, there is unfortunately a merge-conflict. Could please have a look at it. |
Feature request to allow all subdomains exclusion, based on domain suffix See also: https://community.bitwarden.com/t/excluded-sub-domains/30985 Signed-off-by: Joel Takvorian <jtakvori@redhat.com>
7af920d
to
cd4ad10
Compare
@djsmith85 More than a year since @jotak updated his branch 11 minutes after you requested it and nothing happened... |
Any chance this could get merged? It's annoying to have to click Never for every single service I access at work |
This is very needed. It's super annoying having to dismiss these popups all the time (those using Gitpod knows the pain) |
@jotak thank you for your contribution. As implemented, we will not merge this feature. Rather than making subdomain exclusion the default behavior, I think following our community member's suggestion of implementing some sort of wildcard (*.example.com) would be a more flexible solution. |
Is there another PR for this using Regex yet? Nothing new is referencing this PR since it's been closed.. I'd be happy to contribute the feature if not |
Maybe wildcard domain exclusion would be a simple yet powerful addition, regex might be overkill I don't know. Anyway, I would personaly love such kind of feature to exclude any applications hosted under a corporate subdomain. |
A wildcard would also benefit those who access devices by their IPs , i.e.: "10.42.0.*" |
I would like to see a wildcard option as well, besides the ip address example above and some of my self-hosted services, there are a lot other cases for example Citibank they can have different subdomains and I don't want to click them every time. |
Type of change
Objective
Feature request to allow all subdomains exclusion, based on domain suffix
See also: https://community.bitwarden.com/t/excluded-sub-domains/30985
Note: I'm not sure if backward compatibility would be expected for excluded domains, ie by default NOT excluding all subdomains when a specific excluded domain is set. If so, probably there could be a checkbox in the domain exclusion config screen, to explicitly ask for turning this feature on.
I can try to do that if requested, however would appreciate some guidance.
Code changes
In
notificationBar.ts
, instead of checking for the whole hostname in excluded domains, checks that hostnameendsWidth
any of the excluded domains.Screenshots
n/a
Testing requirements
non-regression on excluded domains / eventually add new test cases for subdomains exclusion.
Before you submit
npm run lint
) (required)