Browse Source

fix: Set cipher for filerS3Options in filer.go

Propagate filer encryption intent into the embedded S3 options:

- In `weed/command/filer.go` inside `runFiler()` when `-s3` is enabled:
  - Set `filerS3Options.cipher = f.cipher` before calling `filerS3Options.startS3Server()`.

This ensures:
- `filerS3Options.cipher` is always non-nil in the embedded S3 path
- embedded S3 inherits `-encryptVolumeData` behavior from the filer configuration
pull/7993/head
Eliah Rusin 4 days ago
committed by GitHub
parent
commit
d666b621bf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      weed/command/filer.go

1
weed/command/filer.go

@ -228,6 +228,7 @@ func runFiler(cmd *Command, args []string) bool {
filerAddress := pb.NewServerAddress(*f.ip, *f.port, *f.portGrpc).String()
startDelay := time.Duration(2)
if *filerStartS3 {
filerS3Options.cipher = f.cipher
filerS3Options.filer = &filerAddress
if *filerS3Options.bindIp == "" {
filerS3Options.bindIp = f.bindIp

Loading…
Cancel
Save