Don't store authentication credentials in $XDG_CONFIG_HOME

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

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
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli, security

Hướng nghiên cứu

Bắt đầu bằng cách lần theo cách exercism configure --token lưu thông tin xác thực vào $XDG_CONFIG_HOME/exercism/user.json, và xem lại đặc tả XDG Base Directory được liên kết. Giữ các trường không nhạy cảm như apibaseurl và workspace trong cấu hình, đồng thời lưu token trong $XDG_DATA_HOME; được xem là hoàn tất khi việc xác thực vẫn hoạt động mà token không còn nằm trong user.json.

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

Mô tả

After running exercism configure --token='<token>' I find that my token is stored in $XDG_CONFIG_HOME/exercism/user.json.

This is a security risk because users who do not expect authentication data to be stored here may accidentally back it up insecurely. Configuration fields like apibaseurl and workspace are fine, but prefer storing token somewhere in $XDG_DATA_HOME to conform to the standard.

Reference: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME defines the base directory relative to which user specific                                                                                                                                          
configuration files should be stored. If $XDG_CONFIG_HOME is either not set or                                                                                                                                       
empty, a default equal to $HOME/.config should be used.
$XDG_DATA_HOME defines the base directory relative to which user specific data                                                                                                                                       
files should be stored. If $XDG_DATA_HOME is either not set or empty, a default                                                                                                                                      
equal to $HOME/.local/share should be used.
Ngôn ngữ chính
Go
Star
1.4k
Fork
364
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
3

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 exercism/cli

Tất cả issue của exercism/cli

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.