Skip to content

feat(sharing): Allow lookup server queries for non GS instances than … - #67399

Open
T0mWz wants to merge 1 commit into
nextcloud:masterfrom
T0mWz:feat/allow-lookup-server-queries-for-for-non-gs-instances
Open

T0mWz wants to merge 1 commit into
nextcloud:masterfrom
T0mWz:feat/allow-lookup-server-queries-for-for-non-gs-instances

Conversation

@T0mWz

@T0mWz T0mWz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The lookup server can only be used in Global Scale setups today.
So a normal (non-GS) instance that runs its own lookup server can't use it for federated sharee search, and users can't publish their data to it, even when the admin turns it on.

If you're running multiple Nextcloud instances and want to simplify federation between your own environments, a lookup server is a great solution.

This PR makes the existing admin settings work again. It also requires a lookup server to be configured explicitly.

How to use this feature

  1. Set up a lookup server and configure it: https://github.com/nextcloud/lookup-server/
  2. Configure the lookup server on your instance;
   occ config:system:set lookup_server --value=https://lookup.example.org
  1. Enable queries and uploads:
   occ config:app:set files_sharing lookupServerEnabled --value=yes
   occ config:app:set files_sharing lookupServerUploadEnabled --value=yes
  1. Search for a remote user in the share dialog: results from the lookup server appear.
  2. Change a profile field with a published scope: the data is sent to the lookup server.
  3. Delete lookup_server: no lookup requests are made, even with both app settings set to yes.

Changes

  • The lookup server option now checks for the lookupServerEnabled option for the files_sharing
    application in addition to the existing Global Scale configuration (gs.enabled).
    In both cases, it is still required that lookup_server be set in config.php.
  • Because these getters now return the real values, the admin toggles in
    Settings → Sharing → Federated Cloud Sharing show the real state.

Breaking change

Global Scale setups that relied on the implicit https://lookup.nextcloud.com default must now set lookup_server explicitly. However, this endpoint doesn't seem to be responding, so perhaps it's already outdated?

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…just Global Scale setups

Signed-off-by: Tom Wezepoel <tom.wezepoel@surf.nl>
@T0mWz
T0mWz requested review from a team as code owners December 1, 2026 21:48
@T0mWz
T0mWz requested review from GhassenKefi, icewind1991, provokateurin and vlotysh and removed request for a team December 1, 2026 21:48

This branch has not been deployed

No deployments
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