Comments (6)
Hi,
Thanks for the feedback. I've pushed an update which will allow you to specify the password in the environment variable BITWARDEN_PASS
.
I tried creating two entries with the same name but the script does not throw an error. Could you send me a screenshot of the error you're getting? Please feel free to send a PR if that's easier for you.
OS: Debian Buster
Python: v3.7.3
pykeepass: v4.0.1
BitWarden CLI: v1.19.1
Regards,
from bitwarden-to-keepass.
Thanks k3karthic for the quick response on the environment variable!
About the two entries, let me show you; this is my Bitwarden vault:
It gives this output:
Traceback (most recent call last):
File "/app/convert.py", line 133, in <module>
convert(args.Output)
File "/app/convert.py", line 114, in convert
Fetching folders...
Fetching items...
kp.add_entry(
File "/usr/local/lib/python3.9/site-packages/pykeepass/pykeepass.py", line 613, in add_entry
raise Exception(
Exception: An entry "EntryForTest" already exists in "Group: """
When I remove one of the entries, it works as expected.
Running in a Docker container with:
- Debian Buster
- Python 3.9
- pykeepass 4.0.1
- BW CLI 1.19.1
from bitwarden-to-keepass.
Hi,
Some more insights : it appears to only occur if both the name of the entry and the usernames are identical. So it is possibly a relatively rare use care. Still it might be more interesting to output a kdbxfile without the conflicting entries (and showing a warning or error) than no file at all. Or possibly let the user choose the behaviour with e.g. a --fail-on-error=true/false flag or similar. I'll leave it up to you to see if and how you want to handle this.
For my part, I renamed the conflicting entries so no problem anymore.
from bitwarden-to-keepass.
Hi vojeroen,
Thank you for taking the time to look into this. convert.py
is a backup script and I would like to avoid dropping credentials without warning.
I like your idea of resolving the conflict by appending a sequential suffix like "copy 1". I'll implement it sometime this week.
Regards,
from bitwarden-to-keepass.
I've released v0.1.3 which adds a suffix like “<name> (1)” to the title for duplicate entries.
from bitwarden-to-keepass.
I'll give it a go, thanks!
from bitwarden-to-keepass.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitwarden-to-keepass.