-
I'm trying to deploy containersI have 3 LXC containers:
Containers can access each others using
Nginx redirects the traffics
kratosI run su -l kratos
export KRATOS_VERSION=v0.7.1-alpha.1
wget -O /tmp/kratos-install.sh https://raw.githubusercontent.com/ory/kratos/$KRATOS_VERSION/install.sh
bash /tmp/kratos-install.sh -b /usr/local/bin $KRATOS_VERSION
kratos version
>>> Version: v0.7.1-alpha.1
>>> Build Commit: 4fe76af1302d45ddf4cf3c2c5949311c9cf1f8b8
>>> Build Timestamp: 2021-07-22T17:41:40Z
export DSN=memory
kratos serve -c /home/kratos/config/kratos.yml This is my version: v0.7.1-alpha.1
dsn: memory
serve:
public:
base_url: https://kratos.mydomain.corp/
cors:
enabled: true
admin:
base_url: https://kratos.mydomain.corp:4434/
selfservice:
default_browser_return_url: https://secureapp.mydomain.corp/
whitelisted_return_urls:
- https://secureapp.mydomain.corp
methods:
password:
enabled: true
flows:
error:
ui_url: https://secureapp.mydomain.corp/error
settings:
ui_url: https://secureapp.mydomain.corp/settings
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: https://secureapp.mydomain.corp/recovery
verification:
enabled: true
ui_url: https://secureapp.mydomain.corp/verify
after:
default_browser_return_url: https://secureapp.mydomain.corp/
logout:
after:
default_browser_return_url: https://secureapp.mydomain.corp/auth/login
login:
ui_url: https://secureapp.mydomain.corp/auth/login
lifespan: 10m
registration:
lifespan: 10m
ui_url: https://secureapp.mydomain.corp/auth/registration
after:
password:
hooks:
-
hook: session
log:
level: debug
format: text
leak_sensitive_values: true
secrets:
cookie:
- c4577b81e3c6e22a5d87b6c904c90959d86eda60d24b1b1a63522c539133ec0bdd4b0ffe102a8a1d6efff0226e8286af8da60ab8ca9906556a812a25
hashers:
argon2:
parallelism: 1
memory: 128MB
iterations: 2
salt_length: 16
key_length: 16
identity:
default_schema_url: file:///etc/config/kratos/identity.schema.json
courier:
smtp:
connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true&legacy_ssl=true secureappI run secureapp ( su -l secureapp
export KRATOS_VERSION=v0.7.1-alpha.1
git clone https://github.com/ory/kratos-selfservice-ui-node.git
cd kratos-selfservice-ui-node
git checkout $KRATOS_VERSION
npm ci
npm run build
export KRATOS_ADMIN_URL=http://172.22.22.12:4434/
export KRATOS_PUBLIC_URL=http://172.22.22.12:4433/
export KRATOS_BROWSER_URL=https://kratos.mydomain.corp/
export BASE_URL=https://secureapp.mydomain.corp/
export PORT=4455
export SECURITY_MODE=cookie
npm run serve failed resultWhen I try to connect to this is the browser console screenshot What will be wrong in this setup? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
As you are on multiple domains, this might help: https://www.ory.sh/kratos/docs/guides/multi-domain-cookies#cookies |
Beta Was this translation helpful? Give feedback.
-
Thanks @aeneasr, I can get login screen after adding the following lines in cookies:
domain: mydomain.corp
path: /
same_site: Lax
session:
cookie:
domain: mydomain.corp
path: /
same_site: Strict But there are some points which are not clear for me
Does this mean I cannot use
thanks |
Beta Was this translation helpful? Give feedback.
Thanks @aeneasr, I can get login screen after adding the following lines in
my kratos.yml
But there are some points which are not clear for me
cookies
vssession.cookie
)Does this mean I cannot use
http
as a scheme for SecureApp'sKRATOS_ADMIN_URL
andKRATOS_PUBLIC_URL
in production? I didn't setdev
mode for Kratos and it seems working withhttp
(I mean I can get login page with a flow id)