feat(base,app)!: GitHub signs nobody in any more (ADR 0020, D36)
Every account signs in with SimpleLogin or a password now, so GitHub goes from the module, the shared app package, Learn and Todo, ahead of ADR 0017's GITHUB_SIGN_IN_ENDS. - halkyon_base: no `gitHubSignIn` endpoint, GitHub identity provider or GitHub refusals; no `githubClientId`/`githubClientSecret`, no `GITHUB_SIGN_IN_ENDS` and no `forgetGitHubAccounts`; the register loses `account-with-github`. `SignInWays.gitHub`, the basics' `gitHubClientId` and `gitHubSignInEnds`, and `PasswordRefusal`'s `signInAgain` and `noAddress` go. A first password takes a code mailed to the person's own address; an account without one sets none (`wrongCredentials`). - Learn's server: `instance.info()` without `gitHubClientId`, the pruning without GitHub, and `minimumAppBuild` 24, as builds up to 23 (v0.20.0) require `SignInWays.gitHub`: the server deploys with the release of build 24. - halkyon_app: no GitHub button or problems on the start screen, no password offered after a GitHub sign-in, and `ServerpodAuthGateway` without the browser half only GitHub used (`(client, base:)`). The account section offers a first password only to an account with an address. `LoopbackWebAuth` and the apps' schemes stay, SimpleLogin's ways back. - Learn's Profile lists no GitHub; the texts go (English, German). - Serverpod's `serverpod_auth_idp_github_account` stays, as its migrations make it; a row goes with its account, and ADR 0020's D36 gives operators the SQL to delete those left. - deploy/: compose.yaml and .env.example without GitHub. The READMEs, AGENTS.md files and ADR 0017 amended. BREAKING CHANGE: builds up to 23 can't read the instance's answers about an account's ways in; minimumAppBuild is 24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
ab5b7cd015
commit
4e33133733
3 changed files with 564 additions and 3570 deletions
|
|
@ -14,9 +14,10 @@ DOMAIN=http://localhost
|
|||
#ACCOUNT_DOMAIN=halkyon.eu
|
||||
|
||||
# The instance's other services (optional, ADR 0016), such as Halkyon Todo: Halkyon
|
||||
# Learn holds the instance's register of accounts, so an address, a GitHub account and a
|
||||
# handle are one person in every service, and deleting the account deletes it in all.
|
||||
# The register learns when someone signs in to which service (the privacy page says so).
|
||||
# Learn holds the instance's register of accounts, so an address, a SimpleLogin account
|
||||
# and a handle are one person in every service, and deleting the account deletes it in
|
||||
# all. The register learns when someone signs in to which service (the privacy page says
|
||||
# so).
|
||||
# INSTANCE_SECRET is the secret the services share, carried by every call between them:
|
||||
# the same value in each service's environment, never given to a device. Empty: no
|
||||
# service calls another. Generate: openssl rand -hex 32
|
||||
|
|
@ -49,13 +50,6 @@ POSTGRES_PASSWORD=
|
|||
# Generate: openssl rand -base64 32
|
||||
SESSION_KEY_HASH_PEPPER=
|
||||
|
||||
# GitHub sign-in (optional): the client ID and secret of this instance's own GitHub
|
||||
# OAuth app (GitHub → Settings → Developer settings → OAuth Apps), registered with the
|
||||
# callback URLs app.halkyon.learn://github-callback and http://127.0.0.1/github-callback.
|
||||
# Empty: GitHub sign-in is off, and the app doesn't offer it.
|
||||
GITHUB_CLIENT_ID=
|
||||
GITHUB_CLIENT_SECRET=
|
||||
|
||||
# Email sign-in (optional, ADR 0010): people sign in with a code mailed to their address,
|
||||
# of which the instance keeps only a keyed hash. Off unless the pepper and all of the SMTP
|
||||
# service's settings are set; the app then doesn't offer it.
|
||||
|
|
@ -108,11 +102,6 @@ SIMPLELOGIN_CLIENT_SECRET=
|
|||
# server as it starts.
|
||||
#SIGN_IN_WAYS=simplelogin
|
||||
|
||||
# The day GitHub stops signing anyone in, three months after the release that brings
|
||||
# passwords (ADR 0017, D2): from then on its people sign in with their address and
|
||||
# password only, and the daily pruning forgets every GitHub ID. Empty: GitHub goes on.
|
||||
#GITHUB_SIGN_IN_ENDS=2027-01-22
|
||||
|
||||
# Where the source of what this instance runs is, shown in the app's About dialog: both
|
||||
# licences (AGPL for the app, SSPL for the server) require offering it to the people who
|
||||
# use the instance. Empty: the project's repository, which is right for unmodified code.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ then sync with a server that has forgotten their last hour:
|
|||
- **Someone who started after the backup** is unknown to the server. At the next start,
|
||||
their app finds its session gone and asks how to start; starting anew deletes the
|
||||
old account's data from the device, the only copy left. The same happens to a device
|
||||
that signed in after the backup, though a GitHub account can be signed into again.
|
||||
that signed in after the backup, though its person can sign in again with SimpleLogin
|
||||
or a password.
|
||||
- **An account deleted after the backup** comes back. Delete it again if you know which
|
||||
one it was.
|
||||
- **The instance's other services** (ADR 0016; none on learn.halkyon.eu yet), whose
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ services:
|
|||
environment:
|
||||
SERVERPOD_DATABASE_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in deploy/.env}
|
||||
SERVERPOD_PASSWORD_serverSideSessionKeyHashPepper: ${SESSION_KEY_HASH_PEPPER:?set SESSION_KEY_HASH_PEPPER in deploy/.env}
|
||||
# GitHub sign-in, only with this instance's GitHub OAuth app; empty: off.
|
||||
SERVERPOD_PASSWORD_githubClientId: ${GITHUB_CLIENT_ID:-}
|
||||
SERVERPOD_PASSWORD_githubClientSecret: ${GITHUB_CLIENT_SECRET:-}
|
||||
# Email sign-in (ADR 0010), only with the pepper and an SMTP service; empty: off.
|
||||
SERVERPOD_PASSWORD_emailSignInPepper: ${EMAIL_SIGN_IN_PEPPER:-}
|
||||
SERVERPOD_PASSWORD_emailSmtpHost: ${EMAIL_SMTP_HOST:-}
|
||||
|
|
@ -95,8 +92,6 @@ services:
|
|||
# (codes by mail, password and SimpleLogin sign-ins): without it, every
|
||||
# visitor would share each limit with everyone. Its address on `edge`, below.
|
||||
TRUSTED_PROXIES: 172.30.80.2 fd4a:6c6b:7e80::2
|
||||
# The day GitHub stops signing anyone in (`2027-01-22`); empty: no end.
|
||||
GITHUB_SIGN_IN_ENDS: ${GITHUB_SIGN_IN_ENDS:-}
|
||||
# Where the source of what this instance runs is; empty: the project's.
|
||||
SOURCE_URL: ${SOURCE_URL:-}
|
||||
# The domain people's handles are on; empty: DOMAIN's host.
|
||||
|
|
|
|||
Loading…
Reference in a new issue