Skip to content

Remove TrustLevel and ConnectionSecurity.trust_level - #473

Merged
maximmaxim345 merged 1 commit into
mainfrom
refactor/remove-trust-level
Oct 5, 2026
Merged

maximmaxim345 merged 1 commit into
mainfrom
refactor/remove-trust-level

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

What does this implement/fix?

The spec removed trust level and made psk_category the only name for it, so TrustLevel and ConnectionSecurity.trust_level are removed.
Use ConnectionSecurity.psk_category instead: PskCategory.LONG_TERM was trust level user, and anything else was none.

Nothing changes on the wire. The server still accepts a trust_level key in client/hello from older clients.

Related issue or spec PR (if applicable):

Types of changes

  • Bugfix (non-breaking change which fixes an issue): bugfix
  • New feature (non-breaking change which adds functionality): new-feature
  • Enhancement to an existing feature: enhancement
  • Breaking change (changes the public API or the protocol in a way that is not backwards compatible): breaking-change
  • Refactor (no behavior change): refactor
  • Documentation only: documentation
  • Maintenance / chore: maintenance
  • CI / workflow change: ci
  • Dependencies bump: dependencies

@maximmaxim345
maximmaxim345 requested a balanced review from Copilot October 2, 2026 09:56
@github-actions github-actions Bot added the breaking-change Changes the public API or the protocol in a way that is not backwards compatible label Oct 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The declared breaking API removal is complete and legacy wire handling remains intact.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the deprecated trust-level API in favor of PskCategory, matching the updated specification without changing wire behavior.

Changes:

  • Removes TrustLevel and related exports.
  • Removes ConnectionSecurity.trust_level.
  • Updates tests and authorization terminology.
File Description
aiosendspin/​models/​types.py Removes TrustLevel and updates authorization wording.
aiosendspin/​server/​client.py Removes the derived trust-level property.
aiosendspin/​noise/​trust_store.py Removes the compatibility re-export.
aiosendspin/​noise/​__init__.py Removes the public noise-package export.
tests/​integration/​test_noise_pairing_flow.py Removes obsolete trust-level assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@maximmaxim345
maximmaxim345 merged commit 2b20ab0 into main Oct 5, 2026
4 checks passed
@maximmaxim345
maximmaxim345 deleted the refactor/remove-trust-level branch October 5, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Changes the public API or the protocol in a way that is not backwards compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants