Skip to content
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

Placeholder for attachments #6947

Closed
mStirner opened this issue Sep 25, 2021 · 5 comments
Closed

Placeholder for attachments #6947

mStirner opened this issue Sep 25, 2021 · 5 comments

Comments

@mStirner
Copy link

Summary

I found out about "placeholders": https://keepass.info/help/base/placeholders.html
Is there a way to use "Attachements" placeholders? Found this here https://sourceforge.net/p/keepass/discussion/329220/thread/4b2ebfb6/#6a37 but that does not work for me (since its a feature request too)

Debug-Information

KeePassXC - Version 2.3.1
Revision: 2fcaeea

Bibliotheken:
- Qt 5.9.5
- libgcrypt 1.8.1

Betriebssystem: Ubuntu 18.04.5 LTS
CPU-Architektur: x86_64
Kernel: linux 5.4.0-86-generic

Aktivierte Erweiterungen:
- Auto-Type
- Browser Integration
- Legacy Browser Integration (KeePassHTTP)
- SSH Agent
- YubiKey

Examples

Use of cmd://{ATTACHMENT:1} in url field to execute shell/bash scripts stored as attachment.

Context

Would be great to copy other attachments somewhere on the system and/or transfer them over ssh to another machine.

@droidmonkey
Copy link
Member

droidmonkey commented Sep 25, 2021

Why? Just enter the information into a custom attribute, or just write the command out directly. There is no benefit to burying this in an attachment.

@mStirner
Copy link
Author

Well, thanks for the tipp.
But how do i get the content of a attachment?

The script thing was just a (bad) example.

I would really think we should discuses this more then just close this issue without talking about it.

@droidmonkey
Copy link
Member

An attachment is a file, it is meant to be opened and/or saved by a user. If you want content to use as placeholders or something else then put that in a custom attribute.

@mStirner
Copy link
Author

mStirner commented Sep 26, 2021

I understand that, and you have a valid point. But why dont you want to improve the software to be able get the content of attachments as placeholders? Its a usefully feature.

Now i have to store it as a attachment & custom attribute, which is unnecessary overhead.
Furthermore, custom attributes a not good for binary files.

How should i handle binary files in custom attributes?


EDIT: Perhaps this is a xy problem from my side.
Is there a way to get the content of a attachment from bash/cli

@droidmonkey
Copy link
Member

droidmonkey commented Sep 26, 2021

Accessing attachments from cli is about to be merged to develop branch and will be part of 2.7.0. You can see a preview of that here: #5538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants