53 Commits

Author SHA1 Message Date
242d7ce6ed
Updated docker/login-action 2024-02-20 12:43:50 -03:00
518472d5ce
Fixed ordering on entrypoint logging 2024-02-20 12:41:25 -03:00
3dd510ab27
Added Github action 2024-02-20 12:40:20 -03:00
e94525c047
Added missing word on README 2024-02-20 12:36:25 -03:00
11fd9be80e
Merge pull request #6 from rogsme/update-README
Update README
2024-02-20 12:35:17 -03:00
72b2a40bc6
Proofread the README 2024-02-20 12:33:16 -03:00
1d0969aa47
Added Usage information 2024-02-20 12:25:19 -03:00
ceefe4a025
Merge pull request #5 from rogsme/add-custom-bitwarden-instances
Add custom bitwarden instances
2024-02-20 11:52:23 -03:00
c4f8684cc7
Added error handling and logging 2024-02-20 11:49:26 -03:00
821567c515
Removed unnecesary files 2024-02-20 11:30:25 -03:00
18eacf97ec
Made it compatible with any bitwarden instance 2024-02-20 11:27:21 -03:00
844202f960
Reverted back to only using environment variables 2024-02-20 11:15:18 -03:00
57ce4a90e6
Merge branch 'master' of github.com:rogsme/vaultwarden-to-keepass into convert-to-vaultwarden 2024-02-20 11:03:13 -03:00
6434e2b995
Merge pull request #4 from rogsme/improve-dockerfile
Made building faster when developing
2024-02-20 11:01:55 -03:00
9ca85b6f70
Going back to using env vars on the entrypoint 2024-02-20 11:00:27 -03:00
2fb2efb076
Made building faster when developing 2024-02-20 10:38:05 -03:00
18f256ff84
Stopped using the docker-compose file 2024-02-20 10:36:05 -03:00
a0298bab01
Merge pull request #2 from rogsme/improve-dockerfile
Improve dockerfile
2024-02-20 10:07:25 -03:00
6595082d50
Downloading the CLI directly from Bitwarden's site 2024-02-20 09:20:47 -03:00
938af1ea36
Using multistage to get the cli from another prebuilt image 2024-02-20 08:45:20 -03:00
4c02d3be94
Using multistage build 2024-02-20 08:40:53 -03:00
e591aae71d
Merge pull request #1 from rogsme/improve-dockerfile
Downloading the CLI directly instead of using npm
2024-02-20 08:32:48 -03:00
21be29d720
Downloading the CLI directly instead of using npm 2024-02-20 08:27:36 -03:00
David Němec
5104c5c0f3
Set hidden custom fields as protected
Closes #3
2023-07-18 09:43:00 +02:00
David Němec
bcd0a217d5
Update Python and Debian 2023-07-18 09:35:28 +02:00
David Němec
1cf1d10675
Merge pull request #13 from diogotito/multiple_urls
Handle multiple URIs like KeePassDX
2022-10-09 21:30:40 +02:00
diogotito
8a427a9e69 Handle multiple URLs and mobile apps
Multiple androidapp:// go to AndroidApp, AndroidApp_1 and so on
Multiple URLs go to URL_1, URL_2 and so on
This mimics the way the KeePassDX app handles multiple URLs for it's autofill mechanism
2022-10-04 15:01:22 +01:00
David Němec
9c27ba943c
Merge pull request #12 from diogotito/optimize-docker
Reorganize Dockerfile to speed up development with Docker
2022-09-28 21:41:22 +02:00
diogotito
5f20c1f86b Reorganize Dockerfile to cache apt and pip steps
This way, the RUN step that installs @bitwarden/cli gets cached and only needs to be run once per machine
Likewise for the RUN step that installs pykeepass, which only needs to be run when the pykeepass version gets bumped
2022-09-26 21:44:30 +01:00
David Němec
76604fcbe6
Do not download attachments to tmpfs, instead save them directly to KeePass database 2022-06-11 15:52:33 +02:00
David Němec
5aff563599
Persist Bitwarden config folder
Avoids gettings emails about new sign-up on every export
2022-06-11 15:45:42 +02:00
David Němec
296fabede4
Update python base image 2022-06-11 15:44:04 +02:00
David Němec
821fb74898
Merge pull request #8 from jabashque/nested-folders-fix1
Overhaul group and subgroup creation to better match Bitwarden behavior
2021-08-14 17:30:17 +02:00
jabashque
1c548daaf4 Overhaul group and subgroup creation to better match Bitwarden behavior
In Bitwarden, one could make it so their account only has a certain set
of folders, like so:
- testfolder/a
- testfolder/a/b/c
- testfolder/a/b/c/d

The resulting hierarchy would look like this:
testfolder/a
`- b/c
   `- d

As shown above, Bitwarden allows one to name a folder something like
"foo/bar" even if a folder "foo" doesn't exist. Bitwarden handles this
by just putting this folder in the root with the name as-is.

In addition, as shown with "testfolder/a/b/c", a folder name may not
necessarily be just anything that comes after the last `/` delimiter.
Instead, it's dependent on which ever existing folder happens to match
the most of the folder's name's prefix.

As such, the following references were used to replicate this behavior
in bitwarden-to-keepass:
ecdd08624f/common/src/services/folder.service.ts (L108)
ecdd08624f/common/src/misc/serviceUtils.ts (L7)
2021-07-26 09:44:11 -07:00
David Němec
1750d8898b
⬆️ Bump pykeepass 2021-06-26 16:46:55 +02:00
David Němec
9da213b724
Merge pull request #7 from jabashque/nested-folders
Support nested folders properly
2021-06-26 16:26:51 +02:00
jabashque
c59426e4f0 Support nested folders properly
When creating KeePass groups based off Bitwarden folders, make it so
that the KeePass groups follow the same hierarchy as their equivalent
Bitwarden folders.
2021-06-26 01:35:04 -07:00
David Němec
3bb5f3be3b
Catch exceptions for every entry property
Fixes #6
2021-04-21 11:28:29 +02:00
David Němec
12be55fec2
Continue outer loop properly
Relates with previous commit 8e485b184405d34f8de8dacd4f64258c9675e488
2021-03-05 18:23:53 +01:00
David Němec
8e485b1844
Skip item when it cannot be exported for any reason and warn user about it instead of failing export
Fixes #5
2021-03-05 18:04:07 +01:00
David Němec
dc5ffdf00b
Skip exporting identity items 2021-03-05 17:53:24 +01:00
David Němec
17ebc43111
Update logging format 2021-03-05 17:52:29 +01:00
David Němec
ef90e20d42
Use empty string for custom fields name/value when empty (returned as null from api)
Fixes #2
2021-01-09 09:32:12 +01:00
David Němec
9fc8bcf9a8
Make exporting easier with docker-compose 2020-12-25 20:24:54 +01:00
David Němec
99194c40d3
Export fails when there is more than 1 item with the same name
Bitwarden allows this, KeePass does not
2020-12-25 19:45:40 +01:00
David Němec
a18eb06705
Merge pull request #1 from gprst/credentials-error-from-pykeepass
Credentials error from pykeepass
2020-12-25 17:52:44 +01:00
Gabriel Proust
c0c31cee5b Use CredentialsError from pykeepass instead of CredentialsIntegrityError 2020-12-25 16:47:16 +01:00
Gabriel Proust
f9d16fb24f Update README about the new empty database creation 2020-12-25 16:47:16 +01:00
David Němec
9e87a9c313
Create new (empty) KeePass database if specified does not exists 2020-04-15 17:29:56 +02:00
David Němec
36ad48c068
Escape argument values 2020-04-15 17:27:30 +02:00