-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
When I upload a file to S3 and I have custom_domain
set, I get an error.
I do not get the error with the custom_domain
setting removed, even retroactively for existing files.
To Reproduce
Steps to reproduce the behavior:
- use s3 backend with
custom_url
- upload flow background image
- open flow
- background image not loaded
Expected behavior
URL both with and without custom_url
works.
Screenshots
not applicable
Logs
not applicable (signature calculates properly, it's just somehow wrong)
Version and Deployment (please complete the following information):
- authentik version: 2024.12.1 (the code around the signature doesn't seem like it has changed recently, and I don't have a good way to quickly upgrade for testing)
- Deployment: manual (issue is not deployment-related)
Additional context
This occurs with a radosgw running with Ceph squid (v19.2.0).
When the custom_url
setting is off I get this URL:
When it is on I get this one:
Since it works with one but not the other (and the signature differs) we can probably assume that the following line is okay and works, despite the punycode domain:
authentik/authentik/root/storages.py
Line 109 in e87a17f
url = url.replace(root_url, custom_url) |
The error I get is this:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><Message></Message><RequestId>tx00000d09c7361dc47e6cc-0067d0711a-2194166-default</RequestId><HostId>2194166-default-default</HostId></Error>
As to everything else, I wouldn't know to be honest.
If you need any further information (or a test bucket) I'm happy to help.