railyard/apps/rithub-server/custom/public/assets/seo/is-connecting-github-oauth-app-safe.html
caelum0x 6801c08af9
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
feat(RIT-OPS,RIT-BRD): rename gitea -> rit everywhere we control, deployed + live-verified
apps/gitea -> apps/rithub-server; compose services/containers renamed
(rithub-server-app/postgres/act-runner) with explicit project name and
volume names pinned to the exact existing Docker volumes (no data loss);
our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper
on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs ->
ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter
+ giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram
(tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go
internal/giteaclient -> internal/ritclient in rithub-async-import (go
build/test clean); new /auth/rit + /forges/rit/connect routes with
/gitea back-compat aliases; locale/swagger/footer/captcha template text
scrubbed of remaining "Gitea" strings.

Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea
renamed to /srv/rithub-server with a symlink kept, docker compose up -d from
the new path, act_runner network-alias fix for its persisted instance URL.
Live-verified: docker compose config diff showed zero unintended value
changes, DB row counts unchanged (19 users, 635 repos), full route
regression 200/expected, 0 "gitea" in headers/bodies on every checked page,
real git clone+push over HTTPS and SSH with a disposable account (deleted
after). Deferred on purpose (documented in plans/railyard.md): the forge
discriminator / DB column names / Postgres role+volume names (data
migrations, not a naming change) and the upstream GITEA__ env-to-ini keys
and X-Gitea-* wire headers (hardcoded in the vendored engine binary).

See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and
live evidence.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-12-01 16:34:39 +03:00

107 lines
6.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Is It Safe to Connect a Third-Party App to Your GitHub Account? — Rithub</title>
<meta name="description" content="GitHub's own docs admit classic OAuth app scopes can't be read-only for code. Here's exactly what Rithub's GitHub import reads, what it never touches, and why that's checkable, not a promise.">
<link rel="canonical" href="https://rithub.dev/assets/seo/is-connecting-github-oauth-app-safe.html">
<link rel="stylesheet" href="/assets/css/railyard-brand.css">
<style>
body{max-width:760px;margin:0 auto;padding:32px 20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.6;color:#1a1a1a}
h1{font-size:28px;margin-bottom:8px}
h2{font-size:20px;margin-top:40px}
.answer{font-size:18px;padding:16px;border-left:3px solid #444;background:#f6f6f6}
.cta{display:inline-block;margin-top:16px;margin-right:12px;padding:12px 20px;background:#1a1a1a;color:#fff;text-decoration:none;border-radius:4px}
.cta.secondary{background:#fff;color:#1a1a1a;border:1px solid #1a1a1a}
table{width:100%;border-collapse:collapse;margin-top:16px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #ddd;vertical-align:top;font-size:14px}
th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#555}
code{background:#f0f0f0;padding:2px 5px;border-radius:3px;font-size:14px}
pre{background:#f0f0f0;padding:12px;border-radius:4px;overflow-x:auto}
ol li, ul li{margin-bottom:8px}
footer{margin-top:60px;font-size:13px;opacity:.7}
footer a{margin-right:4px}
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"dateModified": "2026-11-30",
"mainEntity": [
{
"@type": "Question",
"name": "Is it safe to connect a third-party app to my GitHub account?",
"acceptedAnswer": {
"@type": "Answer",
"text": "It depends entirely on what the app actually does with the access, not just what scope it asks for. GitHub's own documentation notes that classic OAuth apps can't request truly read-only code access -- the repo scope grants both read and write. The real question is whether the app's own behavior, not just its permission grant, only reads."
}
},
{
"@type": "Question",
"name": "What does Rithub's GitHub import actually do to your GitHub account?",
"acceptedAnswer": {
"@type": "Answer",
"text": "It reads: it clones the repo's code and full history, and pulls issues, pull requests, releases, labels, milestones, and the wiki over the GitHub API. It never writes back -- nothing is pushed, commented, or changed on the GitHub side during an import or a mirror re-sync."
}
},
{
"@type": "Question",
"name": "What does the import never touch?",
"acceptedAnswer": {
"@type": "Answer",
"text": "CI secrets, webhook configuration, and Actions settings are not read or copied. Repository secrets and encrypted values aren't retrievable through the GitHub API at all -- no import tool, including Rithub's, could copy them even if it tried."
}
},
{
"@type": "Question",
"name": "How can I check this myself instead of trusting a claim?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Import a throwaway public repo and watch your GitHub account's own audit log and connected-apps settings during and after -- no commits, no webhook changes, no settings edits should appear. Revoking access afterward removes Rithub's OAuth grant entirely; the already-imported copy stays, since it's a separate repo on Rithub, not a live GitHub connection."
}
}
]
}
</script>
<script defer src="https://insights.ereboslab.com/s.js" data-site="s_FLXojc0pSLRIIJ6ndYp0p-li"></script>
</head>
<body>
<h1>Is It Safe to Connect a Third-Party App to Your GitHub Account?</h1>
<p class="updated" style="font-size:13px;color:#666;margin:0 0 16px" data-marker="rit-geo-freshness-2026-11-30">Updated 2026-11-30</p>
<p class="answer">The honest answer is: it depends on what the app does, not what it promises. Here's exactly what happens when you use Rithub's "Continue with GitHub" and import flow — read-only, checkable, with the specific things it never touches.</p>
<h2>Why the scope itself isn't the full answer</h2>
<p>GitHub's own docs point out a real limitation: classic OAuth apps can't scope code access to read-only — requesting the <code>repo</code> scope grants both read and write, even if the app only intends to read. GitHub Apps can request finer, truly read-only permissions, but either way, the scope grant tells you what's <em>possible</em>, not what the app actually does. That's a judgment call about the specific app, not something a permission dialog settles for you.</p>
<h2>What Rithub's GitHub import does</h2>
<table>
<tr><th>Reads</th><th>Never writes or touches</th></tr>
<tr><td>Code + full commit history, branches, tags</td><td>GitHub Actions configuration or run history</td></tr>
<tr><td>Issues and pull request threads</td><td>Webhook configuration</td></tr>
<tr><td>Releases, labels, milestones</td><td>Repository or Actions secrets</td></tr>
<tr><td>Wiki pages</td><td>Branch protection / repo settings</td></tr>
</table>
<p>The one-time import and every later mirror re-sync (automatic, every 8 hours — see <a href="/assets/seo/auto-sync-github-mirror.html">keeping a repo auto-mirrored</a>) are both one-directional: GitHub to Rithub. Nothing is pushed back.</p>
<h2>How to verify it instead of trusting it</h2>
<ol>
<li>Import a throwaway public repo you don't care about.</li>
<li>Check your GitHub account's audit log / security log right after — look for anything beyond the read calls above.</li>
<li>Check the repo's own webhook and secrets settings on GitHub — unchanged.</li>
<li>Revoke Rithub's access from GitHub's connected-apps settings whenever you want. The imported copy on Rithub stays; it's a separate repo, not a live tether back to GitHub.</li>
</ol>
<a class="cta" href="https://rithub.dev/repo/migrate?service_type=2">See exactly what an import copies</a>
<a class="cta secondary" href="https://rithub.dev/user/sign_up">Sign up free</a>
<footer>Rithub — code hosting. More guides:
<a href="/assets/seo/code-not-used-for-ai-training.html">git hosting that doesn't train AI on your code</a> ·
<a href="/assets/seo/auto-sync-github-mirror.html">keep a GitHub repo automatically mirrored</a> ·
<a href="/assets/seo/github-to-rithub-migration-checklist.html">GitHub to Rithub migration checklist</a> ·
<a href="/assets/seo/rithub-vs-github.html">Rithub vs GitHub</a>.
</footer>
</body>
</html>