Skip to content

feat(gitea): allow explicit HTTP instance origins - #3345

Merged
afonsojramos merged 3 commits into
mainfrom
feat/gitea-http-origins
Oct 1, 2026
Merged

afonsojramos merged 3 commits into
mainfrom
feat/gitea-http-origins

Conversation

@afonsojramos

@afonsojramos afonsojramos commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Gitea and Forgejo instances without TLS can now be used with an explicit origin such as http://git.internal:3000. Bare hostnames still default to HTTPS, and GitHub, GitLab and Bitbucket retain their existing hostname validation.

Authenticated follow-up requests must match the configured scheme, host and port. Equivalent origin spellings replace an existing account's token while preserving its identifier and filters. This extends the optional-port validator already merged into main.

Verified with 1,727 passing unit/component tests and all 60 browser interaction and visual regression tests in CI, plus TypeScript, lint, formatting, and a local production build. The two updated Gitea screenshot baselines come from the pinned ARM64 Playwright CI environment. Visual diff uploads now include the hidden attachments directory. The built file:// renderer authenticated against a real local HTTP fixture, fetched notifications, and retained the account after reload with Chromium web security enabled. Packaged Electron was not exercised; its bridge was stubbed. Code review and the conflict-resolution follow-up have no outstanding findings.

Related: #3344

Closes #3324

@afonsojramos
afonsojramos requested a review from setchy as a code owner October 1, 2026 00:06
@github-actions github-actions Bot added enhancement New feature or enhancement to existing functionality forge:gitea Gitea, Forgejo, Codeberg labels Oct 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 1, 2026

Copy link
Copy Markdown

@afonsojramos
afonsojramos merged commit 32d6d7b into main Oct 1, 2026
23 checks passed
@afonsojramos
afonsojramos deleted the feat/gitea-http-origins branch October 1, 2026 00:37
@github-actions github-actions Bot added this to the Release 7.x.x milestone Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement to existing functionality forge:gitea Gitea, Forgejo, Codeberg

Development

Successfully merging this pull request may close these issues.

feat(gitea): allow http:// origins for LAN / air-gapped instances

1 participant