🔧 Remove DISABLE_QUERY_AUTH_TOKEN pin from app.ini 🔧
gitea / release-gitea (push) Successful in 13m58s

Gitea 28 still defaults the setting to false, so dropping the explicit
pin changes no behaviour and removes its startup warning. Existing
installs keep whatever they already have; the startup script never
touched this key.

- rootfs/tmp/etc/gitea/app.ini: remove DISABLE_QUERY_AUTH_TOKEN and its explanatory comment from [security]
- TODO.AI.md: note the removal in the Gitea 28 migration entry

Claude-Session: https://claude.ai/code/session_01Kae22tmhzhmfHyqc34PZbx
This commit is contained in:
casjay committed 2026-10-03 20:30:18 -04:00
1 parent 13e9ea9e16
commit 8fa9547fb1
2 files changed
+2 -7

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@
deprecated `[webhook]` key is moved to `[security]`), `[migrations]` host list and `EGRESS_MODE` are deprecated `[webhook]` key is moved to `[security]`), `[migrations]` host list and `EGRESS_MODE` are
added only when missing. Dead keys are left in place (ignored by Gitea). added only when missing. Dead keys are left in place (ignored by Gitea).
- Verified with the real image: a fresh install and an upgrade of a real customised config both start with - Verified with the real image: a fresh install and an upgrade of a real customised config both start with
zero `[E]` and, for the upgrade, zero warnings. Kept on purpose: `DISABLE_QUERY_AUTH_TOKEN = false` (an zero `[E]` and, for the upgrade, zero warnings. `DISABLE_QUERY_AUTH_TOKEN = false` pin removed at the
earlier deliberate pin) so a fresh install still logs its one warning. owner's request (28 still defaults to false, so no behaviour change; the startup warning is gone).
- Behaviour now actually in effect (was silently ignored before): `[migrations] SKIP_TLS_VERIFY = true` - Behaviour now actually in effect (was silently ignored before): `[migrations] SKIP_TLS_VERIFY = true`
and migrations/mirrors may reach private and loopback hosts. Needs the owner's confirmation. and migrations/mirrors may reach private and loopback hosts. Needs the owner's confirmation.
-5
View File
@@ -198,11 +198,6 @@ REVERSE_PROXY_AUTHENTICATION_FULL_NAME = X-WEBAUTH-FULLNAME
X_FRAME_OPTIONS = SAMEORIGIN X_FRAME_OPTIONS = SAMEORIGIN
ALLOWED_HOST_LIST = private,loopback ALLOWED_HOST_LIST = private,loopback
EGRESS_MODE = lax EGRESS_MODE = lax
; explicit: defaults to true starting Gitea 1.23 and deprecates ?token=/?access_token=
; auth entirely in 1.24 — pin false so query-token API calls keep authenticating on
; upgrade instead of silently downgrading to anonymous; migrate callers to
; "Authorization: token <token>" when convenient
DISABLE_QUERY_AUTH_TOKEN = false
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[time] [time]
DEFAULT_UI_LOCATION = REPLACE_TZ DEFAULT_UI_LOCATION = REPLACE_TZ