Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[bug] VPN-Client template allows VPN server change after device attachment, causing CA/certificate mismatch

Abierto
#1,397 2 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Stack tecnológico
django, python

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

blocked bug

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

  1. Create a CA and a VPN server (Server A) using that CA.
  2. Create a VPN-client template pointing to Server A.
  3. Create a device and attach the template to it, a VpnClient record and certificate signed by Server A's CA are created.
  4. Create a second VPN server (Server B) using a different CA.
  5. Open the template and change the VPN field from Server A to Server B.
  6. Save the template.
  7. 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openwisp/openwisp-controller

Todos los issues de openwisp/openwisp-controller

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.