I am really happy that our integration with the Ory environment (Kratos, Oathkeeper, Hydra, Keto) working smoothly.
Now since we are ready to go live, we will use AWS SES for the email service. As far as I know, Kratos works with SMTP connection, so we prepare the SMTP configuration on SES, and yeah normally the credentials contain forward slashes.
The issue is the Kratos container is failed with an error that can not parse the SMTP URL configuration. The escaping (replace / with %2F) did not solve the issue, instead, I got a connection problem.
Is this a possible issue with Krato’s approach to parsing the configuration? I tried a combination of credentials:
- smtp://alphanumeric:alphanumeric@server:25 [OK] - smtp://alphanumeric@alphanumeric:alphanumeric@alphanumeric@server:25 [OK] - smtp://alphanumericwith/:alphanumericwith/@server:25 [FAILED] - smtp://alphanumericwith%2F:alphanumericwith%2F@server:25 [FAILED]
The tests were also being done, using another popular email service with SMTP support.
The only way to make sure is from the Kratos test to test these cases. I wish I have time to spare to investigate this directly from the Kratos code base. Or any idea/trick as a workaround?
My next question is, what is the technical reason for using this format for SMTP configuration?
courier: smtp: connection_uri: smtp://test:test@mailslurper:2525/?skip_ssl_verify=true
Can we have something like this?
courier:
smtp:
username: ...
password: ...
port: ...
host: ...
ssl: false/true