-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support multiple urls per entry [$30 awarded] #398
Comments
You can only add one URL per entry. But you can add more as custom attributes when needed. 2.2.0 will also support references, so you create multiple entries referencing each other where only specific fields are different (e.g. the URL). |
Would there be an option to show the referenced entries as simply being additional attributes in the first, so that the number of entries remains the same and everything is held together? Understand that due to the keepass compatibility that it is not possible to do this in the database, but displaying it otherwise in app would be a good workaround |
Hiding entry just because they have reference seems a little confusing to me and it will be complex to implement. We already have a nice way to display Reference-entry. |
Not as far as I know, my thinking was just that if a user simply wants multiple urls for the exact same entry, we deliver that to the user, while keeping the keepass backend exactly the same. it is the exact same account over all 3 urls, so wouldnt it make more sense to display it as a single entry to be updated and interacted with, and display one entry in keepassxc rather than 3? |
We need to remain compatible with other KDBX implementations. You can of course, add multiple URLs as advanced/custom fields. |
then we will need to broaden the keehttp protocol to integrate that with the extensions though, would we not? |
No, this is already a feature in the http plugin. It searches the attributes for a specific key name. I believe that is in the settings |
what is the standard for more than two urls? two seems fine, however you cant have more than one field with the same name, and it doesnt detect when two urls are in the same field |
Looks like you create an attribute with the name of "KPH: XXXX" and the value of the URL you want to match against. XXXX can be anything |
Many people mentioned that KeeFox has this feature [1][2], so I studied its implementation. Detailed descriptions with a screenshot can be found at KeeFox's wiki page. [3] Data for additional URLs are stored in an advanced attribute "KPRPC JSON". It stores more than additional URLs. {
"version":1,
"alwaysAutoFill":false,
"neverAutoFill":false,
"alwaysAutoSubmit":false,
"neverAutoSubmit":false,
"priority":0,
"altURLs":["https://foo.com"],
"hide":false,
"blockedURLs":["https://bar.com"],
"regExBlockedURLs":["https://bad.com"],
"regExURLs":["https://good.com"],
"blockHostnameOnlyMatch":false,
"blockDomainOnlyMatch":false
} The implementation can be found in keepassrpc, the backend behind KeeFox. [4] [1] pfn/passifox#296 (comment) |
Another implementation submitted to pfn/keepasshttp: pfn/keepasshttp#340 It put configurations in |
Since this KeePassHttp thing is dying (#913) and KeePassXC-Browser is here I'd like to ask if this feature has a chance to be implemented? I know I could create multiple entries that use references, but that would generate redundant entries that only vary in the URL which doesn't feel "right" for me. It would also be totally fine to me if keepassxc-browser could use the additional properties for the lookup so I could add these urls there. By this the entry would still contain only one URL which is opened by keepassxc but the browser plugin could find the same entry for other urls, too. |
Also entries can't reference custom fields, so TOTP Seeds needs to be duplicated. I think it would be better to support multiple urls via some additional setting like |
I created a proof-of-concept patch at #1769. I'll be glad to hear some feedback :) |
What about just supporting the scheme KeeFox (now Kee) uses? I don't know if I am the only one, but I am extensibly making use of KeeFox' multi URL feature, and having to replicate all of that for KeePassXC would be a bit frustrating. Why can't KeeKassXC re-use what is already there? |
Can you link us to this scheme? There is literally nothing in the KDBX scheme that supports this feature. It is a custom job no matter what. |
Quite near :) |
Oh lol |
I think we can implement multiple URLs quite easily. Just add new URL fields and add a counter to their name. In other implementations, they will just appear as additional string fields. The KeeFox implementation is extremely ugly, though. |
I started a bounty https://www.bountysource.com/issues/43057047-support-multiple-urls-per-entry please join in if you would like to see this feature. |
I think it's really important to be compatible with Keepass2Android because many users will use the same database on PC and Android. |
I agree. Supporting |
Work is in progress: https://github.com/varjolintu/keepassxc/tree/feature/multiple_urls if you want to try it, but it's not ready for an official PR yet. For now, the URL's can be added/edited/removed via the new Browser Integration page under Entry settings. But it's also fine to add the custom attributes manually. This list reads the |
Great thanks @varjolintu . I don't have my own build environment set up so I can't try it yet but as soon as there is a built release I would be very happy to try it. |
There is a bounty in your future! |
* Fixes keepassxreboot#398 The new Browser Integration entry settings page has a list view with any additional URL's. These URL's are added to the entry attributes with KP2A_URL_<counter>, which means those are directly compatible with Keepass2Android.
* Fixes #398 The new Browser Integration entry settings page has a list view with any additional URL's. These URL's are added to the entry attributes with KP2A_URL_<counter>, which means those are directly compatible with Keepass2Android.
It's very nice many thanks @varjolintu |
* Fixes keepassxreboot#398 The new Browser Integration entry settings page has a list view with any additional URL's. These URL's are added to the entry attributes with KP2A_URL_<counter>, which means those are directly compatible with Keepass2Android.
Is there a way to bulk-add sites? The Stack Exchange network of sites currently has 176 sites in it, and they all use the same login credentials. Adding them one-by-one is clearly impractical. |
@zeorin Just use |
Good point. There are a few that aren't subdomains (AskUbuntu, StackOverflow, etc.) but that's manageable. |
Why the minimum URL match accuracy was deemend not to usable and this additional URL to be used instead? E1: I migrated from Bitwarden to KeepassXC and I have many legacy URLs which have different URLs to same site. KeepassXC is unable to recognize almost any website which have these external pop up window logins etc with different URLs and would need a manual reset on almost every site. Keepass addon Kee has this URL match accuracy which seems to be very accurate and helps with the pop up login fields. I don't know does anybody else have these issues but I would really like to migrate to KeepassXC rather than be on Keepass or Bitwarden but I'm way too lazy to manually correct over 1000 URLs. E2: Also a one solution would be a somekind of an URL checker program which would get rid off any other than the needed for KeepassXC, for example, https://www.nba.com E3: Or I just edit everything when these occur. Damnit. |
Why this feature is not included inside the Debian 12 KeePassXC package ? Here is my current version :
Is it because Debian team removes some "parts" of the software ? |
@Hidigoudi If Browser Integration is enabled, the feature should be there. |
Oh ok I see, is it work with Auto-Type also ? If browser integration is enabled I mean. Is there a link with the Browser Extension, it's weird ?! |
@Hidigoudi Those are two different features. The only thing common between those two is that the browser extension can launch Global Auto-Type directly using the web site URL for matching. |
Ok I understand, but is there any technical limitation to provide multiple URLs per entry for those using only Auto-Type ? I'm not a developer so this might be a stupid question... |
@Hidigoudi I'm not 100% sure how those will work with just Auto-Type enabled in the compiler flags. Basically the additional URL's are just attributes starting with |
Are you typing the url with autotype? If not then you don't need to do anything. If so, use {S:KP2_URL} |
I'm using only "Use entry URL to match windows for global Auto-Type" and I have an extension to add URL inside windows titles. I'm not typing the URL with Auto-Type. It seems that Auto-Type only searches inside the main "URL" field but not in all others if we add additional URLs with |
Oh, that feature |
Yes, it is a shame we can't use additional URLs feature with Auto-Type :( What would prevent this from being implemented ? |
It's implementanable, somewhat easy, just needs to be done. |
Ok, do I need to open an issue / new feature for this ? |
Yes please do, I can't find an existing one |
Hey,
is it possible to add multiple urls to a single entry?
Maybe a cool feature?
(Working with passiFox)
Greetings Kaito
The text was updated successfully, but these errors were encountered: