Separate service metadata access from reading raw environment values

Đang mở
#6,079 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by tracing the API endpoints that return Compose and Application environment data, then inspect how API key permissions are checked for project listing and service details. The issue gives no file paths or tests, so locate those entry points and existing authorization tests first. Done means a metadata-only key can inspect service status without receiving environment values, while an explicitly authorized key can still read them; cover both cases in tests.

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

Mô tả

enhancement
What problem will this feature address?

We want to give automation and AI agents access to Compose service metadata and deployment status. On our self-hosted instance, an API key that successfully listed projects also received the complete Compose environment block when retrieving service details. We did not verify the key's exact role.

Describe the solution you'd like

Separate permission to read service metadata from permission to read raw environment values. A metadata-only key should be able to list projects and inspect service status while Dokploy omits or redacts environment values before sending the response. Require explicit permission for raw values and enforce this across API responses containing Compose or Application environment data.

An acceptance check could use a test service with a dummy env value. A metadata-only key can read service metadata, but the dummy value never appears in its responses. A separately authorized key can read it.

Describe alternatives you've considered

The official MCP server can redact fields before returning them to the MCP client. A server-side permission would also protect direct API and CLI users.

Related: #2817 (environment value display), #4525 (partial env updates).

Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

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.