Make remote docker daemon setup with HTTP networks easier

未关闭
#627 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
32/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, php
领域
api, backend, devops

调研方向

首先跟踪 Register daemon 和 Test Deploy 流程,然后检查 OVERRIDE_APP_HOST 和 Docker Socket Proxy 如何为 HTTP 和 HTTPS daemon 确定 ExApp 主机。确定远程 HTTP 设置所需的迁移和 UI 验证点。新选项、迁移、警告、重定向检查以及所需的 backport 调整都得到覆盖后,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
PHP
星标
202
派生
30
平均合并
3 天 20 小时
30 天内合并 PR
24

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/app_api 的其他 Issue

查看 nextcloud/app_api 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。