Files
seaweedfs/weed/s3api
chrislu 77fa5748a2 fix: improve S3 API test infrastructure and resolve compilation issues
Major improvements to S3 API test infrastructure to work with stateless JWT architecture:

### Test Infrastructure Improvements:
- Replaced full S3 server setup with lightweight test endpoint approach
- Created /test-auth endpoint for isolated IAM functionality testing
- Eliminated dependency on filer server for basic IAM validation tests
- Simplified test execution to focus on core IAM authentication/authorization

### Compilation Fixes:
- Added missing s3err package import
- Fixed Action type usage with proper Action('string') constructor
- Removed unused imports and variables
- Updated test endpoint to use proper S3 IAM integration methods

### Test Execution Status:
-  Compilation: All S3 API tests compile successfully
-  Test Infrastructure: Tests run without server dependency issues
-  JWT Processing: JWT tokens are being generated and processed correctly
- ⚠️  Authentication: JWT validation needs policy configuration refinement

### Current Behavior:
- JWT tokens are properly generated with comprehensive session claims
- S3 IAM middleware receives and processes JWT tokens correctly
- Authentication flow reaches IAM manager for session validation
- Session validation may need policy adjustments for sts:ValidateSession action

The core JWT-based authentication infrastructure is working correctly.
Fine-tuning needed for policy-based session validation in S3 context.
2025-08-24 20:41:15 -07:00
..
2025-07-22 01:07:15 -07:00
fix
2024-10-03 09:03:17 -07:00
2025-08-22 01:15:42 -07:00
2025-02-01 14:11:57 -08:00
2024-07-04 11:00:41 -07:00
2025-08-11 23:57:59 -07:00
2025-08-22 01:15:42 -07:00
2025-07-19 00:49:56 -07:00
2024-07-04 11:00:41 -07:00
2025-08-22 01:15:42 -07:00
2025-08-23 23:47:15 -07:00
2025-08-23 23:47:15 -07:00
2025-08-23 23:47:15 -07:00
2025-08-21 08:28:07 -07:00
2025-08-22 01:15:42 -07:00
2025-08-22 01:15:42 -07:00
2025-08-21 08:28:07 -07:00
2025-08-22 01:15:42 -07:00
2025-08-22 01:15:42 -07:00
2025-08-21 08:28:07 -07:00
2025-08-22 01:15:42 -07:00
2025-08-22 01:15:42 -07:00
2025-07-22 01:07:15 -07:00
2024-04-29 05:33:56 -07:00
2025-07-22 01:07:15 -07:00
2025-07-28 02:49:43 -07:00
2025-07-28 02:49:43 -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