Post-MVP: narrow GitHub sign-in to identity-only (drop the broad `repo` scope)

Đang mở
#341 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, javascript
Lĩnh vực
authentication, security

Hướng nghiên cứu

Start with GITHUB_SCOPES in src/oauth/provider.js:33 and the GitHub App access design in docs/superpowers/specs/2026-11-17-github-app-access-design.md. Check whether @octokit/auth-app covers the remaining repository reads, writes, and creation before assessing the scope. Done means sign-in requests only read:user user:email while repository operations use the existing GitHub App.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement parked

What

GitHub sign-in asks for repo read:user user:email (GITHUB_SCOPES in src/oauth/provider.js:33). On GitHub's consent screen, repo reads as "Repositories: Public and private", so every new user who signs in with GitHub sees a broad request.

#110 (GitHub App, #327) already moved the credential a manager lends onto a repository-scoped App. It deliberately left the sign-in scope alone, because signing in with GitHub still reaches the person's own repository and creating a repository still needs repo.

Proposal

Make sign-in identity-only (read:user user:email) and move repository reads, writes and creation onto the GitHub App, so the consent screen no longer asks for access to all repositories.

Why it is low priority

Not material to the MVP experiment. Google sign-in and the App-based lend path already cover the manager-trust story, and the consent screen only reaches what the signing-in account can already reach. Revisit if a manager or buyer objects to the screen.

Existing open source first

Nothing to build from scratch: GitHub Apps and user-to-server tokens (via the existing App) are the supported route, and the spec for #110 (docs/superpowers/specs/2026-11-17-github-app-access-design.md) already sketches the split. Check whether @octokit/auth-app covers the remaining pieces before hand-rolling any of it.

Ngôn ngữ chính
JavaScript
Star
1
Fork
2
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của StatsLateral/teamctx

Tất cả issue của StatsLateral/teamctx

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.