Open jem-Solytica opened 1 year ago
I did some further exploring tonight and confirmed that it does seem to be a problem with how the signature is being calculated. Recomputing the AWS4-HMAC-SHA256 signature for the same request yields a different signature string for a working request than it does for the Corteza-generated request, even where the X-Amz-Date header is consistent between the two requests.
I tried working with some blobs in the Case Management app and noticed the same behavior if I uploaded binary data. But .txt files seem to download fine. I did note that there's an extra header coming across in those requests--an "If-Match" that looks like it's part of the signed headers. If I upload a copy of the same .txt file with a different extension (e.g., .bin), the "If-Match" header goes away and the file again refuses to download from MinIO, citing a signature calculation mismatch.
Stale issue message
Is there an existing issue for this?
Version of Corteza
2023.3.6
Current Behavior
After uploading a new logo file in the
Admin-->User Interface Settings
page, the logo does not display within Corteza. Only a broken image placeholder is shown.The file is properly uploaded to MinIO (both the
<file>.jpeg
and a<file>_preview.jpeg
appear within the system folder in the bucket). The file can be downloaded from MinIO with other clients.On refreshing the page, the browser reports a 500 error when trying to load
ui.mainLogo
with responseseeker can't seek
MinIO trace logs show a problem with the signature generation when trying to retrieve the newly-stored logo file.
Expected Behavior
After uploading a logo, it should be stored on the MinIO instance and visible within Corteza.
Steps To Reproduce
No response
Environment and versions
Anything else?
I did check that the MinIO keys and permissions work to download the file by using a separate script to download the file using the Authorization header in this form:
But the MinIO trace log shows that Corteza is using an authorization method of AWS4-HMAC-SHA256: