s3proxy icon indicating copy to clipboard operation
s3proxy copied to clipboard

Add middleware to replace user metadata

Open gaul opened this issue 1 year ago • 4 comments

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

gaul avatar Oct 08 '24 04:10 gaul

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

gaul avatar Oct 08 '24 05:10 gaul

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

atsai1220 avatar Oct 08 '24 16:10 atsai1220

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

gaul avatar Oct 08 '24 16:10 gaul

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

atsai1220 avatar Oct 08 '24 20:10 atsai1220