Make remote docker daemon setup with HTTP networks easier

Abierto
#627 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, php
Área
api, backend, devops

Línea de trabajo

Comienza siguiendo los flujos de Register daemon y Test Deploy, y después inspecciona cómo OVERRIDE_APP_HOST y Docker Socket Proxy determinan el host de ExApp para daemons HTTP y HTTPS. Identifica los puntos de migración y validación de la UI necesarios para las configuraciones HTTP remotas. Se considera terminado cuando estén cubiertos la nueva opción, la migración, las advertencias, la comprobación de redirección y los ajustes de backport necesarios.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

daemon deploy enhancement gui javascript php priority: medium
Describe why it is important and where it will be useful

There are some specific conditions applied to the HTTP daemons in the setup of deploy daemon with docker socket proxy. In general HTTPS daemons ("Enable HTTPS" option checked) have been allowed and considered as remote deployments on remote servers with the assumption of the network in between being insecure.
This is the case for many but some setups can have the second ex-app server in the internal network itself or even in actually remote server, can have a VPN setup to facilitate secure communication.
Setting up HTTPS on the ex-app server in these cases may add a little overhead, may be secured with a self-signed certificate which would have to be trusted by the NC server, or when setting up a HTTP daemon, the issue may not present itself until the test deploy/app install phase.
The override for using the HTTP remote daemon is OVERRIDE_APP_HOST setting in the additional options menu, which is a little hidden and can also be hard to understand.

Allowing remote HTTP setups may not be that much insecure since admins can be trusted to understand their network setup (for the most part).
This only applies to Docker Socket Proxy.

Describe your proposed solution
  • Introduce new additional option to indicate remote setup, that is changing the logic of how ExApp host is resolved when HTTP is used.
    For this new option we need a migration to set it for existing daemons that already configured as remote (https enabled).
  • For the UI part of Register daemon and Test Deploy add more explicit hints on available configuration options that might help in case of heartbeat/init errors.
  • Add a warning in the registration UI if the daemon is marked as a remote daemon without HTTPS.
  • For Test deploy add new check and hint for infrastructure configuration issue (detect http -> https redirect, while the daemon is configured to use http).
  • This should be manually backported for NC 30 and 31 (because of different tests that are require adjustments).

Thanks to @andrey18106 and the team for the above points!

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Lenguaje dominante
PHP
Estrellas
202
Forks
30
Merge medio
3 d 20 h
PR fusionados (30 d)
24

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 nextcloud/app_api

Todos los issues de nextcloud/app_api

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.