Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for unencrypted object metadata #16

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gyim
Copy link

@gyim gyim commented Jan 10, 2025

This PR implements the necessary changes for the searchable metadata feature:

  1. Added metadata cipher field to access grants. Metadata encryption can be enabled/disabled per folder, just as path encryption.
  2. Added clear (unencrypted) metadata field to several protobuf structures. I was thinking about sending the clear metadata in the encrypted_metadata field (just as for paths), but it would cause existing clients to fail without a metadata encryption key. So it was more modification in the common repository, but more backwards compatible.
  3. Added a new usermeta package that converts deeply structured JSON from/to serializable metadata. For compatibility reasons, deep metadata structures are supported in the application layer: metadata object {"s":"text","o":[1,2,3]"} are sent as map[string]string in the form of {"s":"text","json:o":"[1,2,3]"}. It is the responsibility of satellite and the client application to encode/decode these shallow JSONs using the usermeta package.

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