github 0xJacky/nginx-ui v3.0.9

5 hours ago

Features

  • Blocklist sources can be applied directly to selected sites from the Blocklists page. The include is placed ahead of the site's allow and deny rules and access list includes, sites are changed under the same lock the site editor saves under, and removing a source from a site only touches nginx-ui's own blocklist includes by @3130585774 @0xJacky (388de37e, 92786269, 150e9761)
  • Available plugin updates are shown on the Installed tab, in the plugin drawer and on Marketplace cards, with the version change and a direct Update action. Updating keeps the plugin's enabled state by @0xJacky (d2d46808)

Bug Fixes

  • Configuration saved without the two-factor step-up, as by service tokens, cluster sync and MCP, is checked more strictly. load_module is accepted only for a module file inside the NGINX modules directory that nginx -V reports, and ssl_engine, engine: keys and master_process off need the step-up. Installed modules, including Debian modules-enabled snippets, keep loading for every caller by @0xJacky (79a717e5, 0a949411)
  • Without the step-up, NGINX log, temp, cache, pid and lock paths are accepted only in the log and temp directories NGINX uses by design and in the log paths set in Nginx UI's settings, and never inside the configuration or modules directory. Other paths are refused with the new error 40030 and can still be saved after the step-up. Includes that reach outside the configuration directory also need the step-up; /etc/letsencrypt is now trusted, so Certbot-managed sites save without it by @0xJacky (5a697e7a, ee6f4f0e, 05934407, 4a01cd88, d08b19b1, 2d6a9043, b54db783)
  • Without the step-up, init_by_lua*, lua_package_path and lua_package_cpath, the RTMP module's exec* directives, worker users or groups with administrative privileges, and proxying to a container runtime socket are refused; user 0 is refused like user root. The worker-phase Lua directives used by OpenResty stay allowed. The CrowdSec bouncer configuration now needs the step-up by @0xJacky (8fec2b0d, 99c9de40, c01bc294)
  • In external container and mounted SSH mode, write and include paths are resolved on the NGINX host itself, and the path reports no longer depend on the SSH user's login shell, so they also work when it is csh, tcsh or fish by @0xJacky (5a432b9b, 613946c0)
  • Validation reads only regular files of bounded size for includes, so an include of a device, a FIFO or a file in /proc can no longer make a save hang by @0xJacky (e033356b)
  • Plugin probe form values of site health checks are hidden from every service token, api:write included, and saving a health check back with the hidden values keeps the stored ones. Plugin storage settings of auto backups on child nodes are no longer returned to service tokens through the node relay, and health check request and response bodies are redacted from the audit log by @0xJacky (040d1e62, 872edd7d, 5e615bfd)
  • Creating, deleting or recovering records on a child node with a service token through the node proxy no longer fails with a 500 after the child has done the work by @0xJacky (4d6340a7)
  • proxy_pass and grpc_pass match upstream names without regard to case, as NGINX does, so proxy_pass http://BACKEND uses the upstream backend instead of being probed as a separate host by @Branson404 (99bff956)
  • Saving chat models with the MiniMax-M3.1-Flash or MiniMax-M3 thinking presets no longer fails with "Unknown thinking preset" by @ruanchaves (57cbc657)
  • Saving the DNS-01 plugin settings, or pushing them to child nodes, no longer fails list validation when the recursive DNS servers were carried over from the core settings (#2150) by @0xJacky (842598fe)
  • Auto backup tasks, namespaces, DNS credentials and DNS domains can be restored from their trash views again; restoring had answered 404 by @0xJacky (4352cc8d, d0a06670)
  • A plugin whose connection closes is reported consistently as closed, so a stopped plugin is detected reliably and no longer receives an error reply after it disconnects by @0xJacky (928ef8ed)

中文更新日志

新功能

  • 可以在封锁列表页面把封锁列表源直接应用到选定的站点。include 会放在站点的 allow/deny 规则和访问列表 include 之前;修改站点时持有与站点编辑器保存时相同的锁;从站点移除某个源时只会改动 Nginx UI 自己的封锁列表 include by @3130585774 @0xJacky (388de37e, 92786269, 150e9761)
  • 可用的插件更新会显示在“已安装”标签页、插件抽屉和市场卡片上,并标出版本变化和直接更新的按钮。更新后插件保持原来的启用状态 by @0xJacky (d2d46808)

问题修复

  • 未经过两步验证提权保存的配置(例如通过服务令牌、集群同步和 MCP 保存的配置)会接受更严格的检查。load_module 只接受位于 nginx -V 所报告的 NGINX 模块目录内的模块文件;ssl_engine、engine: 形式的密钥和 master_process off 需要提权。已安装的模块(包括 Debian 的 modules-enabled 片段)对所有调用方照常加载 by @0xJacky (79a717e5, 0a949411)
  • 未提权时,NGINX 的日志、临时、缓存、pid 和 lock 路径只能位于 NGINX 按设计写入的日志和临时目录,以及 Nginx UI 设置中配置的日志路径,且永远不能位于配置目录或模块目录内。其他路径会被拒绝并返回新的错误 40030,提权后仍可保存。指向配置目录之外的 include 同样需要提权;/etc/letsencrypt 现已被信任,由 Certbot 管理的站点无需提权即可保存 by @0xJacky (5a697e7a, ee6f4f0e, 05934407, 4a01cd88, d08b19b1, 2d6a9043, b54db783)
  • 未提权时,init_by_lua*、lua_package_path 和 lua_package_cpath、RTMP 模块的 exec* 指令、带有管理权限的 worker 用户或用户组,以及代理到容器运行时 socket 都会被拒绝;user 0 与 user root 一样被拒绝。OpenResty 使用的 worker 阶段 Lua 指令仍然允许。CrowdSec bouncer 配置现在需要提权 by @0xJacky (8fec2b0d, 99c9de40, c01bc294)
  • 在外部容器和挂载 SSH 模式下,写入路径和 include 路径会在 NGINX 所在主机上解析;路径检查不再依赖 SSH 用户的登录 shell,登录 shell 为 csh、tcsh 或 fish 时也能正常工作 by @0xJacky (5a432b9b, 613946c0)
  • 校验 include 时只读取大小受限的普通文件,include 设备文件、FIFO 或 /proc 下的文件不会再让保存卡住 by @0xJacky (e033356b)
  • 站点健康检查的插件探测表单值对所有服务令牌(包括 api:write)隐藏,带着隐藏值保存健康检查时会保留已存储的值。子节点自动备份的插件存储设置不再通过节点中继返回给服务令牌,健康检查的请求和响应内容也不再写入审计日志 by @0xJacky (040d1e62, 872edd7d, 5e615bfd)
  • 使用服务令牌通过节点代理在子节点上创建、删除或恢复记录时,不再在子节点已完成操作后返回 500 by @0xJacky (4d6340a7)
  • proxy_pass 和 grpc_pass 与 NGINX 一样不区分大小写地匹配 upstream 名称,proxy_pass http://BACKEND 会使用名为 backend 的 upstream,不再被当作单独的主机探测 by @Branson404 (99bff956)
  • 使用 MiniMax-M3.1-Flash 或 MiniMax-M3 的思考预设保存对话模型时,不再报错 “Unknown thinking preset” by @ruanchaves (57cbc657)
  • 从核心设置迁移过来的递归 DNS 服务器不再导致 DNS-01 插件设置的保存或推送到子节点时列表校验失败(#2150) by @0xJacky (842598fe)
  • 自动备份任务、命名空间、DNS 凭据和 DNS 域名可以重新从回收站恢复,此前恢复会返回 404 by @0xJacky (4352cc8d, d0a06670)
  • 插件连接关闭后会被一致地报告为已关闭,已停止的插件能被可靠地检测到,断开后也不会再收到错误回复 by @0xJacky (928ef8ed)

Contributors

@0xJacky
@3130585774
@Branson404
@ruanchaves

Don't miss a new nginx-ui release

NewReleases is sending notifications on new releases.