[bucket] Fix s3manager endpoint mismatch with COSI credentials by IvanHunters · Pull Request #2211 · cozystack/cozystack
…Info The deployment template was constructing the S3 endpoint from the tenant's namespace host (e.g. s3.freedom.infra.example.com), while COSI credentials are issued for the actual SeaweedFS endpoint (e.g. s3.infra.example.com). This mismatch caused 'invalid credentials' errors when users tried to log in with valid credentials from the bucket secret. Now the endpoint is resolved from BucketInfo (same source as credentials), with a fallback to the constructed namespace host for first-time deploys before BucketAccess secrets are created. Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This PR changes 10-29 lines, ignoring generated files.
label
Mar 12, 2026
kvaps
deleted the
fix/bucket-s3manager-endpoint
branch
kvaps added a commit that referenced this pull request
Mar 13, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters