Repository navigation
Lock an encrypted space when it gets disabled - #3408
Merged
Merged
Conversation
AlexAndBear
force-pushed
the
fix/lock-vault-on-space-disable
branch
from
September 18, 2026 09:25
6487e85 to
2a885f7
Compare
A disabled space can no longer be entered, so leaving its engine in the vault store only kept a stale key in memory and still reported the space as unlocked. Disabling now locks it, reusing the `lockSpaceVault` helper extracted from the lock-vault space action. `lockSpaceVault` returns whether the space actually was a vault space, so the lock-vault action keeps skipping its success message and its redirect for a plain space.
AlexAndBear
force-pushed
the
fix/lock-vault-on-space-disable
branch
from
September 18, 2026 09:27
2a885f7 to
19d6285
Compare
kulmann
approved these changes
Sep 18, 2026
2 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
An unlocked encrypted space stayed unlocked after being disabled: the engine kept sitting in the vault store, so the space was still reported as unlocked while it could no longer be entered.
Disabling a space now locks it.
Related Issue
How Has This Been Tested?
pnpm test:unit --run(full suite: 451 files / 4128 tests passing),pnpm check:types,pnpm lint,pnpm format:checkclearEngine(spaceId, '/'))/my.vault) does not clear any enginelockSpaceVaultcall is removed from the disable handlerTypes of changes