Skip to content

fix: support ECS task role for S3 storage - #258

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/ecs-task-role-s3
Aug 12, 2026
Merged

fix: support ECS task role for S3 storage#258
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/ecs-task-role-s3

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • allow AWS S3 to use boto3's default credential chain when no explicit key pair is configured
  • retain explicit credentials for existing deployments and require them for OSS/MinIO
  • reject partial credential pairs at configuration validation
  • add focused storage credential contract coverage

Verification

  • uv run --project packages/shared-python pytest packages/shared-python/shared/tests/test_storage_config_contract.py -q
  • uv run ruff check packages/shared-python/shared/core/config/storage.py packages/shared-python/shared/tests/test_storage_config_contract.py
  • uv run pyright packages/shared-python/shared/core/config/storage.py

Infra prerequisite for Ontos-AI/knowhere-api-infra#21 and Ontos-AI/knowhere-api-infra#22. No AWS resources are changed by this PR.

@suguanYang
suguanYang force-pushed the fix/wangbinqi/ecs-task-role-s3 branch from 5e1abcc to 4a8d0e5 Compare August 12, 2026 17:59
@suguanYang
suguanYang force-pushed the fix/wangbinqi/ecs-task-role-s3 branch from 4a8d0e5 to 97878fd Compare August 12, 2026 18:09
@suguanYang
suguanYang merged commit ec67a6e into main Aug 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant