Skip to content

Instantly share code, notes, and snippets.

@vchaindz
vchaindz / gist:85aac83abbdf56735428ab2f6511b50e
Created October 27, 2023 11:43
https://sbom.sh markdown for SBOM badge to share
[![View SBOM](https://img.shields.io/badge/sbom.sh-viewSBOM-blue?link=https%3A%2F%2Fsbom.sh%2F5d64370f-3826-432d-9890-fe70243003ef)](https://sbom.sh/5d64370f-3826-432d-9890-fe70243003ef)
@vchaindz
vchaindz / gist:a213c2030993b2ddea006f65851bc76b
Last active July 10, 2023 15:19
use immudb Vault to store and share secrets
# Encrypt and store:
recipient="..."
message=$(echo "Your Secret Message" | gpg --encrypt --armor --recipient $recipient | base64 | tr -d "\n")
json=$(printf '{"recipient":"%s","message":"%s"}\n' "$recipient" "$message")
curl -X 'PUT' 'https://vault.immudb.io/ics/api/v1/ledger/default/collection/default/document' \
-H 'accept: application/json' \
-H 'X-API-Key: ...' \
-H 'Content-Type: application/json' \
-d "$json"