Skip to content

Feat/allow local provider - #1598

Open
jimcullenaus wants to merge 4 commits into
nextcloud:mainfrom
jimcullenaus:feat/allow-local-provider
Open

jimcullenaus wants to merge 4 commits into
nextcloud:mainfrom
jimcullenaus:feat/allow-local-provider

Conversation

@jimcullenaus

Copy link
Copy Markdown

Nextcloud blocks requests to addresses on the local network, so it can't reach an identity provider on the same network (e.g. my self-hosted Keycloak server). There is a workaround to enable allow_local_remote_servers, but this turns off the protection entirely and allows unfettered access to any local server.

This PR adds a configurable option to user_oidc: httpclient.allowlocalprovider. It allows local addresses only for requests to the configured provider.

Fixes #803
Related: #397, #555, #1451

🤖 AI (if applicable)

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

Opt-in 'httpclient.allowlocalprovider' lets requests to configured
provider hosts bypass the local-address block, without enabling
'allow_local_remote_servers' server-wide.

Signed-off-by: James Cullen <jimcullenaus@gmail.com>
Assisted-by: ClaudeCode:claude-opus-5-5
The integration tests now reach Keycloak through the option instead of
'allow_local_remote_servers'.

Signed-off-by: James Cullen <jimcullenaus@gmail.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: James Cullen <jimcullenaus@gmail.com>
Assisted-by: ClaudeCode:claude-opus-5-5
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not update the provider: The discovery endpoint is not reachable.

1 participant