mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
PUT /api/ciphers/move not implemented #2362
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mprasil on GitHub.
New vault (#93) calls
PUTon/api/ciphers/moveto "Move selected" ciphers. We havePOSThandler already implemented for this, so this should be easy to fix.@krankur commented on GitHub:
Thanks @mprasil . I checked the
datafolder. I see 2 files inside it,rsa_key.derandrsa_key.pem. I also checked the permissions. The user has both read and write permissions on thedatafolder and as well as the 2 files inside thedatafolder. So, I tried to debug and it seems like 3 keys should have been created but only 2 are created. Creation ofrsa_key.pub.deris failing here:I also tried directly running
openssl rsa -in rsa_key.der -inform DER -RSAPublicKey_out -outform DER -out rsa_key.pub.derin terminal. I am getting an error message sayingunknown option -RSAPublicKey_out.@krankur commented on GitHub:
So, finally I found out the issue. It was the old openssl version being used. Even though I had
1.0.2lversion installed through brew, the old version at/usr/local/bin/opensslwas being picked up. I had to create a symlink to the newer version to make it work. https://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x@krankur commented on GitHub:
Another question. While doing the setup I was following the instructions in
Build.mdfile. Some of the instructions are out of date now, as in the latest vault release, project structure has been changed and the filesettings.Production.jsonno longer exists. I had to use the previous release to build the project. Is the build process with the latest vault version documented anywhere?Also, as per my understanding, the aim of this task is to accommodate the changes introduced as part of the latest vault release. So, to work on this bug I will need to setup the new vault. Is my understanding correct?
@mprasil commented on GitHub:
Hi, I think the program fails to create the keys. Normally they are in the
datadirectory, so make sure that whatever user you're running it under can create that folder and/or write to it.@krankur commented on GitHub:
Hi, I am new to Rust and wanted to start contributing to open source projects. This bug looked like a good beginner task, so I decided to give it a shot. I forked and cloned the project, but on "cargo run" I am getting the following error message:
Can someone please guide me on what could be the issue here?
@mprasil commented on GitHub:
Note that this is still beta branch, so not ready yet. There are couple bugs that need to be fixed (like this one) before the new Vault (2.0) is usable.
@dani-garcia commented on GitHub:
It’s not documented at the moment, but you can look at the lines 16-25 of the dockerfile to get an idea of the setup.
Basically, clone the 2.0 repo, apply the patch and run the npm commands.
@mqus commented on GitHub:
I packaged vault for archlinux and as of my knowledge, you don't have to change anything anymore and the build process is as following (taken from build.sh in the vault repo):
and the output directory is then
build/I have tested it and it worked fairly well but I can still be wrong.
EDIT: Ah there IS a patch :D I'll add that later today.
@dani-garcia commented on GitHub:
This should be fixed by #108
@krankur commented on GitHub:
Thanks to all. I was able to setup with Vault (2.0). Will start working on the bug now.