Skip to content

feat: add vault WASM crypto functions#24

Merged
skgbafa merged 4 commits intomainfrom
feature/public-spaces
Feb 24, 2026
Merged

feat: add vault WASM crypto functions#24
skgbafa merged 4 commits intomainfrom
feature/public-spaces

Conversation

@skgbafa
Copy link
Contributor

@skgbafa skgbafa commented Feb 24, 2026

Summary

  • Add WASM vault crypto functions: AES-256-GCM encrypt/decrypt, HKDF-SHA256 key derivation, X25519 keypair generation and DH
  • Sanitize public endpoint metadata headers (only expose content-type, content-encoding, content-language)
  • Use Metadata directly instead of ObjectHeaders responder for public routes

Changesets

  • sdk: minor (new vault WASM module)
  • core: patch (public endpoint header sanitization)

Test plan

  • WASM build succeeds with new vault module
  • Public endpoint returns only sanitized headers
  • Existing public KV read/head endpoints still work

Add AES-256-GCM encryption/decryption, HKDF-SHA256 key derivation,
X25519 key exchange, and utility functions (SHA-256, random bytes)
to tinycloud-sdk-wasm for the Data Vault feature.

Also fixes public space endpoint to properly handle async_trait
macro import and metadata filtering.
@skgbafa skgbafa merged commit 5f34910 into main Feb 24, 2026
13 checks passed
@skgbafa skgbafa deleted the feature/public-spaces branch February 24, 2026 23:02
@skgbafa skgbafa restored the feature/public-spaces branch February 25, 2026 00:51
@skgbafa skgbafa deleted the feature/public-spaces branch February 25, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant