Closed hiltpold closed 6 months ago
Hey man, I got the same error as well. Looks like the value for connection_uri
in smtp
is still required even though we choose to use http
. The way to fix this is to simply put the dummy value for it.
Edit:
I believe they also fixed it already as well. https://github.com/ory/kratos/issues/3559
did you guys try it with v1.1.0 instead of 1.0 as well? Because I doubt that the issue is fixed with any of these versions, unfortunately. -> https://github.com/ory/kratos/issues/3559 was not fixed and https://github.com/ory/kratos/pull/3649 was a feature PR about sms, seems not related to me...
when I try to run kratos with docker-compose and kratos v1.1.0
kratos.yml
...
courier:
delivery_strategy: http
http:
request_config:
url: http://localhost:8080/api/someUri
I still get this error:
The configuration contains values or keys which are invalid:
courier.smtp.connection_uri: <nil>
^-- one or more required properties are missing
time=2024-03-19T15:22:01Z level=error msg=Unable to instantiate configuration. audience=application error=map[message:I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"] service_name=Ory Kratos service_version=v1.1.0
Error: I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"
same issue occurs when I try to deploy it on k8s with v1.1.0 (tried both chart version 0.35.0 and 0.40.0):
kratos config:
....
courier:
delivery_strategy: http
http:
request_config:
url: <REDACTED>
headers:
...
kratos pod log:
The configuration contains values or keys which are invalid:
courier.smtp.connection_uri: <nil>
^-- one or more required properties are missing
time=2024-03-19T14:54:59Z level=error msg=Unable to instantiate configuration. audience=application error=map[message:I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"] service_name=Ory Kratos service_version=v1.1.0
Error: I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"
Usage:
kratos serve [flags]
Flags:
-c, --config strings Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file.
--dev Disables critical security features to make development easier
-h, --help help for serve
--sqa-opt-out Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
--watch-courier Run the message courier as a background task, to simplify single-instance setup
I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"
Preflight checklist
Ory Network Project
No response
Describe the bug
I am using Ory Kratos v1.0.0 and intend to send my emails over HTTP. As per the documentation, this is a viable option. This becomes necessary for me since I am working on Digital Ocean, where SMTP traffic is blocked. I am interested in integrating SendGrid into my Ory Kratos setup
kratos.yaml
The base64 encoded String is given by:
Im not yet sure this will work, but it does not seem to be a problem yet.
Reproducing the bug
docker-compose up
Relevant log output
Relevant configuration
Version
v1.0.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker Compose
Additional Context
Having a look at the schema iit appears that the
connection_uri
is a required field, even though we are not utilizing thesmtp
configuratio at all."