anatol / clevis.go Goto Github PK
View Code? Open in Web Editor NEWPure Golang implementation of clevis encryption framework
License: BSD 3-Clause "New" or "Revised" License
Pure Golang implementation of clevis encryption framework
License: BSD 3-Clause "New" or "Revised" License
I have noticed that the package clevis-extra-pins-git
on Arch Linux includes the YubiKey functionality from this repo, which can be used to unlock a disk during boot.
It would be nice to have a little guide for how to achieve this (support for YubiKey in Clevis to decrypt a disk during boot) on distros where this package is not available. The guide could be in the readme or in the wiki, I imagine.
Edit: Many systems use Dracut, instead of Booster, for creating an initramfs, so that's what I had in mind.
It is a counterpart for the upstream issue latchset/clevis#245
Some computers (e.g. Lenovo Thinkpad X1 Yoga) have a built in fingerprint sensor. This would be a good candidate for a clevis pin. Having a clevis-fingerprint pin will allow to have a full-disk-encryption with fingerprint unlock functionality. That is a convenient and secure way to protect the user data.
I haven't really looked at fingerprint API but I found a few projects that actively use this functionality. It is something that can give pointers on utilizing fingerprint sensor in celvis.
https://gitlab.freedesktop.org/libfprint/fprintd/-/blob/master/pam/pam_fprintd.c
https://gitlab.freedesktop.org/libfprint/fprintd/-/tree/master
https://gitlab.freedesktop.org/libfprint/libfprint
Currently clevis.go
focuses on decryption logic only. But it would be great to add Encrypt() for completeness as well.
Rather than just using raw map[string] interface{}
when dealing with these clevis pin configurations, it would be convenient to provide a struct with full json marshalling/unmarshalling.
Currently clevis uses json to store its encrypted data. It also uses base64 encoding a lot. So clevis has a lot of binary->base64->json->base64->... conversions. It adds quite a lot of space and CPU overhead and this could be a problem for services that store/handle a lot of encrypted data.
Try to implement a binary encoding for clevis data using Thrift protocol.
Every time I create or update a PR, the workflow fails to run.
Example: https://github.com/anatol/clevis.go/actions/runs/1021199605
This is a counterpart for the upstream issue latchset/clevis#46
Having clevis
support for Yubikey would be useful for consumer workstation. It would allow to implement a full-disk-encryption protected by a hardware key.
cryptsetup 2.4.0 added a plugin feature for token parsing [1]. It allows handling tokens internalling using a shared library API.
Implement a shared library for cryptsetup based on clevis.go code.
https://mirrors.edge.kernel.org/pub/linux/utils/cryptsetup/v2.4/v2.4.0-ReleaseNotes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.