Make remote docker daemon setup with HTTP networks easier

Đang mở
#627 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
32/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, php
Lĩnh vực
api, backend, devops

Hướng nghiên cứu

Bắt đầu bằng cách lần theo các luồng Register daemon và Test Deploy, sau đó kiểm tra cách OVERRIDE_APP_HOST và Docker Socket Proxy xác định máy chủ ExApp cho các daemon HTTP và HTTPS. Xác định các điểm migration và validation của UI cần thiết cho các thiết lập HTTP từ xa. Được xem là hoàn thành khi option mới, migration, các cảnh báo, kiểm tra redirect và các điều chỉnh backport bắt buộc đều được bao quát.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
202
Fork
30
Merge trung bình
3 ngày 20 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/app_api

Tất cả issue của nextcloud/app_api

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.