diff --git a/app_sealed.go b/app_sealed.go index 730b2cf..42aa794 100644 --- a/app_sealed.go +++ b/app_sealed.go @@ -64,6 +64,7 @@ func (b sealedBackend) GetUnlockAttemptsRemaining() int { return b.store.GetUnlo func (b sealedBackend) GetUnlockLockoutSeconds() int { return b.store.GetUnlockLockoutSeconds() } func (b sealedBackend) IsEncryptionEnabled() bool { return b.store.IsEncryptionEnabled() } func (b sealedBackend) IsEncryptionLocked() bool { return b.store.IsEncryptionLocked() } +func (b sealedBackend) IsDatabaseLeftClear() bool { return b.store.IsDatabaseLeftClear() } func (b sealedBackend) UnlockDatabase(password string) error { return b.store.UnlockDatabase(password) } diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.md index 1991b5f..1917199 100644 --- a/docs/USER_GUIDE.md +++ b/docs/USER_GUIDE.md @@ -490,6 +490,11 @@ destinations' credentials and the sealed inbox key. The password itself is never change of password, or the creation of a recovery key, replaces its key, which encrypts everything again once. - Once this version has written a database, versions before 1.8 can no longer open it. +- While SyslogStudio runs, the database it works on is decrypted; it is encrypted again when + SyslogStudio closes. If SyslogStudio stops without closing — a crash, a forced stop, a power cut — + the database is found unencrypted at the next start. SyslogStudio then says so on the unlock + screen and asks for the password as usual: the database opens as it was, and is encrypted again + when SyslogStudio closes. (Before 1.11, it was opened without the password and stayed unencrypted.) ### The recovery key diff --git a/frontend/src/components/UnlockScreen.svelte b/frontend/src/components/UnlockScreen.svelte index 54c9728..96c45b0 100644 --- a/frontend/src/components/UnlockScreen.svelte +++ b/frontend/src/components/UnlockScreen.svelte @@ -1,7 +1,7 @@