acoustic-insurance-23566
08/11/2022, 7:05 PMcourier.smtp.connection_uri
properties form the configuration file without it breaking? We are not planning to use these features for now and I'd like to avoid having unused configuration in place. If I just remove the lines from the yaml file, kratos fails with the following error
kratos-config-kratos-1 | The configuration contains values or keys which are invalid:
kratos-config-kratos-1 | courier.smtp.connection_uri: <nil>
kratos-config-kratos-1 | ^-- one or more required properties are missing
kratos-config-kratos-1 |
kratos-config-kratos-1 | time=2022-08-11T19:04:17Z level=fatal msg=Unable to instantiate configuration. func=<http://github.com/ory/kratos/driver.NewWithoutInit|github.com/ory/kratos/driver.NewWithoutInit> file=/project/driver/factory.go:26 audience=application error=map[message:I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri" stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v0.10.1
Would you have any hints on this?bland-eye-99092
08/11/2022, 7:10 PMconnection_uri
is required. It just needs to be a URL starting with smtp://
or smtps://
though. So maybe you can just set it a “dummy” URL, something like smtps://localhost:1025 for example? If you don’t trigger any mails kratos shouldn’t try to connect to it.
Keep in mind though, that a lot of features of kratos currently rely on emails. So without it those features will not work.acoustic-insurance-23566
08/11/2022, 7:14 PMbland-eye-99092
08/11/2022, 7:16 PMacoustic-insurance-23566
08/11/2022, 7:26 PMacoustic-insurance-23566
08/11/2022, 7:27 PMbland-eye-99092
08/11/2022, 7:32 PMproud-plumber-24205
08/12/2022, 6:52 AMWe don't want the users to be able to do anything with their accountsYou can also disable the self-service flows for registration. I believe recovery / verification can also be disabled, however, it won't just disable the feature for end-users, but also for admins creating recovery links.
proud-plumber-24205
08/12/2022, 6:54 AM## Enable User Registration ##
#
# If set to true will enable [User Registration](<https://www.ory.sh/kratos/docs/self-service/flows/user-registration/>).
#
# Default value: true
#
# Set this value using environment variables on
# - Linux/macOS:
# $ export SELFSERVICE_FLOWS_REGISTRATION_ENABLED=<value>
# - Windows Command Line (CMD):
# > set SELFSERVICE_FLOWS_REGISTRATION_ENABLED=<value>
#
enabled: false
selfservice.flows.registration.enabled: false
proud-plumber-24205
08/12/2022, 6:54 AMfull-truck-32091
08/12/2022, 8:43 AMselfservice.methods.link.enabled
and selfservice.methods.profile.enabled
to false
.
Am I missing another configuration ? Thanks for the help you provide to the community 🙏proud-plumber-24205
08/12/2022, 8:44 AMfull-truck-32091
08/12/2022, 8:49 AMprofile
is disabled to avoid settings updates from users (email, name, etc) it would make sense to also disable account linking and unlinking, even better it may be another settingsproud-plumber-24205
08/12/2022, 2:39 PMproud-plumber-24205
08/12/2022, 2:40 PMacoustic-insurance-23566
08/12/2022, 6:05 PMbored-vegetable-68997
09/15/2022, 7:52 AMselfservice.flows.settings.enabled = false
, but that seems to be invalid.