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
[PS-1201] Allow bw sync without unlocking #2916
Conversation
Can someone please review this PR? I'm guessing @MGibson1 or @eliykat might be the right reviewer for this area. If not, please redirect. By the way, another reason why |
Hi @TomiBelan , thank you for the contribution, and apologies for the delay in reaching out. We've added this to our internal community PR board for review and we will revert soon. |
Any updates? It's been 40 days. :( |
Hi @TomiBelan, contributor PRs do pass through an internal process when submitted. Whiles I can admit that this has taken a bit long, kindly be rest assured it will be attended to, very soon. Thank you for your patience. |
Thanks for replying. I'll look forward to it. I'll also note the patch is just 1 line long, although of course that's not a perfect indicator. :) |
Hello again. Today it's two months since I sent this trivial single line patch. What's going on??? I'm just confused: the repo is clearly quite active, and internal PRs are reviewed and merged smoothly. But no community PRs were merged in almost a month. @dbosompem mentioned a process for community PRs --- did the process get bogged down somehow? Or is there some other reason for such extreme delays? I'd like to at least understand what's the bottleneck. |
Hi @TomiBelan, it's rather unfortunate we haven't merged in your PR yet, though we've had a few community PRs merged in the past months. Yes I mentioned earlier that we do review PRs internally. The code change with this PR is quite small but will require a high QA load and so we want to make sure we get QA capacity to be able to see this through, successfully. Apologies we haven't updated you since, but we'd try and expedite the process. Thank you for your patience! |
Thanks for replying and for explaining that the issue is with QA capacity. It sounds like someone did look at the PR at least to determine that. I wish they'd comment at the time. I got frustrated by the lack of updates. If you don't mind me asking, what exactly about this feature needs QA capacity? Isn't the test plan simply: "1. run Just to clarify, I searched other community PRs on this page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomiBelan, you're right. I made a mistake in estimating the impact of this change. I had forgotten that syncs in CLI are strictly manual and was thinking it was tightly coupled to many other commands when it's not.
Thanks for pointing that out and for the contribution -- this is definitely closer to how sync should work for the CLI.
Yay! Thanks @MGibson1. |
Type of change
Objective
The CLI command
bw sync
will run even if the vault is locked. You only need to be logged in. This makes it easier to usebw sync
in automated scripts.As far as I can tell,
bw sync
doesn't use the master password at any point, so there is no compelling reason to ask for it.Potentially related or similar issues: #2739, bitwarden/cli#91, bitwarden/cli#423
Code changes
I think that's it. It seems to me that sync.command.ts and sync.service.ts don't need changing.
(I noticed sync.service.ts calls cryptoService, but apparently not to decrypt anything.)
Rationale
bw serve
+curl -X POST http://localhost:8087/sync
.This is because the /sync handler in serve.command.ts does not call errorIfLocked.
bw sync
should be made consistent withbw serve
and also work without unlocking.Before you submit