Skip to content

Add bring-your-own SSO support #225

Closed

Description

@PascaleBeier

Summary

Let operators connect their own SSO identity provider.

Problem

Self-hosted operators and security-conscious customers often already manage users in an external identity provider such as Okta, Microsoft Entra ID, Authentik, Keycloak, Google Workspace, or another OIDC/SAML-compatible system. HitKeep does not currently give operators a first-class way to connect that provider, so they must continue using local dashboard credentials even when their organization expects centralized authentication and offboarding.

Who Benefits

Self-hosted operators, managed cloud customers with enterprise identity requirements, team admins, and instance owners responsible for access governance.

Proposed Solution

Add bring-your-own SSO configuration for external identity providers. The smallest useful version should support OIDC first, with issuer discovery, client ID/secret configuration, redirect URI validation, PKCE/state/nonce protection, verified email matching, and configurable claim mapping for email and display name. The design should leave room for SAML without requiring it in the first release.

User Workflow

  1. An operator configures an SSO provider with issuer, client credentials, allowed domains, and claim mapping.
  2. HitKeep validates the provider configuration and shows the callback URL that must be registered with the IdP.
  3. Users choose the SSO sign-in option and receive a normal HitKeep dashboard session after the IdP validates them.

Success Criteria

  • Operators can configure, test, disable, and rotate a BYO SSO provider without rebuilding HitKeep.
  • OIDC sign-in creates or links a HitKeep user only when the provider returns a verified email that passes the configured policy.
  • Existing dashboard sessions, session expiry behavior, team roles, invitations, and permission checks continue to work after SSO login.
  • Provider secrets are redacted in logs, API responses, audits, and exported configuration.
  • HitKeep does not persist raw provider access tokens, ID tokens, or refresh tokens unless a later feature explicitly needs and protects them.
  • Misconfigured providers fail closed with actionable operator-facing errors.

Alternatives Considered

Operators can put HitKeep behind a reverse proxy that performs authentication, but that does not integrate cleanly with dashboard sessions, team membership, invitations, audit trails, or per-user permissions. Hardcoding one enterprise provider would be simpler, but it would not fit self-hosted deployments.

Constraints

The feature must preserve HitKeep's single Go binary and embedded dashboard. It should not require Dex, Keycloak, Redis, PostgreSQL, or another sidecar service. Configuration should work for self-hosted deployments and managed cloud with explicit cloud-only behavior where needed. Secrets must follow the same safety expectations as API client tokens and other credentials.

Release Notes

Add bring-your-own SSO support so operators can connect HitKeep to an external OIDC identity provider.

Additional Context

This request covers operator-owned provider configuration. Social login and team SSO enforcement should remain separate because they have different audiences, defaults, and risk profiles.

Roadmap order: this provides the provider foundation that team-level SSO enforcement should build on.

Docs needed: self-hosted SSO setup guide, provider examples, environment/config reference, troubleshooting, and release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions