Script execution should error out on usage of protected notes outside of protected session #4651

Open
opened 2025-10-01 16:39:32 -05:00 by giteasync · 1 comment
Owner

Originally created by @zadam on GitHub.

Scripts can include protected notes (work with protected data), but if user doesn't have protected session, then scripts don't detect it and just fails in unpredictable way.

When encrypted note is used outside of protected session, we should fail the operation and inform the user.

Originally created by @zadam on GitHub. Scripts can include protected notes (work with protected data), but if user doesn't have protected session, then scripts don't detect it and just fails in unpredictable way. When encrypted note is used outside of protected session, we should fail the operation and inform the user.
giteasync added the
Difficulty: Easy
label 2025-10-01 16:39:32 -05:00
Author
Owner

@dosubot[bot] commented on GitHub:

Hi, @zadam. I'm Dosu, and I'm helping the Trilium team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Problem with scripts using protected notes failing unpredictably outside protected sessions.
  • Proposal to have operations fail with a clear error message when accessing encrypted notes without session protection.
  • No comments or developments on this issue yet.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Trilium repository by commenting here.
  • If there is no further input, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub: Hi, @zadam. I'm [Dosu](https://dosu.dev), and I'm helping the Trilium team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Problem with scripts using protected notes failing unpredictably outside protected sessions. - Proposal to have operations fail with a clear error message when accessing encrypted notes without session protection. - No comments or developments on this issue yet. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of the Trilium repository by commenting here. - If there is no further input, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#4651
No description provided.