Preserving Source IP and webdav request conflict
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- apache, helm, kubernetes, nginx
- Ambito
- infrastructure, networking
Direzione di ricerca
Inizia con le annotazioni ingress e la richiesta curl OPTIONS mostrate nell’issue, quindi traccia il modo in cui ingress-nginx gestisce le richieste di preflight CORS per l’endpoint WebDAV di Nextcloud. Il lavoro è completo quando viene identificata una configurazione che preserva l’IP di origine, mantiene CORS abilitato, inoltra OPTIONS al backend e restituisce gli header WebDAV attesi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe your Issue
Hi,
I am trying to set up WebDAV for Zotero, but I am running into an issue with ingress and CORS settings.
- The deployment uses image.flavor: apache.
- I followed the recommended settings: preserve the source IP and support CORS.
- My current ingress annotations:
ingress:
annotations:
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
With this config, when Zotero or I use an OPTIONS request (for WebDAV capability check), the response is processed directly by the ingress (HTTP 204), and the request does not reach the backend (Nextcloud).
As a result, Zotero cannot detect the WebDAV capabilities correctly, since the WebDAV-specific headers (like DAV:) are not provided as expected. Though I can correctly synchronize webdav files, zotero must firstly do this step for checking before synchronizing.
Here is the curl test:
···bash
curl -i -X OPTIONS https://NEXTCLOUD-URL/remote.php/dav/files/USERNAME
···
Output
HTTP/2 204
...
access-control-allow-methods: GET, PUT, POST, DELETE, PATCH, OPTIONS, PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK
access-control-allow-headers: X-Forwarded-For
...
Question:
How should I configure ingress-nginx so that:
-
CORS is enabled,
-
Source IP is preserved,
-
AND the OPTIONS/WebDAV capability requests are actually forwarded to the backend (not intercepted by the ingress), so the WebDAV headers are correctly returned?
Any help is much appreciated!
Describe your Environment
-
Kubernetes distribution: rke2
-
Helm Version (or App that manages helm): it's independent to helm version
-
Helm Chart Version: it's independent to helm chart version
-
values.yaml:
# paste your values.yaml (anonymize any sensitive data)
Additional context, if any
- Lingua principale
- Go Template
- Stelle
- 536
- Fork
- 316
- Merge medio
- 4g 16h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/helm
-
No native support for REDIS_USER enviroment varForse già presa @jholmes802 l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Failed to inspect imageAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setForse già presa @JanWelker l’ha presa 18 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
-
External Redis not working: redis-session.ini: Permission deniedForse già presa @antoinetran l’ha presa 23 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Tutte le issue di nextcloud/helm
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mishraprafful/multihull#147 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
paperclipai/paperclip#15751 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Package for AUR (Arch Linux)Apertagood first issue need help packaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
phonology024/babelscribe#23 ·