- Remove unused imports (time, bytes) from test files
- Add missing S3 object manipulation methods to test framework
- Fix io.Copy usage for reading S3 object content
- Ensure all Keycloak integration tests compile successfully
Changes:
- Remove unused 'time' import from s3_keycloak_integration_test.go
- Remove unused 'bytes' import from s3_iam_framework.go
- Add io import for proper stream handling
- Implement PutTestObject, GetTestObject, ListTestObjects, DeleteTestObject methods
- Fix content reading using io.Copy instead of non-existent ReadFrom method
All tests now compile successfully and the distributed IAM system
is ready for testing with both mock and real Keycloak authentication.
- Add Docker Compose setup with Keycloak OIDC provider
- Configure test realm with users, roles, and S3 client
- Implement automatic detection between Keycloak and mock OIDC modes
- Add comprehensive Keycloak integration tests for authentication and authorization
- Support real JWT token validation with production-like OIDC flow
- Add Docker-specific IAM configuration for containerized testing
- Include detailed documentation for Keycloak integration setup
Integration includes:
- Real OIDC authentication flow with username/password
- JWT Bearer token authentication for S3 operations
- Role mapping from Keycloak roles to SeaweedFS IAM policies
- Comprehensive test coverage for production scenarios
- Automatic fallback to mock mode when Keycloak unavailable