feat: option to assign user secrets to specific templates

Đang mở
#32,177 1 bình luận 6 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
35/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ệ
go
Lĩnh vực
backend, cli, frontend

Hướng nghiên cứu

The payload names no files or tests, so begin by locating the existing user secrets feature in the Go codebase and how secrets are injected into workspaces. Work out where a template scope would need to be stored and checked, then confirm the expected behavior with the maintainers via the single existing comment. Done means a secret can be limited to chosen templates in the API, CLI and UI, and is injected only into workspaces built from those templates, with the default still applying to all.

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

Mô tả

Version: v2.39.1

Right now user secrets are applied to all workspaces by default. It would be really useful to have an option when creating or editing a secret to choose which template(s) it should be used on.

Why this is needed:
  • Different templates have different environments and paths. For example, for Windows based templates the file paths will be completely different compared to Linux or Docker templates, so having the same secret injected everywhere doesn't always work.
  • In general, it gives better flexibility and security to choose which workspaces get a specific secret based on the template instead of exposing every secret to all workspaces.
Expected behavior:

When adding/editing a secret in the UI or CLI, add a selector to either apply it to All templates (default) or pick specific templates where the secret should be injected.

Ngôn ngữ chính
Go
Star
17.5k
Fork
1.7k
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
575

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 coder/coder

Tất cả issue của coder/coder

Issue tương tự

Thêm issue về Go

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.