跳到正文

Go Git Service 版本记录

Gogs 是一款自托管 Git 服务,以命令行可执行文件形式分发。

Cask开发工具 4.8万
主页
安装命令
brew install --cask gogs
近 30 天安装
11
App榜第 2131
近一年安装
259
365 天累计
最新版本
0.14.4
下载大小
41MB
zip
更新节奏
每天
近 30 天 3 个版本
  1. 0.14.4

    最新补丁

    OpenNavo 编辑 Homebrew 收录

    Gogs 0.14.4 于 2026 年 11 月 12 日发布,修补自托管 Git 服务的安全漏洞,包括用密码重置链接登录。

    变更
    缩短激活或重置有效期后,已发出的链接也会随之失效。
    安全
    重置链接不能再在没有密码或双重验证时登录。被禁止登录的账户不能再靠令牌或 SSH 密钥访问。私有议题、附件和服务器文件不再像此前那样暴露。
  2. 0.14.4-rc.2GitHub Release
  3. 0.14.4-rc.1GitHub Release
  4. 0.14.3

    展开

    OpenNavo 编辑 Homebrew 收录

    修复涉及代理身份验证、SSRF、授权、内容渲染、仓库访问和服务器资源占用的安全问题。

    安全
    仅信任来自已配置代理 IP 的代理身份验证标头。修复 Webhook、镜像更新、迁移和同步中的 SSRF。防止笔记本预览和里程碑菜单中的 XSS。为附件、组织数据和仓库设置强制执行授权。阻止可导致命令执行或文件写入的构造路径。修复 Git LFS 泄露和 Git HTTP 访问检查。
    安全
    修复开放重定向、畸形 URL 导致的 DoS 及重置令牌有效期。拒绝不安全的 GET 团队管理操作。内置 SSH 握手未完成时会在 15 秒后断开。

    Gogs 0.14.3 修复了涉及身份验证、请求处理、授权、内容渲染、仓库访问和服务器资源占用的安全问题。现在,只有请求来自 [auth] TRUSTED_PROXY_IPS 中列出的地址时,才会信任反向代理身份验证标头。

    本版本关闭了涉及 Webhook 重定向、镜像地址更新、仓库迁移和定期镜像同步的 SSRF 路径;还修复了开放重定向和畸形外部问题跟踪器 URL 导致的拒绝服务问题,并防止 Jupyter 笔记本预览和里程碑下拉菜单中的存储型 XSS。访问控制修复涵盖私有仓库附件下载、组织元数据和团队端点、仓库设置、团队管理操作、协作者权限,以及推送期间的 Git HTTP 访问。

    其他修复涉及可能导致远程命令执行的构造分支名称和组织路径、可能在仓库之外写入文件的上传、跨仓库 Git LFS 对象泄露、密码重置令牌有效期,以及可能无限期占用资源的 SSH 握手。内置 SSH 服务现在会断开 15 秒内未完成的握手。

    来源:Gogs 0.14.3 发行说明。

  5. 0.14.2

    展开

    OpenNavo 编辑 Homebrew 收录

    所提供的官方发布证据未说明 v0.14.2 的变更。

    证据
    未列出专属于 v0.14.2 的变更。

    所提供的官方发布页面未说明 Go Git Service v0.14.2 的具体变更。页面还包含其他版本的信息,此处不作概述。

    来源:https://github.com/gogs/gogs/releases/tag/v0.14.2

  6. 0.14.1

    展开

    OpenNavo 编辑 Homebrew 收录

    新增标签比较和配置选项,更新构建与镜像分发说明,并修复四项安全问题及其他已报告的错误。

    新增
    支持比较标签和分支;文件查看页签显示文件名。Redis 会话支持 TLS,app.ini 支持展开环境变量。支持设置退出登录后的自定义跳转 URL。
    变更
    编译需要 Go 1.25;不再需要 CGO。移除 cert 构建标签;gogs cert 始终可用。Mermaid JS 更新至 11.9.0;已有仓库根目录保持不变。公布 0.16.0 及之后版本的 Docker 镜像迁移计划。
    修复
    修复四项安全问题,包括未认证文件上传。修复 MSSQL 页面、SSH 子模块、个人资料链接及特殊文件名问题。修复设置 HTTP_PROXY 或 HTTPS_PROXY 时的 Docker 健康检查。

    新增

    除分支外,现在也支持比较标签。查看文件时,浏览器标签页会显示文件名。Redis 会话可以使用 TLS,app.ini 中的值可以从环境变量展开,退出登录后也可以跳转至自定义 URL。

    变更

    从源代码编译需要 Go 1.25。SQLite 驱动改为纯 Go 实现,因此不再需要 CGO。cert 构建标签已移除,gogs cert 子命令始终可用。Mermaid JS 更新至 11.9.0。如果仓库根目录已存在,创建仓库操作会停止且不会更改该目录。

    本版本开始发布新一代 Docker 镜像 gogs/gogs:next-latest。说明计划从 0.16.0 起将其作为 gogs/gogs:latest。旧版镜像的使用已弃用;计划从 0.16.0 起以 gogs/gogs:legacy-latest 发布,并且不会早于 0.17.0 完全移除。新一代镜像尚未支持所有容器选项。

    修复

    修复四项安全问题:未认证文件上传、Web UI 中绕过受保护分支限制、通过授权绕过修改跨仓库标签,以及删除跨仓库评论。其他修复包括 MSSQL 下仓库关注者和星标者页面报错、带端口的 SSH 子模块显示异常、提交历史首个提交缺少个人资料链接、无法操作名称含特殊字符的文件,以及设置 HTTP_PROXY 或 HTTPS_PROXY 时 Docker 健康检查失败。

    来源:https://github.com/gogs/gogs/releases/tag/v0.14.1

  7. 0.14.1-rc.1GitHub Release
  8. 0.14.0

    展开

    GitHub Release

    ℹ️ Heads up! There is a new patch release 0.14.4 available, we recommend directly installing or upgrading to that version.

    [!CAUTION] This release was pulled back due to issues with builtin SSH server clone hanging, please use 0.14.1 instead.

  9. 0.14.0-rc.1GitHub Release
  10. 0.13.4

    展开

    GitHub Release Homebrew 收录

    [!warning] Due to changes to the release infrastructure, starting this release and going forward, pam tag will not be included for release archives that previously had it included.

    Fixed

    Previous patch releases

    0.13.3

    Fixed

    0.13.2

    Fixed

    • Security: Path Traversal in file editing UI. GHSA-r7j8-5h9c-f6fx
    • Security: Path Traversal in file update API. GHSA-qf5v-rp47-55gg
    • Security: Argument Injection in the built-in SSH server. GHSA-vm62-9jw3-c8w3
    • Security: Deletion of internal files. GHSA-ccqv-43vm-4f3w
    • Security: Argument Injection during changes preview. GHSA-9pp6-wq8c-3w2c
    • Security: Argument Injection when tagging new releases. GHSA-m27m-h5gj-wwmg
    • Use the non-deprecated section name [email] during installation for email settings. #7704
    • Use the non-deprecated section name [email] PASSWORD during installation for email password. #7807
    • Make purple template label color to actually use the hexcode of purple. #7722

    0.13.0

    Added

    • Support using personal access token in the password field. #3866
    • An unlisted option is added when create or migrate a repository. Unlisted repositories are public but not being listed for users without direct access in the UI. #5733
    • New API endpoint PUT /repos/:owner/:repo/contents/:path for creating and update repository contents. #5967
    • New configuration option [git.timeout] DIFF for customizing operation timeout of git diff. #6315
    • New configuration option [server] SSH_SERVER_MACS for setting list of accepted MACs for connections to builtin SSH server. #6434
    • New configuration option [repository] DEFAULT_BRANCH for setting default branch name for new repositories. #7291
    • New configuration option [server] SSH_SERVER_ALGORITHMS for specifying the list of accepted key exchange algorithms for connections to builtin SSH server. #7345
    • Support specifying custom schema for PostgreSQL. #6695
    • Support rendering Mermaid diagrams in Markdown. #6776
    • Docker: Allow passing extra arguments to the backup command. #7060
    • New languages support: Mongolian, Romanian. #6510 #7082

    Changed

    • The default branch has been changed to main. #6285
    • MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. #6295
    • Use Task as the build tool. #6297
    • The required Go version to compile source code changed to 1.18.
    • Access tokens are now stored using their SHA256 hashes instead of raw values. #7008

    Fixed

    • Unable to use LDAP authentication on ARM machines. #6761
    • Unable to choose "Lookup Avatar by mail" in user settings without deleting custom avatar. #7267
    • Mistakenly include the "data" directory under the custom directory in the Docker setup. #7343
    • Unable to start after data recovery with an outdated migration version. #7125

    Removed

    • ⚠️ Migrations before 0.12 are removed, installations not on 0.12 should upgrade to it to run the migrations and then upgrade to 0.13.
    • Configuration section [mailer] is no longer used, please use [email].
    • Configuration section [service] is no longer used, please use [auth].
    • Configuration option APP_NAME is no longer used, please use BRAND_NAME.
    • Configuration option [security] REVERSE_PROXY_AUTHENTICATION_USER is no longer used, please use [auth] REVERSE_PROXY_AUTHENTICATION_HEADER.
    • Configuration option [auth] ACTIVE_CODE_LIVE_MINUTES is no longer used, please use [auth] ACTIVATE_CODE_LIVES.
    • Configuration option [auth] RESET_PASSWD_CODE_LIVE_MINUTES is no longer used, please use [auth] RESET_PASSWORD_CODE_LIVES.
    • Configuration option [auth] ENABLE_CAPTCHA is no longer used, please use [auth] ENABLE_REGISTRATION_CAPTCHA.
    • Configuration option [auth] ENABLE_NOTIFY_MAIL is no longer used, please use [user] ENABLE_EMAIL_NOTIFICATION.
    • Configuration option [auth] REGISTER_EMAIL_CONFIRM is no longer used, please use [auth] REQUIRE_EMAIL_CONFIRMATION.
    • Configuration option [session] GC_INTERVAL_TIME is no longer used, please use [session] GC_INTERVAL.
    • Configuration option [session] SESSION_LIFE_TIME is no longer used, please use [session] MAX_LIFE_TIME.
    • Configuration option [server] ROOT_URL is no longer used, please use [server] EXTERNAL_URL.
    • Configuration option [server] LANDING_PAGE is no longer used, please use [server] LANDING_URL.
    • Configuration option [database] DB_TYPE is no longer used, please use [database] TYPE.
    • Configuration option [database] PASSWD is no longer used, please use [database] PASSWORD.
    • Remove option to use Makefile as the build tool. #6980
  11. 0.13.4-rc.3GitHub Release
  12. 0.13.4-rc.2GitHub Release
  13. 0.13.4-rc.1GitHub Release
  14. 0.13.3

    展开

    GitHub Release

    ℹ️ Heads up! There is a new patch release 0.13.4 available, we recommend directly installing or upgrading to that version.

    [!warning] Due to changes to the release infrastructure, starting this release and going forward, pam tag will not be included for release archives that previously had it included.

    Fixed

    Previous patch releases

    0.13.2

    Fixed

    • Security: Path Traversal in file editing UI. GHSA-r7j8-5h9c-f6fx
    • Security: Path Traversal in file update API. GHSA-qf5v-rp47-55gg
    • Security: Argument Injection in the built-in SSH server. GHSA-vm62-9jw3-c8w3
    • Security: Deletion of internal files. GHSA-ccqv-43vm-4f3w
    • Security: Argument Injection during changes preview. GHSA-9pp6-wq8c-3w2c
    • Security: Argument Injection when tagging new releases. GHSA-m27m-h5gj-wwmg
    • Use the non-deprecated section name [email] during installation for email settings. #7704
    • Use the non-deprecated section name [email] PASSWORD during installation for email password. #7807
    • Make purple template label color to actually use the hexcode of purple. #7722

    0.13.0

    Added

    • Support using personal access token in the password field. #3866
    • An unlisted option is added when create or migrate a repository. Unlisted repositories are public but not being listed for users without direct access in the UI. #5733
    • New API endpoint PUT /repos/:owner/:repo/contents/:path for creating and update repository contents. #5967
    • New configuration option [git.timeout] DIFF for customizing operation timeout of git diff. #6315
    • New configuration option [server] SSH_SERVER_MACS for setting list of accepted MACs for connections to builtin SSH server. #6434
    • New configuration option [repository] DEFAULT_BRANCH for setting default branch name for new repositories. #7291
    • New configuration option [server] SSH_SERVER_ALGORITHMS for specifying the list of accepted key exchange algorithms for connections to builtin SSH server. #7345
    • Support specifying custom schema for PostgreSQL. #6695
    • Support rendering Mermaid diagrams in Markdown. #6776
    • Docker: Allow passing extra arguments to the backup command. #7060
    • New languages support: Mongolian, Romanian. #6510 #7082

    Changed

    • The default branch has been changed to main. #6285
    • MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. #6295
    • Use Task as the build tool. #6297
    • The required Go version to compile source code changed to 1.18.
    • Access tokens are now stored using their SHA256 hashes instead of raw values. #7008

    Fixed

    • Unable to use LDAP authentication on ARM machines. #6761
    • Unable to choose "Lookup Avatar by mail" in user settings without deleting custom avatar. #7267
    • Mistakenly include the "data" directory under the custom directory in the Docker setup. #7343
    • Unable to start after data recovery with an outdated migration version. #7125

    Removed

    • ⚠️ Migrations before 0.12 are removed, installations not on 0.12 should upgrade to it to run the migrations and then upgrade to 0.13.
    • Configuration section [mailer] is no longer used, please use [email].
    • Configuration section [service] is no longer used, please use [auth].
    • Configuration option APP_NAME is no longer used, please use BRAND_NAME.
    • Configuration option [security] REVERSE_PROXY_AUTHENTICATION_USER is no longer used, please use [auth] REVERSE_PROXY_AUTHENTICATION_HEADER.
    • Configuration option [auth] ACTIVE_CODE_LIVE_MINUTES is no longer used, please use [auth] ACTIVATE_CODE_LIVES.
    • Configuration option [auth] RESET_PASSWD_CODE_LIVE_MINUTES is no longer used, please use [auth] RESET_PASSWORD_CODE_LIVES.
    • Configuration option [auth] ENABLE_CAPTCHA is no longer used, please use [auth] ENABLE_REGISTRATION_CAPTCHA.
    • Configuration option [auth] ENABLE_NOTIFY_MAIL is no longer used, please use [user] ENABLE_EMAIL_NOTIFICATION.
    • Configuration option [auth] REGISTER_EMAIL_CONFIRM is no longer used, please use [auth] REQUIRE_EMAIL_CONFIRMATION.
    • Configuration option [session] GC_INTERVAL_TIME is no longer used, please use [session] GC_INTERVAL.
    • Configuration option [session] SESSION_LIFE_TIME is no longer used, please use [session] MAX_LIFE_TIME.
    • Configuration option [server] ROOT_URL is no longer used, please use [server] EXTERNAL_URL.
    • Configuration option [server] LANDING_PAGE is no longer used, please use [server] LANDING_URL.
    • Configuration option [database] DB_TYPE is no longer used, please use [database] TYPE.
    • Configuration option [database] PASSWD is no longer used, please use [database] PASSWORD.
    • Remove option to use Makefile as the build tool. #6980
  15. 0.13.3-rc.1GitHub Release
  16. 0.13.2

    展开

    GitHub Release Homebrew 收录

    ℹ️ Heads up! There is a new patch release 0.13.4 available, we recommend directly installing or upgrading to that version.

    [!warning] Due to changes to the release infrastructure, starting this release and going forward, pam tag will not be included for release archives that previously had it included.

    Fixed

    • Security: Path Traversal in file editing UI. GHSA-r7j8-5h9c-f6fx
    • Security: Path Traversal in file update API. GHSA-qf5v-rp47-55gg
    • Security: Argument Injection in the built-in SSH server. GHSA-vm62-9jw3-c8w3
    • Security: Deletion of internal files. GHSA-ccqv-43vm-4f3w
    • Security: Argument Injection during changes preview. GHSA-9pp6-wq8c-3w2c
    • Security: Argument Injection when tagging new releases. GHSA-m27m-h5gj-wwmg
    • Use the non-deprecated section name [email] during installation for email settings. #7704
    • Use the non-deprecated section name [email] PASSWORD during installation for email password. #7807
    • Make purple template label color to actually use the hexcode of purple. #7722

    Previous patch releases

    0.13.0

    Added

    • Support using personal access token in the password field. #3866
    • An unlisted option is added when create or migrate a repository. Unlisted repositories are public but not being listed for users without direct access in the UI. #5733
    • New API endpoint PUT /repos/:owner/:repo/contents/:path for creating and update repository contents. #5967
    • New configuration option [git.timeout] DIFF for customizing operation timeout of git diff. #6315
    • New configuration option [server] SSH_SERVER_MACS for setting list of accepted MACs for connections to builtin SSH server. #6434
    • New configuration option [repository] DEFAULT_BRANCH for setting default branch name for new repositories. #7291
    • New configuration option [server] SSH_SERVER_ALGORITHMS for specifying the list of accepted key exchange algorithms for connections to builtin SSH server. #7345
    • Support specifying custom schema for PostgreSQL. #6695
    • Support rendering Mermaid diagrams in Markdown. #6776
    • Docker: Allow passing extra arguments to the backup command. #7060
    • New languages support: Mongolian, Romanian. #6510 #7082

    Changed

    • The default branch has been changed to main. #6285
    • MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. #6295
    • Use Task as the build tool. #6297
    • The required Go version to compile source code changed to 1.18.
    • Access tokens are now stored using their SHA256 hashes instead of raw values. #7008

    Fixed

    • Unable to use LDAP authentication on ARM machines. #6761
    • Unable to choose "Lookup Avatar by mail" in user settings without deleting custom avatar. #7267
    • Mistakenly include the "data" directory under the custom directory in the Docker setup. #7343
    • Unable to start after data recovery with an outdated migration version. #7125

    Removed

    • ⚠️ Migrations before 0.12 are removed, installations not on 0.12 should upgrade to it to run the migrations and then upgrade to 0.13.
    • Configuration section [mailer] is no longer used, please use [email].
    • Configuration section [service] is no longer used, please use [auth].
    • Configuration option APP_NAME is no longer used, please use BRAND_NAME.
    • Configuration option [security] REVERSE_PROXY_AUTHENTICATION_USER is no longer used, please use [auth] REVERSE_PROXY_AUTHENTICATION_HEADER.
    • Configuration option [auth] ACTIVE_CODE_LIVE_MINUTES is no longer used, please use [auth] ACTIVATE_CODE_LIVES.
    • Configuration option [auth] RESET_PASSWD_CODE_LIVE_MINUTES is no longer used, please use [auth] RESET_PASSWORD_CODE_LIVES.
    • Configuration option [auth] ENABLE_CAPTCHA is no longer used, please use [auth] ENABLE_REGISTRATION_CAPTCHA.
    • Configuration option [auth] ENABLE_NOTIFY_MAIL is no longer used, please use [user] ENABLE_EMAIL_NOTIFICATION.
    • Configuration option [auth] REGISTER_EMAIL_CONFIRM is no longer used, please use [auth] REQUIRE_EMAIL_CONFIRMATION.
    • Configuration option [session] GC_INTERVAL_TIME is no longer used, please use [session] GC_INTERVAL.
    • Configuration option [session] SESSION_LIFE_TIME is no longer used, please use [session] MAX_LIFE_TIME.
    • Configuration option [server] ROOT_URL is no longer used, please use [server] EXTERNAL_URL.
    • Configuration option [server] LANDING_PAGE is no longer used, please use [server] LANDING_URL.
    • Configuration option [database] DB_TYPE is no longer used, please use [database] TYPE.
    • Configuration option [database] PASSWD is no longer used, please use [database] PASSWORD.
    • Remove option to use Makefile as the build tool. #6980
  17. 0.13.0

    展开

    GitHub Release

    ℹ️ Heads up! There is a new patch release 0.13.4 available, we recommend directly installing or upgrading to that version.

    Added

    • Support using personal access token in the password field. #3866
    • An unlisted option is added when create or migrate a repository. Unlisted repositories are public but not being listed for users without direct access in the UI. #5733
    • New API endpoint PUT /repos/:owner/:repo/contents/:path for creating and update repository contents. #5967
    • New configuration option [git.timeout] DIFF for customizing operation timeout of git diff. #6315
    • New configuration option [server] SSH_SERVER_MACS for setting list of accepted MACs for connections to builtin SSH server. #6434
    • New configuration option [repository] DEFAULT_BRANCH for setting default branch name for new repositories. #7291
    • New configuration option [server] SSH_SERVER_ALGORITHMS for specifying the list of accepted key exchange algorithms for connections to builtin SSH server. #7345
    • Support specifying custom schema for PostgreSQL. #6695
    • Support rendering Mermaid diagrams in Markdown. #6776
    • Docker: Allow passing extra arguments to the backup command. #7060
    • New languages support: Mongolian, Romanian. #6510 #7082

    Changed

    • The default branch has been changed to main. #6285
    • MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. #6295
    • Use Task as the build tool. #6297
    • The required Go version to compile source code changed to 1.18.
    • Access tokens are now stored using their SHA256 hashes instead of raw values. #7008

    Fixed

    • Unable to use LDAP authentication on ARM machines. #6761
    • Unable to choose "Lookup Avatar by mail" in user settings without deleting custom avatar. #7267
    • Mistakenly include the "data" directory under the custom directory in the Docker setup. #7343
    • Unable to start after data recovery with an outdated migration version. #7125

    Removed

    • ⚠️ Migrations before 0.12 are removed, installations not on 0.12 should upgrade to it to run the migrations and then upgrade to 0.13.
    • Configuration section [mailer] is no longer used, please use [email].
    • Configuration section [service] is no longer used, please use [auth].
    • Configuration option APP_NAME is no longer used, please use BRAND_NAME.
    • Configuration option [security] REVERSE_PROXY_AUTHENTICATION_USER is no longer used, please use [auth] REVERSE_PROXY_AUTHENTICATION_HEADER.
    • Configuration option [auth] ACTIVE_CODE_LIVE_MINUTES is no longer used, please use [auth] ACTIVATE_CODE_LIVES.
    • Configuration option [auth] RESET_PASSWD_CODE_LIVE_MINUTES is no longer used, please use [auth] RESET_PASSWORD_CODE_LIVES.
    • Configuration option [auth] ENABLE_CAPTCHA is no longer used, please use [auth] ENABLE_REGISTRATION_CAPTCHA.
    • Configuration option [auth] ENABLE_NOTIFY_MAIL is no longer used, please use [user] ENABLE_EMAIL_NOTIFICATION.
    • Configuration option [auth] REGISTER_EMAIL_CONFIRM is no longer used, please use [auth] REQUIRE_EMAIL_CONFIRMATION.
    • Configuration option [session] GC_INTERVAL_TIME is no longer used, please use [session] GC_INTERVAL.
    • Configuration option [session] SESSION_LIFE_TIME is no longer used, please use [session] MAX_LIFE_TIME.
    • Configuration option [server] ROOT_URL is no longer used, please use [server] EXTERNAL_URL.
    • Configuration option [server] LANDING_PAGE is no longer used, please use [server] LANDING_URL.
    • Configuration option [database] DB_TYPE is no longer used, please use [database] TYPE.
    • Configuration option [database] PASSWD is no longer used, please use [database] PASSWORD.
    • Remove option to use Makefile as the build tool. #6980
  18. 0.12.11

    展开

    GitHub Release

    Fixed

    • Security: Stored XSS for issue assignees. #7145
    • Security: OS Command Injection in repo editor on case-insensitive file systems. #7030
    • Unable to render repository pages with implicit submodules (e.g. get submodule "REDACTED": revision does not exist). #6436

    Previous patch releases

    0.12.10

    Changed

    • Support using [security] LOCAL_NETWORK_ALLOWLIST = * to allow all hostnames. #7111

    Fixed

    • Unable to send webhooks to local network addresses after configured [security] LOCAL_NETWORK_ALLOWLIST. #7074

    0.12.9

    Fixed

    • Security: OS Command Injection in file editor. #7000
    • Security: Sanitize DisplayName in repository issue list. #7009
    • Security: Path Traversal in file editor on Windows. #7001
    • Security: Path Traversal in Git HTTP endpoints. #7002
    • Unable to init repository during creation on Windows. #6967
    • Mysterious panic on Value not found for type *repo.HTTPContext. #6963

    0.12.8

    Changed

    • All users (including admins) need to use the configuration option [security] LOCAL_NETWORK_ALLOWLIST to allow repository migration and webhooks to be able to access local network addresses, which is a comma separated list of hostnames. #6988

    Fixed

    • Security: SSRF in webhook. #6901
    • Security: XSS in cookies. #6953
    • Security: OS Command Injection in file uploading. #6968
    • Security: Remote Command Execution in file editing. #6555

    0.12.7

    Fixed

    • Security: Stored XSS in issues. #6919
    • Invalid character in Access-Control-Allow-Credentials response header. #4983
    • Mysterious ssh: overflow reading version string errors from builtin SSH server. #6882

    0.12.6

    Fixed

    • Security: Remote command execution in file uploading. #6833
    • Regression: Unable to migrate repository from other local Git hosting. Added a new configuration option [security] LOCAL_NETWORK_ALLOWLIST, which is a comma separated list of hostnames that are explicitly allowed to be accessed within the local network. #6841
    • Slow start of Docker containers using NAS devices. #6554

    0.12.5

    Fixed

    • Security: Potential SSRF in repository migration. #6754
    • Security: Improper PAM authorization handling. #6810

    0.12.4

    Fixed

    • Security: Potential SSRF attack by CRLF injection via repository migration. #6413
    • Regression: Fixed smart links for issues stops rendering. #6506
    • Added X-Frame-Options header to prevent Clickjacking. #6409

    0.12.3

    Fixed

    • Regression: When running Gogs on Windows, push commits no longer fail on a daily basis with the error "pre-receive hook declined". #6316
    • Auto-linked commit SHAs now have correct links. #6300
    • Git LFS client (with version >= 2.5.0) wasn't able to upload files with known format (e.g. PNG, JPEG), and the server is expecting the HTTP Header Content-Type to be application/octet-stream. The server now tells the LFS client to always use Content-Type: application/octet-stream when upload files.

    0.12.2

    Fixed

    • Regression: Pages are correctly rendered when requesting ?go-get=1 for subdirectories. #6314
    • Regression: Submodule with a relative path is linked correctly. #6319
    • Backup can be processed when --target is specified on Windows. #6339
    • Commit message contains keywords look like an issue reference no longer fails the push entirely. #6289

    0.12.1

    Fixed

    • The updated_at field is now correctly updated when updates an issue. #6209
    • Fixed a regression which created login_source.cfg column to have VARCHAR(255) instead of TEXT in MySQL. #6280

    0.12.0

    Added

    • Support for Git LFS, you can read documentation for both user and admin. #1322
    • Allow admin to remove observers from the repository. #5803
    • Use Last-Modified HTTP header for raw files. #5811
    • Support syntax highlighting for SAS code files (i.e. .r, .sas, .tex, .yaml). #5856
    • Able to fill in pull request title with a template. #5901
    • Able to override static files under public/ directory, please refer to documentation for usage. #5920
    • New API endpoint GET /admin/teams/:teamid/members to list members of a team. #5877
    • Support backup with retention policy for Docker deployments. #6140

    Changed

    • The organization profile page has changed to display at most 12 members. #5506
    • The required Go version to compile source code changed to 1.14.
    • All assets are now embedded into binary and served from memory by default. Set [server] LOAD_ASSETS_FROM_DISK = true to load them from disk. #5920
    • Application and Go versions are removed from page footer and only show in the admin dashboard.
    • Build tag for running as Windows Service has been changed from miniwinsvc to minwinsvc.
    • Configuration option APP_NAME is deprecated and will end support in 0.13.0, please start using BRAND_NAME.
    • Configuration option [server] ROOT_URL is deprecated and will end support in 0.13.0, please start using [server] EXTERNAL_URL.
    • Configuration option [server] LANDING_PAGE is deprecated and will end support in 0.13.0, please start using [server] LANDING_URL.
    • Configuration option [database] DB_TYPE is deprecated and will end support in 0.13.0, please start using [database] TYPE.
    • Configuration option [database] PASSWD is deprecated and will end support in 0.13.0, please start using [database] PASSWORD.
    • Configuration option [security] REVERSE_PROXY_AUTHENTICATION_USER is deprecated and will end support in 0.13.0, please start using [auth] REVERSE_PROXY_AUTHENTICATION_HEADER.
    • Configuration section [mailer] is deprecated and will end support in 0.13.0, please start using [email].
    • Configuration section [service] is deprecated and will end support in 0.13.0, please start using [auth].
    • Configuration option [auth] ACTIVE_CODE_LIVE_MINUTES is deprecated and will end support in 0.13.0, please start using [auth] ACTIVATE_CODE_LIVES.
    • Configuration option [auth] RESET_PASSWD_CODE_LIVE_MINUTES is deprecated and will end support in 0.13.0, please start using [auth] RESET_PASSWORD_CODE_LIVES.
    • Configuration option [auth] ENABLE_CAPTCHA is deprecated and will end support in 0.13.0, please start using [auth] ENABLE_REGISTRATION_CAPTCHA.
    • Configuration option [auth] ENABLE_NOTIFY_MAIL is deprecated and will end support in 0.13.0, please start using [user] ENABLE_EMAIL_NOTIFICATION.
    • Configuration option [session] GC_INTERVAL_TIME is deprecated and will end support in 0.13.0, please start using [session] GC_INTERVAL.
    • Configuration option [session] SESSION_LIFE_TIME is deprecated and will end support in 0.13.0, please start using [session] MAX_LIFE_TIME.
    • The name - is reserved and cannot be used for users or organizations.

    Fixed

    • [Security] Potential open redirection with i18n.
    • [Security] Potential ability to delete files outside a repository.
    • [Security] Potential ability to set primary email on others' behalf from their verified emails.
    • [Security] Potential XSS attack via .ipynb. #5170
    • [Security] Potential SSRF attack via webhooks. #5366
    • [Security] Potential CSRF attack in admin panel. #5367
    • [Security] Potential stored XSS attack in some browsers. #5397
    • [Security] Potential RCE on mirror repositories. #5767
    • [Security] Potential XSS attack with raw markdown API. #5907
    • File both modified and renamed within a commit treated as separate files. #5056
    • Unable to restore the database backup to MySQL 8.0 with syntax error. #5602
    • Open/close milestone redirects to a 404 page. #5677
    • Disallow multiple tokens with same name. #5587 #5820
    • Enable Federated Avatar Lookup could cause server to crash. #5848
    • Private repositories are hidden in the organization's view. #5869
    • Users have access to base repository cannot view commits in forks. #5878
    • Server error when changing email address in user settings page. #5899
    • Fall back to use RFC 3339 as time layout when misconfigured. #6098
    • Unable to update team with server error. #6185
    • Webhooks are not fired after push when [service] REQUIRE_SIGNIN_VIEW = true.
    • Files with identical content are randomly displayed one of them.

    Removed

    • Configuration option [other] SHOW_FOOTER_VERSION
    • Configuration option [server] STATIC_ROOT_PATH
    • Configuration option [repository] MIRROR_QUEUE_LENGTH
    • Configuration option [repository] PULL_REQUEST_QUEUE_LENGTH
    • Configuration option [session] ENABLE_SET_COOKIE
    • Configuration option [release.attachment] PATH
    • Configuration option [webhook] QUEUE_LENGTH
    • Build tag sqlite, which means CGO is now required.