-
Notifications
You must be signed in to change notification settings - Fork 4
secrets edit
should maintain the websocket as long as the editor session is alive
#315
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
Comments
I want to point out that this message looks weird too:
This looks like a error. But it's actually a successful close. It's considered normal closure. |
I also encountered this issue. After a short discussion with Brian, our conclusion was that this is being caused due to the After Polykey-CLI#305 is completed, I can start work on this issue. |
secrets edit
should maintain the websocket as long as the editor session is alive
After some quick investigation, I have realised that try {
const stdout = await new Promise((resolve, reject) => {
exec(command, (error, stdout, stderr) => {
if (error) {
reject(error);
} else if (stderr) {
reject(new Error(stderr));
} else {
resolve(stdout);
}
});
});
} catch (e) {
// Promise rejected. There was an error.
} |
Specification
When using
secrets edit
, it will timeout if the editor session isn't finished fast enough. I opened up thesecrets edit
and waited for a while, after trying to save, it failed:We need to make the websocket connection alive for as long as the editor session is alive, it shouldn't fail.
That being said it's also important not to start a vault commit transaction until the editor has in fact finished writing. We don't want this to block other secret operations. Concurrent testing needs to be checked too.
Tasks
@tegefaulkes @aryanjassal
The text was updated successfully, but these errors were encountered: