Skip to content

🐝 Authenticate Lindsey conflict resolution with the GitHub App - #7

Merged
lindsey-pony[bot] merged 1 commit into
mainfrom
party-favor-resolver
Nov 26, 2026
Merged

lindsey-pony[bot] merged 1 commit into
mainfrom
party-favor-resolver

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Enable Resolve and sync with Lindsey to use the Lindsey GitHub App credentials already saved in Sweetiebot's Magic Settings, without requiring a separate resolver shared secret. The hosted service and local preview adapter now support the signed-request protocol expected by Sweetiebot.

  • Supply the missing server-side and adapter counterparts to the merged client integration in 🐞 Reuse Lindsey App credentials for sync conflict repair sweetiebot-SCM#754, extending the proposal-only resolver introduced in 🔩 Provide Lindsey conflict-resolution interface for Sweetiebot #4
  • Verify RSA-SHA256 proofs binding the request method, App ID, publishing repository, timestamp, nonce, and body digest. Reject timestamps more than 60 seconds from server time and reuse of a nonce within the bounded, process-local replay cache. Use an App JWT to check the named repository through GitHub's repository installation endpoint, rejecting missing, mismatched, or suspended installations.
  • Add an authenticated GET preflight to /resolve-conflicts that advertises lindsey-app-v1 when an OpenAI API key is configured, before Sweetiebot submits conflict contents by POST. This checks configuration and authorization, not live model availability.
  • Export prepareConflictPreview so Sweetiebot can supply its authenticated transport while retaining validated, temporary resolution candidates and the existing explicit approval flow. Keep the standalone CLI compatible with shared-secret authentication and reject HTTP redirects.
  • Document webhook-based discovery, the optional LINDSEY_RESOLVE_PUBLIC_KEY for a separate App signing key, and how to disable legacy authentication by leaving LINDSEY_RESOLVE_SECRET unset.

The new regression test exercises valid signatures, modified request bodies, method and repository mismatches, stale proofs, replay rejection, and suspended installations. Live deployment and end-to-end conflict repair remain unverified.

Co-authored-by: Codex <noreply@openai.com>
@lindsey-pony
lindsey-pony Bot merged commit aedf5ac into main Nov 26, 2026
2 checks passed
@JFWooten4
JFWooten4 deleted the party-favor-resolver branch November 26, 2026 16:59
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.

1 participant