Proposing security/tang plugin

Aperta
#5,880 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
1.2k
Fork
932
Merge medio
1g 11h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opnsense/plugins

Tutte le issue di opnsense/plugins

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.