Repository navigation
Open
Labels
2026-11Issues created in 2026-11documentationImprovements or additions to documentationgood first issueGood for newcomersgsoc-2027Google Summer of Code 2027 onboardingproject: pmoss
Description
Context
PMOSS needs a GitHub OAuth app, but a contributor can't sign in when running locally. pmoss/wrangler.toml hardcodes GITHUB_REDIRECT_URI = "https://pmoss.alphaonelabs.com/auth/callback" under [vars], and src/auth.py (lines 19 and 45) reads GITHUB_REDIRECT_URI, falling back to an undocumented GITHUB_REDIRECT_URI_DEFAULT. The README only covers creating a production OAuth app. It never explains a local callback (http://localhost:8787/auth/callback), .dev.vars, or which variables are required and which are optional.
What to do
- Add a "Local development" section: create a second OAuth app for
http://localhost:8787, putGITHUB_CLIENT_ID,GITHUB_CLIENT_SECRETandGITHUB_REDIRECT_URIinpmoss/.dev.vars(already gitignored at the repo root), and runnpx wrangler dev. - Add
pmoss/.dev.vars.examplewith placeholder values. - List every env var the code reads (
GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET,GITHUB_REDIRECT_URI,GITHUB_REDIRECT_URI_DEFAULT,GITHUB_WEBHOOK_SECRET) in a table saying whether each is required and what it does. Remove documented variables the code doesn't read, or flag them for maintainers. - Explain how to test webhooks locally (e.g.
cloudflared tunnelor GitHub's "Redeliver").
Acceptance criteria
- A newcomer can sign in to a local PMOSS by following the README only.
-
.dev.vars.exampleexists and contains no real secrets. - The env var table matches
grep env. pmoss/src.
Files
pmoss/README.mdpmoss/.dev.vars.example (new)pmoss/wrangler.tomlpmoss/src/auth.py
Helpful links
- https://docs.github.com/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
- https://developers.cloudflare.com/workers/configuration/secrets/#local-development-with-secrets
Part of GSoC 2027 onboarding — see https://gsoc.alphaonelabs.com
Metadata
Metadata
Assignees
Labels
2026-11Issues created in 2026-11documentationImprovements or additions to documentationgood first issueGood for newcomersgsoc-2027Google Summer of Code 2027 onboardingproject: pmoss
Activity
github-actions commentedon Nov 2, 2026
docs(pmoss): explain cloudflared install for local webhooks (alphaone…