Conversation
Navidrome music streaming server (Subsonic/OpenSubsonic compatible), tracking syncloud/platform#741. A Go gateway (backend/) fronts navidrome and bridges Syncloud auth to navidrome's externalized (Remote-User header) auth: - Web UI: OIDC against the platform Authelia, signed session cookie. - Subsonic /rest/*: LDAP bind of the client-supplied credentials against the platform slapd, so mobile clients log in with Syncloud credentials; token-auth clients fall through to navidrome native auth. navidrome listens on a unix socket with ND_EXTAUTH_USERHEADER=Remote-User and ND_EXTAUTH_TRUSTEDSOURCES=@; only the gateway talks to it. Packaging follows the modern reference apps (files/audiobookshelf): meta/snap.yaml, cobra cli hooks, static nginx, store-publisher publish, bookworm+buster matrix, pytest integration tests and a Playwright SSO test. Upstream pinned to v0.62.0.
…nd webhooks are down)
…own for diagnosis
Navidrome auto-creates reverse-proxy users only on the web index (serveIndex -> handleLoginFromHeaders), not on the Subsonic endpoint, which returns 'data not found' for unknown users. After a successful LDAP bind, GET /app/ with the Remote-User header once per user to provision them, then proxy /rest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Packages Navidrome (music streaming, Subsonic/OpenSubsonic compatible) as a Syncloud app. Implements syncloud/platform#741 (supersedes Koel #301).
Auth model
Navidrome has no native OIDC/LDAP — only built-in users and reverse-proxy header auth. A small Go gateway (
backend/) bridges Syncloud auth to it:/…/rest/*Navidrome runs on a unix socket with
ND_EXTAUTH_USERHEADER=Remote-User/ND_EXTAUTH_TRUSTEDSOURCES=@; the gateway is the only client and injects a trustedRemote-Userafter authenticating.Caveat: Subsonic's default token auth (
md5(password+salt)) can't be verified against LDAP; mobile clients must send the password as plaintext/BasicAuth (safe over the platform's HTTPS) to use Syncloud credentials. Token-only clients fall through to navidrome native auth.Packaging
Follows the modern reference apps (
files/audiobookshelf):meta/snap.yaml, cobra CLI hooks, static nginx onweb.socket, store-publisher publish,bookworm+buster×amd64/arm64matrix.Tests
Upstream pinned to v0.62.0.