You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initial Cryptographic Support to have (some parts of) models en/de/crypted #284
It could be fun to make it add initial basic crypto support to this project.
The way I imagine it working is that you would "tag" (with Proto extensions, perhaps?) some parts of models marked secret. It would be nice to keep this nicely "modular" and avoid having to "bake this into the core" of Enola.
The secret parts of any model would then be encrypted on the client (CLI, for now, Web, later) and stored "encrypted at rest" on the server (e.g. in the File System Repository), and could later be decrypted again on the client.
There are a bunch of pre-requisites for this, at least including:
enola put is missing, and it seems less fun without that
changed the title [-]Initilal Cryptographic Support to have (some parts of) models en/de/crypted[/-][+]Initial Cryptographic Support to have (some parts of) models en/de/crypted[/+]on Sep 29, 2023
Actually, decrypt: scheme specific part start should somehow include if what follows is an encrypted secret itself, or a delegated URL where to fetch one from.. e.g. decrypt:http://server/secret.pgp.
The "decrypted Form" of such secrets should use secret-token: (bearer) scheme, as per RFC 8959.
Activity
[-]Initilal Cryptographic Support to have (some parts of) models en/de/crypted[/-][+]Initial Cryptographic Support to have (some parts of) models en/de/crypted[/+]vorburger commentedon Aug 19, 2024
No, the basics of this should of course work completely without any client/server; just locally.
At its core, this is just an URI scheme, with a ResourceProvider?
Like the (TBD)
data:one.crypt:{PUBKEY}/{SECRET}, using some agreed upon encoding.Are there existing standards for this?
Decrypt is via a key in TPM; may shell out to exec
age.Model https://enola.dev/secret is:
CLI is via (TBD) Enola Actions, on Things; e.g. generate key, list keys, encrypt URL, decrypt secret.
Password 🔑 Manager is then trivial and an obvious 1st application: just e.g. a class Website Thing, with a password property.
The #607 format should directly support this.
models/people/ can then contain e.g. phone numbers... 🔒
vorburger commentedon Aug 20, 2024
Actually,
decrypt:scheme specific part start should somehow include if what follows is an encrypted secret itself, or a delegated URL where to fetch one from.. e.g.decrypt:http://server/secret.pgp.The "decrypted Form" of such secrets should use
secret-token:(bearer) scheme, as per RFC 8959.vorburger commentedon Jan 9, 2025
Or https://github.com/microsoft/TSS.MSR/blob/main/TSS.Java/src/samples/Samples.java ? But likely PITA.
So just using https://github.com/Foxboron/age-plugin-tpm (or https://github.com/remko/age-plugin-se; both from https://github.com/FiloSottile/awesome-age) may be a way to go. Maybe 🤔 shell exec only once to decrypt one key into another in-memory, and then use that one... is that a good idea?
vorburger commentedon Feb 8, 2025
TBD: Private Keys from those 12 / 24 letter words.
TODO: Tink-ish TS/JS, for Browser Client-side JWT (?), with Web Crypto API (or not; one could also use another library).
feat: Secret & SecretManager API (re. enola-dev#284)
feat: Secret & SecretManager API (re. #284)
vorburger commentedon May 13, 2025
https://github.com/exceptionfactory/jagged
vorburger commentedon May 13, 2025
https://stackoverflow.com/questions/727812/storing-username-password-on-mac-using-java
https://stackoverflow.com/questions/6854487/how-do-you-store-a-username-password-in-the-mac-keychain-using-java
https://github.com/conormcd/osx-keychain-java
https://kingsfleet.blogspot.com/2008/12/storing-password-somewhere-safe.html
vorburger commentedon May 14, 2025
https://docs.enola.dev/use/secret/