Files
seaweedfs/weed/s3api
0b7bd23647 s3api: stop at startup when the -s3.config KMS block doesn't load (#13380)
* s3api: stop at startup when the -s3.config KMS block doesn't load

A kms block in the -s3.config file that failed to load was only logged,
so S3 came up healthy with SSE-KMS off. Every SSE-KMS write and every
read of an SSE-KMS object then failed with 500, and nothing at startup
pointed at the config.

loadS3ApiConfigurationFromFile now returns the KMS error once it has
applied the identities, and startup already stops on any error it
returns. A SIGHUP reload still applies the identities, so a revoked
key stops working, keeps the previous KMS providers and logs the error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* s3api: shorten the KMS load-order comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2026-12-04 11:07:11 -08:00
..
2024-07-04 11:00:41 -07:00

see https://blog.aqwari.net/xml-schema-go/

1. go get aqwari.net/xml/cmd/xsdgen
2. Add EncodingType element for ListBucketResult in AmazonS3.xsd
3. xsdgen -o s3api_xsd_generated.go -pkg s3api AmazonS3.xsd
4. Remove empty Grantee struct in s3api_xsd_generated.go
5. Remove xmlns: sed s'/http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/\ //' s3api_xsd_generated.go