Proposing security/tang plugin

Đang mở
#5,880 2 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ó
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
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ệ
php
Lĩnh vực
security

Hướng nghiên cứu

The issue links an existing implementation at https://github.com/hdholm/plugins/tree/tang; start by reviewing that code and the repository contributing guide. The proposal is to add a Tang server plugin to OPNsense with MVC, API, and GUI pages. Done means the plugin integrates the Tang service and provides those pages; the issue does not name tests to run.

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

Mô tả

support

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

In accordance with CONTRIBUTING I'm opening an issue prior to submitting a PR explaining what I want. Since I wanted it for my own purposes regardless, the code already exists at https://github.com/hdholm/plugins/tree/tang

  • The underlying service is available in FreeBSD ports (os-tang needs tang which needs jose which needs llhttp all available)
  • There are no precompiled binaries
  • Integrates an existing service and provides MVC/API GUI pages for it
  • Claude Pro (Opus 4.8 High) was used to assist in creating the plugin based on some previous non-AI attempts. The bulk of that interaction is recorded in a link off the README. All code was human reviewed and tested.

Describe the solution you'd like
Like many tech hobbyists, I run a fair number of servers and VMs at home, and a lot of them hold data I would rather keep encrypted. Drives and SSDs eventually fail and sometimes get stolen. If the data is encrypted, neither is catastrophic.

The catch is that encrypted data has to be decrypted. The usual model, typical of Linux’s LUKS encryption, is that someone types a passphrase at boot after every power failure or maintenance window. LUKS can instead tie the key to the machine’s TPM, much as Windows BitLocker does, but that is less effective for VMs and does little if the TPM is stolen along with the drive. A passphrase at boot has the disadvantage is that a person has to be present to type it, every time. The clevis software on servers in conjunction with a tang server answers this need. Although the cryptographic mechanisms and security are described elsewhere, functionally it allows a server decrypt it's data as long as the server is on a network with a tang server. Since an OPNsense firewall is often a critical piece of hardware for a network, having it host a tang server for the network makes sense.

An alternative is to run tang in a docker container, but running the server as a guest on virtualized hardware where you probably want to encrypt the drives of the host machine is potentially problematic, and more difficult to manage.

Ngôn ngữ chính
PHP
Star
1.2k
Fork
932
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
22

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 opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

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.