Skip to content

Remove Nextcloud auto-symlink + drop unused Remote-Groups header#4

Merged
cyberb merged 2 commits into
masterfrom
remove-nextcloud-link
Jul 2, 2026
Merged

Remove Nextcloud auto-symlink + drop unused Remote-Groups header#4
cyberb merged 2 commits into
masterfrom
remove-nextcloud-link

Conversation

@cyberb

@cyberb cyberb commented Jul 2, 2026

Copy link
Copy Markdown
Member

Two cleanups now that the library-management story is clearer.

1. Remove Nextcloud auto-symlink

The storage-change hook symlinked the entire /data/nextcloud tree into the library (/data/navidrome/nextcloud -> /data/nextcloud), which dragged in non-music content — course videos, files_trashbin (deleted files), files_versions, appdata_*, tmp — burying real music under [Unknown Album] entries (observed on boris: 877 tracks scanned, only ~351 real music, 164 from trashbin). Drop the auto-link; StorageChange() now just inits and chowns storage. An admin can add a scoped library (e.g. /data/nextcloud/<user>/files/Music) via Settings → Libraries in the web UI instead (multi-library since navidrome v0.58.0; paths must be absolute + readable by the process).

  • Drops linkNextcloud() and its call in StorageChange.
  • Removes test_nextcloud_link_forced integration test.

2. Drop unused Remote-Groups header

Navidrome's ExtAuth path only reads the user header (ND_EXTAUTH_USERHEADER); it never consumes groups and has no group→admin mapping (admin = first provisioned user). Forwarding Remote-Groups did nothing, so remove the header and its auth_request_set var from both the session and basic auth-request configs.

CLI go vet + go build clean.

cyberb added 2 commits July 2, 2026 08:01
The storage-change hook symlinked the whole /data/nextcloud tree into
the library, which dragged in non-music content (course videos, trashbin,
versions, appdata, tmp) and buried real music under [Unknown Album]
entries. Drop the auto-link for now; storage-change just inits and chowns
the app storage. Library sources can be set up deliberately later.
Navidrome's ExtAuth path only reads the user header (ND_EXTAUTH_USERHEADER);
it never consumes groups and has no group->admin mapping, so forwarding
Remote-Groups did nothing. Remove the header and its auth_request_set var
from both the session and basic auth-request configs.
@cyberb cyberb changed the title Remove Nextcloud auto-symlink feature Remove Nextcloud auto-symlink + drop unused Remote-Groups header Jul 2, 2026
@cyberb cyberb merged commit 847bca0 into master Jul 2, 2026
1 check passed
@cyberb cyberb deleted the remove-nextcloud-link branch July 2, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant