Skip to content

fix: distinguish expert vault failures from invalid keys #2

Description

@luojiyin1987

Problem

try_unlock catches Exception together with InvalidToken, so corrupt vault files and operational failures are reported as an invalid access key. Unlock attempts also have no audit trail.

Proposed fix

  • Treat only Fernet authentication failures as invalid keys.
  • Surface vault loading failures as a controlled server error.
  • Record unlock outcomes without logging access keys or player names.

Validation

  • Python compilation check
  • Invalid-key path check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions