Skip to content

Add middleware to replace user metadata#702

Merged
gaul merged 1 commit intomasterfrom
metadata-replacer
Oct 30, 2024
Merged

Add middleware to replace user metadata#702
gaul merged 1 commit intomasterfrom
metadata-replacer

Conversation

@gaul
Copy link
Owner

@gaul gaul commented Oct 8, 2024

This is useful when keys and values must conform to some subset of values, e.g., Azure's C# identifiers. Fixes #466.

@gaul
Copy link
Owner Author

gaul commented Oct 8, 2024

Does single-character replacement suffice? Or would something more involved like regexes address more use cases?

@atsai1220
Copy link

atsai1220 commented Oct 8, 2024

Could be another option. For example, s3proxy.user-metadata-replacer-blobstore-regex=true/false. Thoughts?

@gaul
Copy link
Owner Author

gaul commented Oct 8, 2024

Do you have a specific use case for more complicated replacements? I won't add technical complexity just for fun.

@atsai1220
Copy link

I'm happy with a straightforward string match and replacement.

This is useful when keys and values must conform to some subset of
values, e.g., Azure's C# identifiers.  Fixes #466.
@gaul gaul force-pushed the metadata-replacer branch from 88f0d9d to 338a40a Compare October 30, 2024 21:36
@gaul gaul merged commit 5d960b3 into master Oct 30, 2024
@gaul gaul deleted the metadata-replacer branch October 30, 2024 21:43
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.

Illegal characters in Blob metadata not handled gracefully

2 participants