Skip to content

feat(hub): establish provider-neutral identity persistence - #118

Open
Copilot wants to merge 5 commits into
build/hub/newfrom
copilot/hub-identity-system
Open

Copilot wants to merge 5 commits into
build/hub/newfrom
copilot/hub-identity-system

Conversation

Copilot AI commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

Hub needs a durable identity foundation that does not make one sign-in provider or GitHub integration the definition of a user. This layer gives later authentication and authorization work stable records while keeping provider-specific behavior outside the core identity model. Refs #116.

What changes

Hub now persists users, external identities, installation membership, versioned authentication-provider configuration, sessions, one-use authorization attempts, and security audit records. Repository and domain interfaces keep those records provider-neutral and support transactional updates under a shared store lock.

GitHub source access remains a separate optional integration. Operators can use encrypted database credentials or complete read-only environment settings without coupling GitHub credentials to user identity or session context.

flowchart LR
  Provider[Authentication provider] --> External[External identity]
  External --> User[Hub user]
  User --> Membership[Installation membership]
  External --> Session[Session]
  Provider --> Session
  GitHub[Optional GitHub integration] --> Source[Source access]
  Source -. separate boundary .-> User
Loading

The change also retains automatic redacted request logging from the current Hub baseline. It adds persistence only: there are no sign-in routes, product authorization rules, membership synchronization, or UI changes in this layer.

Copilot AI requested review from a team and nshki as code owners October 26, 2026 20:06
Copilot AI max review requested due to automatic review settings October 26, 2026 20:06

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 was unable to review this pull request because there is no eligible user to bill.

An enterprise owner can allow the organization to be billed for reviews like this by enabling Copilot code review for users without a license.

Copilot AI changed the title feat(hub): add GitHub identity and credential providers feat(hub): persist identity records and credentials Oct 26, 2026
Copilot AI force-pushed the copilot/hub-identity-system branch from 4924f22 to 0473854 Compare October 26, 2026 23:31
Copilot AI added this pull request to stack #122 October 26, 2026 23:31
@alliscode alliscode changed the title feat(hub): persist identity records and credentials feat(hub): establish provider-neutral identity persistence Oct 28, 2026
@alliscode
alliscode requested a max review from Copilot October 28, 2026 21:42

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.

🟡 Changes recommended

The read interface exposes mutations outside locked transactions, allowing callers to bypass serialization and leave partial updates when an operation fails.

6 open issues

Review effort: Max

Comment thread hub/docs/identity.md Resolved
Comment thread hub/docs/identity.md Resolved
Comment thread hub/docs/backend-architecture.md Resolved
Comment thread hub/docs/testing-and-operations.md Resolved
Copilot AI and others added 5 commits October 29, 2026 08:16
Add encrypted database and read-only environment credential providers for one GitHub installation, transactional identity repositories, and their storage contracts.

Co-authored-by: Ben Thomas <ben.thomas@microsoft.com>
Co-authored-by: Nishiki <hello@nshki.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@alliscode
alliscode force-pushed the copilot/hub-identity-system branch from d6a6ebf to 738dc31 Compare October 29, 2026 15:38
@alliscode
alliscode requested a review from nshki October 29, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants