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
fix: JWT validation failures during replication (#7788) (#7795)
Chris Lu9c4a2e1b1a0c
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.goindex cf22adf34f..84250b8baf 100644--- a/weed/server/volume_server_handlers.go+++ b/weed/server/volume_server_handlers.go@@ -363,7 +363,12 @@ func (vs *VolumeServer) maybeCheckJwtAuthorization(r *http.Request, vid, fid strif sepIndex := strings.LastIndex(fid, "_"); sepIndex > 0 {fid = fid[:sepIndex]}- return sc.Fid == vid+","+fid+ expectedFid := vid + "," + fid+ if sc.Fid != expectedFid {+ glog.V(1).Infof("jwt fid mismatch from %s: token has %q, request has %q", r.RemoteAddr, sc.Fid, expectedFid)+ return false+ }+ return true}glog.V(1).Infof("unexpected jwt from %s: %v", r.RemoteAddr, tokenStr)return false