SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
package filer_pb
import "google.golang.org/protobuf/proto"
// ScrubCipherKeys returns a copy of entry with every chunk's CipherKey
// cleared, so logging it cannot leak per-chunk encryption keys.
func ScrubCipherKeys(entry *Entry) *Entry {
if entry == nil {
return nil
}
clone := proto.Clone(entry).(*Entry)
for _, chunk := range clone.Chunks {
if chunk != nil {
chunk.CipherKey = nil
}
}
return clone
}