Upstream proxy authentication - Is it possible to obfuscate password?

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

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
25/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ệ
c
Lĩnh vực
security

Hướng nghiên cứu

Start by reading tinyproxy's command-line and configuration handling to see how config files are opened and how upstream proxy credentials are parsed. The issue proposes two approaches but does not settle their scope or expected behavior. Done would require an agreed design for protecting credentials and a way to verify it; the thread has had no comment for 639 days.

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

Mô tả

feature

I need to configure my Upstream proxy with authentication.

Is it possible to obfuscate the password?

Upstream http myUser:myPassword@proxyHost:proxyPort

Sugestions:
a) Ask for the key during startup and using it to decript the password
b) Allowing the config file to be read from stdin and we could use openssl to decrypt it.

Encryption / decryption example with config from stdin

tinyproxy.conf - initial plain text config

Encrypt

openssl enc -in tinyproxy.conf -e -aes256 -pbkdf2 > tinyproxy.conf.enc
rm tinyproxy.conf

Run tinyproxy

openssl enc -in tinyproxy.conf.enc -d -aes256 -pbkdf2 | tinyproxy -d -c-

In this scenario, -c- would allow config to be read from stdin.

Ngôn ngữ chính
C
Star
6.1k
Fork
768
Merge trung bình
15 ngày 3 giờ
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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

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

Issue tương tự

Thêm issue về C

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.