[bug] VPN-Client template allows VPN server change after device attachment, causing CA/certificate mismatch
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #1400 de @SurbhiAgarwal1 — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- networking, security
Línea de trabajo
Comienza con el flujo de actualización de la plantilla de VPN-client descrito en la reproducción y rastrea cómo afecta el cambio del campo vpn a los dispositivos adjuntos, los registros de VpnClient, la configuración renderizada y los certificados. Compara las rutas de validación y administración y, después, verifica que guardar una plantilla asignada produzca un bloqueo comprensible para el usuario o una advertencia destacada de reaprovisionamiento, sin dejar una discrepancia de CA.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
A VPN-type template that is already attached to a device can have its VPN server field changed without any validation or warning. When the template is pointed at a different VPN server, the existing device continues to hold a certificate that was signed by the original VPN server's CA. The new VPN server uses a different CA and will reject the device's certificate during the TLS handshake, silently dropping the device off the VPN with no error shown in the admin UI.
Steps To Reproduce
- Create a CA and a VPN server (Server A) using that CA.
- Create a VPN-client template pointing to Server A.
- Create a device and attach the template to it, a VpnClient record and certificate signed by Server A's CA are created.
- Create a second VPN server (Server B) using a different CA.
- Open the template and change the VPN field from Server A to Server B.
- Save the template.
- Observe that the device's rendered configuration now references Server B, but the enrolled certificate is still signed by Server A's CA, which Server B does not trust.
Expected behavior
Changing the vpn field on a template that is already assigned to one or more devices should either be blocked with a user-readable validation error, or the admin should display a prominent warning that all enrolled devices will have a CA/certificate mismatch and must be re-provisioned.
Screenshots
N/A
System Informatioon:
- OS: Fedora 42
- Python Version: Python 3.13
- Django Version: Django 5.2.14
- Browser and Browser Version (if applicable): Firefox
- Lenguaje dominante
- Python
- Estrellas
- 779
- Forks
- 328
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openwisp/openwisp-controller
-
[fix] Recent Commands row uses "created" timestamp for the "Modified" fieldPosiblemente ocupada @xovishnukosuri la tomó hace 215 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
openwisp/openwisp-controller#1263 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[feature] Emit a signal when a device operating system changesPosiblemente ocupada @kimpasha23-beep la tomó hace 3 días. Abiertoenhancement
Dificultad 3/5 Medio día Aptitud para principiantes 65/100
openwisp/openwisp-controller#1506 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[feature] Add board_name field to Device model for DTB board identificationPosiblemente ocupada @atif09 la tomó hace 27 días. Abiertoenhancement gsoc
openwisp/openwisp-controller#1491 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[bug:gsoc26] Mass command wizards started in two browser tabs overwrite each otherPosiblemente ocupada @dee077 la tomó hace 29 días. Abiertobug
openwisp/openwisp-controller#1489 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
openwisp/openwisp-controller#1484 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de openwisp/openwisp-controller
Issues similares
-
approved Good First Issue scope: docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
hiero-ledger/hiero-sdk-python#2730 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
wemake-services/wemake-django-template#3178 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
md/asciidoc/csv: an explicit `encoding="utf-8"` keeps a leading BOM, the auto-detect path drops itAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
docling-project/docling#4846 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
neurostuff/NiMARE#1181 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pytest-dev/pytest#15180 ·
Los mantenedores suelen responder en 1 día