nginx-proxy-manager/backend
Tom Winnerl b9c19d9db4 fix(review): give the dry-run test's access stub the admin checks
The opt-in nginx dry-run test (NPM_TEST_NGINX=1) called
hostTest.buildHost() with an access stub that only had
token.getUserId. An edit runs the advanced config permission check,
which calls access.hasRole / access.token.hasScope, so the test threw a
TypeError before any of its dry-run checks ran.

The stub is now shaped like lib/access.js. The test also checks that the
permission path really runs: a user without admin rights can test an
edit, but not one that changes the advanced config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:03:56 +01:00
..
certbot Merge pull request #5951 from Alexis-Loskoutoff/fix/update-infomaniak-certbot-plugin 2026-11-05 10:03:35 +10:00
config Update SQLite client configuration from sqlite3 to better-sqlite3 2026-02-14 23:53:43 -08:00
internal fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
lib fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
migrations feat: rate limit auth endpoints and scope user proxy host permissions 2026-11-05 12:16:36 +05:00
models Optimise isAdmin lookups 2026-11-09 22:25:07 +10:00
routes feat: test a host's config without saving (POST /api/nginx/<type>/test) 2026-11-14 09:03:56 +01:00
schema fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
scripts fix(review): exit non-zero when regenerate-config could not configure a host 2026-11-13 19:19:31 +01:00
templates fix(review): keep $uri live in rewrite-phase statements of the cached-asset copy 2026-11-14 09:03:56 +01:00
test fix(review): give the dry-run test's access stub the admin checks 2026-11-14 09:03:56 +01:00
.gitignore
app.js feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
biome.json Update dependencies 2026-11-09 11:55:20 +10:00
db.js Updated backend packages 2026-08-22 23:10:26 +10:00
index.js feat(upstreams): discovery, reachability check and health monitor 2026-11-14 09:03:56 +01:00
knexfile.js Updated backend packages 2026-08-22 23:10:26 +10:00
logger.js feat: Add a Logs viewer to the admin UI 2026-09-22 13:11:38 -03:00
migrate.js Attempt to fix race condition with database instantiation 2025-11-07 09:46:00 +10:00
nodemon.json Fix proxy hosts routes throwing errors 2025-10-02 08:12:28 +10:00
package.json test(backend): nginx error parsing, blame, lock and advanced config checks 2026-11-11 13:48:58 +01:00
setup.js Merge branch 'develop' into develop 2026-09-23 18:53:06 +07:00
validate-schema.js Convert backend to ESM 2025-10-02 08:10:18 +10:00
yarn.lock Update dependencies 2026-11-09 11:55:20 +10:00