coder / coder/code-server

[Feat]: Ability to set proxied ports to public

Đang mở
#6,008 1 bình luận 8 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
79.3k
Fork
6.8k
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
41

Mô tả

## What is your suggestion?

Set proxied port visibility to either public or private. When a port is set to public, cookie-based authentication is disabled, even if the auth is set to password.

In GitHub Codespaces, the feature looks like this:

![image](https://user-images.githubusercontent.com/37142182/217548692-e58bdc52-f8fa-4817-b814-f0920aafc3b1.png)

## Why do you want this feature?

Useful for developing with 3rd party integrations that call your API (e.g. webhooks, Slack or Discord bots)

## Are there any workarounds to get this functionality today?

What I currently do is I turn off authentication in code-server, then I do authentication at the reverse proxy level instead, which lets me turn off authentication based on paths. So all paths that match the specified proxy are not authenticated.

This works but is not amazing because either all ports are public or all ports are private; I can't mix the two.

## Are you interested in submitting a PR for this?

Not really, the workaround is acceptable for my current use-case

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue không nêu tệp, bài kiểm thử hay điểm vào nào. Hãy bắt đầu bằng cách tìm đoạn mã xử lý khả năng hiển thị của các cổng proxy và xác thực bằng cookie/mật khẩu; công việc được xem là hoàn tất khi từng cổng proxy có thể được đánh dấu là công khai hoặc riêng tư, xác thực bằng cookie bị vô hiệu hóa đối với các cổng công khai và hành vi hiện có được giữ nguyên đối với các cổng riêng tư.

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

Đánh giá

Công nghệ
typescript
Lĩnh vực
authentication, networking
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.