Repository navigation
v1.7.0
The LDAP connection pool is wired for the first time, a failed login over plain HTTP now names its cause, and one new setting, TRUSTED_PROXIES, lets you name the peers whose X-Forwarded-* headers this app believes.
Added
TRUSTED_PROXIES / --trusted-proxies takes comma-separated IP addresses or CIDR ranges (#681, by @CybotTM). The default is the list the code carried hard-coded — 127.0.0.0/8, ::1/128, 172.16.0.0/12 — so an upgrade changes nothing. A TLS terminator on another network, such as a Kubernetes pod range or an external load balancer, could not be trusted before; the app then read its own scheme as plain HTTP, which the CSRF middleware answers with csrf: origin does not match host. Keep the list narrow, because it also decides whose X-Forwarded-For the login rate limiter counts against. Entries are validated at startup, and an IPv4-mapped entry is refused: ::ffff:0:0/96 parses as 0.0.0.0/0 and would trust every IPv4 peer there is.
Fixed
The LDAP connection pool exists now (#684, closing #677). The seven LDAP_POOL_* settings were parsed and read by nobody, so the service account client ran on direct connections and both health endpoints, which gate on pool statistics, reported failure: /health said overall_healthy: false and /health/ready answered 503 whenever a service account was configured. The pool is attached to the service account client alone — the per-request clients built from a logged-in user's credentials stay unpooled, or every login would warm a pool of its own. LDAP_POOL_MAX_LIFETIME is accepted and has no effect, because the library's pool keeps no connection age; it warns when set, and the documentation no longer recommends it.
A failed login over plain HTTP now says why (#679, reported by @grinapo in #678). Cookies are marked Secure by default, and a browser keeps such a cookie over plain HTTP only for loopback addresses. Reaching the app by IP or hostname over http:// therefore left every login POST without its CSRF cookie, and the middleware answered csrf: token invalid, which names the token rather than the cause. The log now names COOKIE_SECURE, the README marks the Quick Start as loopback-only, and a Production setup section states what a real deployment needs.
The command palette navigates by origin comparison (#685). Its guard against a tampered data-href inspected the first two characters, and browsers strip tabs and newlines before navigating, so "/<TAB>/evil.example" passed it and went cross-origin. The URL is no longer read back from the DOM at all: each row keeps its entry, and the link is rebuilt from it.
docker build --target=dev works again, and the three base images are pinned by the digest of their multi-arch index (#685). The stage still installed bun through curl | bash and copied package.json and bun.lock, both removed when the frontend went Go-only.
/debug/ldap-pool keeps reporting real numbers after the simple-ldap-go upgrade (#676): the client asks for EnableMetrics explicitly, so GetPoolStats() returns measurements instead of zeros indistinguishable from an idle server.
Changed
simple-ldap-go v1.16.0 → v1.18.1 (#684, #685). v1.18.0 makes GetPoolStats report the pool's real counts and honours the optimization flags; it also removed the host-name mock, so a client built against a fixture host now dials it. v1.18.1 carries a fix contributed from this work: the pool read a connection's fields after handing it back, which raced a concurrent Get (simple-ldap-go#254).
Go 1.27.0 directive, toolchain go1.27.1 (#683).
The two broken compose dev containers are gone (#687). ldap-manager-dev built the release stage from binaries that no local build produces, ldap-manager-test ran make check without the linters installed, and neither had worked since April. nginx now proxies https://localhost:8443 to the app run with make dev.
Upgrading
No action is required. The trusted-proxy default matches the previous hard-coded list, and no setting changes meaning. Two things become visible that were silent before: a deployment with a service account now passes /health/ready instead of answering 503, and LDAP_POOL_MAX_LIFETIME logs a warning where it is set.
Full changelog: v1.6.0...v1.7.0
Container image
ghcr.io/netresearch/ldap-manager:1.7.0
ghcr.io/netresearch/ldap-manager:1.7
ghcr.io/netresearch/ldap-manager:1
Verify your download
Per-asset signatures are bundled. Verify any single file:
cosign verify-blob \
--bundle ldap-manager-linux-amd64.sigstore.json \
--certificate-identity-regexp "^https://github\.com/netresearch/\.github/\.github/workflows/release-go-app\.yml@" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
ldap-manager-linux-amd64Verify checksums against the signed manifest:
cosign verify-blob \
--bundle checksums.txt.sigstore.json \
--certificate-identity-regexp "^https://github\.com/netresearch/\.github/\.github/workflows/release-go-app\.yml@" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
checksums.txt
sha256sum -c checksums.txt --ignore-missingVerify build provenance. Releases are built by a reusable
workflow, so the signing identity is that workflow rather than
this repository -- --signer-workflow is required and
verification fails without it:
gh attestation verify <artifact> \
--repo netresearch/ldap-manager \
--signer-workflow netresearch/.github/.github/workflows/release-go-app.ymlVerify container image:
cosign verify ghcr.io/netresearch/ldap-manager:1.7.0 \
--certificate-identity-regexp "^https://github\.com/netresearch/\.github/\.github/workflows/release-go-app\.yml@" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"
gh attestation verify oci://ghcr.io/netresearch/ldap-manager:1.7.0 \
--repo netresearch/ldap-manager \
--signer-workflow netresearch/.github/.github/workflows/release-go-app.yml