Comments (5)
Hi there!
The configmap implementation for the templates is quite flexible and simply traverses through the config using a for-each structure. Do you think this is a documentation issue, and we should reword it to make it clear that the examples in values.yaml and the docs are just examples and not all fields that can be set using this mechanism?
from k8s.
It seems like the --set-file
for the schema is a special case, the emails work like this:
--set-file kratos.emailTemplates.recovery.valid.body=kratos/emails/recovery.html
--set-file kratos.emailTemplates.recovery.valid.plainBody=kratos/emails/recovery.txt
--set-file kratos.emailTemplates.recovery.invalid.body=kratos/emails/recovery-invalid.html
--set-file kratos.emailTemplates.recovery.invalid.plainBody=kratos/emails/recovery-invalid.txt
--set-file kratos.emailTemplates.verification.valid.body=kratos/emails/verification.html
--set-file kratos.emailTemplates.verification.valid.plainBody=kratos/emails/verification.txt
--set-file kratos.emailTemplates.verification.invalid.body=kratos/emails/verification-invalid.html
--set-file kratos.emailTemplates.verification.invalid.plainBody=kratos/emails/verification-invalid.txt
At least that renders the ConfigMap
resources correctly. But kratos still doesn't use "new" these emails.
from k8s.
So, the last bit was missing:
kratos:
config:
courier:
template_override_path: /conf/courier-templates
I think the first bit could probably be docs?
The one remaining problem is that the config mentions the following templates:
- kratos.emailTemplates.recovery.valid
- kratos.emailTemplates.recovery.invalid
- kratos.emailTemplates.verification.valid
- kratos.emailTemplates.verification.invalid
Is there more? Because I just tried a verification flow and the email includes a code?
from k8s.
Maybe this could be added to the values file:
https://github.com/ory/kratos/tree/master/courier/template/courier/builtin/templates
Following the naming of the directories, you can set any other template, e.g.:
--set-file kratos.emailTemplates.verification_code.valid.body=kratos/emails/verification_code.html
--set-file kratos.emailTemplates.verification_code.valid.plainBody=kratos/emails/verification_code.txt
--set-file kratos.emailTemplates.verification_code.invalid.body=kratos/emails/verification-invalid.html
--set-file kratos.emailTemplates.verification_code.invalid.plainBody=kratos/emails/verification-invalid.txt
from k8s.
Yeah, another example and maybe a link to kratos source would be sufficient IMHO.
from k8s.
Related Issues (20)
- hydra helm image update to 2.1? HOT 1
- Inconsistency with service account annotations on maester charts
- OathKeeper Default Helm Chart Issue | Pod throwing 503. HOT 11
- Extend Test Helm Charts for Hydra, Keto and Oathkeeper to allow user defined labels for test pod HOT 1
- Warning when setting a namespaces location in keto HOT 3
- deploy image of oathkeeper-maester to arm64 HOT 4
- Helm Chart Missing Keto Link
- failed to download "https://k8s.ory.sh/helm/charts/kratos-0.36.0.tgz" at version "0.36.0" HOT 1
- Unable to rotate secretsCookie in k8s helm chart HOT 1
- 0.37 release is wrongly numbered HOT 1
- Hydra helm chart values miss hydra.config examples. HOT 2
- Hydra Maester chart does not allow env variables, but maester v0.0.31 requires it
- Kratos selfservice UI incorrectly supports `BASE_PATH`
- Ory hydra dsn configuration through existing secret causes env var to not be defined HOT 2
- DSN environmental variable is not set optionally HOT 2
- Unable to use NodePort while deploying kratos and kratos-selfservice-ui-node helm charts
- support hooks HOT 2
- DSN is not optional for automigration HOT 5
- Allow DSN to retrieved some a separate secret HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s.