Skip to content

Self-hosted communities can't require a second factor #9751

Open

Description

@Beige-Coffee

Owners of self-hosted communities have no way to require a second factor at sign-in. Anyone with a member's nsec gets full access, and there's no key rotation, so a leaked key can't be recovered from.

What exists today:

  • NIP-FI lets a relay require a token from a sign-in service, which is where MFA can happen. The desktop and mobile apps only trust sign-in services built into the app, so in practice this only works with Builder Lab.
  • feat: configure native federation without rebuilding desktop buzz-app#2152 lets a build with no built-in sign-in services read a local config. Official downloads include bb-public, so they ignore it, and self-hosters would have to ship their own build.

What's the intended path for self-hosted communities that need stronger sign-in in the official apps? Options we've looked at:

  1. Let the official apps trust a sign-in service named by the community, with a trust prompt for the user (extending feat: configure native federation without rebuilding desktop buzz-app#2152).
  2. A second factor enforced by the relay: a code or passkey once per device, then a device key on each request. Owners choose off, optional, admins only, or everyone.
  3. Something you already have planned.

Happy to help test or contribute once there's a direction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions