Skip to content

fix(auth): keep the GitLab sign-in callback on the registered port 9876 - #38

Merged
MotherSphere merged 1 commit into
mainfrom
fix/gitlab-callback-port-and-docs
Oct 14, 2026
Merged

MotherSphere merged 1 commit into
mainfrom
fix/gitlab-callback-port-and-docs

Conversation

@MotherSphere

Copy link
Copy Markdown
Member

Follow-up to #34 with the review findings on it.

  • GitLab callback port: GitLab matches the redirect URI exactly, so the fallback to ports 9877 to 9886 could never work and made sign-in fail whenever 9876 was busy. OAuthFlow now uses port 9876 only and reports a busy port before the browser opens. README Privacy, SECURITY.md and docs/internals/architecture.md now say port 9876.
  • Master password (docs/guide/configuration.md): GITSPACE_TOKEN_MASTER_PASSWORD is only read on the local-key path (load_or_create_local_key), when the keyring is unavailable. The env table now says so, matching the README Privacy row.
  • Proxy (docs/guide/configuration.md): the Preferences proxy covers git traffic and the repository search only; token checks and OAuth sign-in use the system proxy settings.
  • Layout (LAY-9): the root tests/ directory is gone; CI runs the built binary with --version on all three OS, as the release smoke test does.
  • Dependabot: egui and eframe are ignored until the iced port (feat(ui): rebuild the interface on iced #1) replaces them. Their majors must move together and need the interface rewritten, so chore(deps): bump egui from 0.27.2 to 0.33.3 #36 and chore(deps): bump eframe from 0.27.2 to 0.33.3 #37 can never pass alone.

GitLab only accepts the exact redirect URI registered with the
application, so falling back to ports 9877 to 9886 made sign-in fail
whenever 9876 was busy. OAuthFlow now uses port 9876 only and reports a
busy port before the browser opens.

Also:
- docs: GITSPACE_TOKEN_MASTER_PASSWORD only applies when the keyring is
  unavailable; the Preferences proxy covers git traffic and repository
  search, not token checks or OAuth sign-in.
- ci: run the built binary with --version and drop the root tests/
  directory, which the repository layout does not allow.
- dependabot: ignore egui and eframe until the iced port replaces them,
  since their majors cannot land alone.
@MotherSphere
MotherSphere merged commit 81ac476 into main Oct 14, 2026
5 checks passed
@MotherSphere
MotherSphere deleted the fix/gitlab-callback-port-and-docs branch October 14, 2026 11:57
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