Open tkapias opened 1 year ago
This syntax is provided by KeePass original
How ?
More specifically, how do I cross-reference the additional attribute of an entry by the UID of the entry and the title of the additional attribute?
More specifically, how do I cross-reference the additional attribute of an entry by the UID of the entry and the title of the additional attribute?
This is the limitation from Keepass side, You can't retrieve the data of additional attributes from an entry. You can only retrieve the standard ones only that is Title, Username, Password, URL, UUID and Notes.
I also need this feature badly too but sadly, its not there. As far as I know there is issue raised in Keepass sourceforge site and its open from 5 to 6 years.
I'm willing to implement your proposal but it won't work in other apps like KeePassDX, Strongbox, or KeePass original. If that is OK with you than it really doesn't matter. Another problem with custom attributes is that their name can, and do, contain colons... this will pose a parsing problem and limitation on use.
Thank you @droidmonkey !
Although I use KeepassDX on Android, my use which is to reference tokens for the secret agent does not apply on Android. And Keepass original, it's only interesting for its multiple extensions but not native on Linux so I'll never come back to it.
I think many KeepassXC users are in my case.
Concerning the parsing there can be other limits if you do it like my model since the text string to search is before the @ and the title of an attribute can contain it too. But you can indicate naming constraints for the attributes for those who want to use this feature.
The absence of the feature bothers me more than this kind of constraints.
I'm willing to implement your proposal but it won't work in other apps like KeePassDX, Strongbox, or KeePass original. If that is OK with you than it really doesn't matter. Another problem with custom attributes is that their name can, and do, contain colons... this will pose a parsing problem and limitation on use.
Thanks @droidmonkey if you can provide this feature for XC that will be very helpful for me. I think if this feature comes in XC. I can raise ticket for this in KeepassDX Repo.
@droidmonkey, Any updates?
This isn't high on the list tbh. References in KeePassXC were coded very... interestingly... from way back when. I would want to add this capability with a general rewrite to that code handling.
Summary
Currently the Cross-Reference short-hand syntax does not provide a way search an entry by UUID and to select its Additional Attribute by name.
Current documentation: Entry Cross-Reference.
Examples
I propose to add one more field in the short-hand to allow searching for a title in the Additional Attributes. Example:
{REF:O:addattribute1@I:033054D445C648C59092CC1D661B1B71}
It would return the content of the Additional Attribute.
Example of documentation updated:
Context
I use Python-Keyring to fetch passwords or tokens from the command line or from some scripts through the Secret Service Agent. And I link the Secret Service entries to the original entry with Cross-References. Sometimes I have multiple tokens for a user inside the same entry. I would like to Cross-Reference the Additional Attributes for those.