Is there a way to configure Kratos to send all coo...
# general
w
Is there a way to configure Kratos to send all cookies in a single
set-cookie
? Right now the Github callback URL sends back 3 separate `set-cookie`s and because emissary-ingress drops all but one cookie, my auth flow doesn’t work
w
I don't know the answer to this, but my team has had good success with putting nginx in our containers in front of kratos to do various header rewrites where service mesh / iam proxies consume headers or occupy the same headers as kratos. One example is our IAM proxy needs an auth token in the
Authorization
header and then tears it off. Kratos needs the same header -- our application writes the token to
x-kratos-auth
and nginx copies that back to
authorization
You might have similar success doing set-cookie rewrites somewhere
m
Hello, apologies this fell off my radar @User Were you able to figure it out? I also dont know the answer, if you are still stuck here, please open a discussion: https://github.com/ory/kratos/discussions/new