curved-oxygen-35290
03/02/2023, 9:39 PMquick-barista-10563
03/02/2023, 10:32 PMquick-barista-10563
03/02/2023, 10:42 PMshy-beach-55709
03/09/2023, 5:52 PMcurved-oxygen-35290
03/09/2023, 6:05 PMshy-beach-55709
03/09/2023, 8:12 PMshy-beach-55709
03/09/2023, 8:16 PM<http://localhost:4455/self-service/methods/oidc/callback/microsoft?code=BLABLA&state=BLABLA&session_state=BLABLA>
which returns 404.quick-barista-10563
03/09/2023, 10:44 PMmagnificent-energy-493
shy-beach-55709
03/10/2023, 12:20 PMshy-beach-55709
03/10/2023, 12:22 PMquick-barista-10563
03/10/2023, 1:19 PMshy-beach-55709
03/10/2023, 2:41 PMquick-barista-10563
03/10/2023, 2:47 PMshy-beach-55709
03/10/2023, 3:48 PMquick-barista-10563
03/10/2023, 4:00 PMquick-barista-10563
03/10/2023, 4:02 PMshy-beach-55709
03/10/2023, 4:08 PMshy-beach-55709
03/10/2023, 4:20 PMquick-barista-10563
03/10/2023, 4:50 PMquick-barista-10563
03/10/2023, 4:52 PMquick-barista-10563
03/10/2023, 4:54 PMshy-beach-55709
03/14/2023, 1:19 PMshy-beach-55709
03/14/2023, 1:38 PMproud-plumber-24205
03/14/2023, 1:44 PMshy-beach-55709
03/14/2023, 1:49 PMproud-plumber-24205
03/14/2023, 1:57 PMquick-barista-10563
03/14/2023, 2:59 PMquick-barista-10563
03/14/2023, 3:00 PMshy-beach-55709
03/14/2023, 4:53 PMkratos:
config:
dsn: memory
identity:
default_schema_id: default
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
courier:
smtp:
connection_uri: <smtps://myuser:secret@mail.example.com:587/?skip_ssl_verify=true>
serve:
public:
base_url: ory-kratos-public
cors:
enabled: true
admin:
base_url: ory-kratos-admin
session:
cookie:
same_site: Lax
selfservice:
default_browser_return_url: ory-kratos-admin/welcome
allowed_return_urls:
- ory-kratos-admin
methods:
password:
enabled: true
link:
enabled: true
config:
lifespan: 15m
oidc:
enabled: true
config:
providers:
- id: microsoft
provider: microsoft
label: microsoft
client_id: client_id
client_secret: client_secret
microsoft_tenant: common
issuer_url: <https://login.microsoftonline.com/common/oauth2/v2.0/authorize>
mapper_url: <https://storage.googleapis.com/bac-gcs-production/ca2c1bb3278251cd64913563fcff9412253581c821d078016e55761e965f989530a8777852603e571aa19ec09553af1cfdd28ba58489d94e4e2f9b906d04455f.jsonnet>
scope:
- openid
- profile
- email
- <https://graph.microsoft.com/User.Read>
subject_source: me
flows:
error:
ui_url: ory-kratos-admin/error
settings:
ui_url: ory-kratos-admin/settings
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: ory-kratos-admin/recovery
verification:
enabled: true
ui_url: ory-kratos-admin/verification
after:
default_browser_return_url: ory-kratos-admin/verified
logout:
after:
default_browser_return_url: ory-kratos-admin/login
login:
lifespan: 10m
ui_url: ory-kratos-admin/login
after:
default_browser_return_url: ory-kratos-admin/dashboard
registration:
lifespan: 10m
ui_url: ory-kratos-admin/registration
after:
default_browser_return_url: ory-kratos-admin/registered
oidc:
default_browser_return_url: hory-kratos-admin/dashboard
automigration:
enabled: true
identitySchemas:
"identity.default.schema.json": |
{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
chart: kratos
quick-barista-10563
03/14/2023, 5:01 PMkratos:
config:
session:
cookie:
name: session
domain: <http://domain.net|domain.net>
same_site: Strict
serve:
admin:
base_url: "<http://127.0.0.1:8088>"
public:
base_url: "<https://kratos.domain.net>"
Did you replace your real urls with easy to read strings for the paste?
base_url: ory-kratos-public
quick-barista-10563
03/14/2023, 5:01 PMquick-barista-10563
03/14/2023, 5:02 PMshy-beach-55709
03/14/2023, 5:02 PMshy-beach-55709
03/14/2023, 5:10 PMshy-beach-55709
03/14/2023, 5:26 PMshy-beach-55709
03/14/2023, 5:43 PMquick-barista-10563
03/14/2023, 5:46 PMquick-barista-10563
03/14/2023, 5:53 PMkratos.config
selfservice:
default_browser_return_url: <https://ui.domainnet>
allowed_return_urls:
- <https://ui.domain.net/login/>
flows:
registration:
enabled: false
ui_url: <https://ui.domain.net/register>
login:
ui_url: <https://ui.domain.net/login>
error:
ui_url: <https://ui.domain.net/login/error>
quick-barista-10563
03/14/2023, 5:57 PMquick-barista-10563
03/14/2023, 6:01 PM<wrong-domain>/login?flow=XXXXXX
quick-barista-10563
03/14/2023, 6:01 PMshy-beach-55709
03/14/2023, 6:16 PMkratos:
config:
dsn: memory
identity:
default_schema_id: default
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
courier:
smtp:
connection_uri: <smtps://myuser:secret@mail.example.com:587/?skip_ssl_verify=true>
serve:
public:
base_url: <http://ory-kratos-public.my-domain>
cors:
enabled: true
admin:
base_url: "<http://127.0.0.1:4434>"
session:
cookie:
same_site: Lax
selfservice:
default_browser_return_url: <http://ory-kratos.my-domain/welcome>
allowed_return_urls:
- <http://ory-kratos.my-domain>
methods:
password:
enabled: true
link:
enabled: true
config:
lifespan: 15m
oidc:
enabled: true
config:
providers:
- id: microsoft
provider: microsoft
label: microsoft
client_id: client_id
client_secret: client_secret
microsoft_tenant: common
issuer_url: <https://login.microsoftonline.com/common/oauth2/v2.0/authorize>
mapper_url: <https://storage.googleapis.com/bac-gcs-production/ca2c1bb3278251cd64913563fcff9412253581c821d078016e55761e965f989530a8777852603e571aa19ec09553af1cfdd28ba58489d94e4e2f9b906d04455f.jsonnet>
scope:
- openid
- profile
- email
- <https://graph.microsoft.com/User.Read>
subject_source: me
flows:
error:
ui_url: <http://ory-kratos.my-domain/error>
settings:
ui_url: <http://ory-kratos.my-domain/settings>
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: <http://ory-kratos.my-domain/recovery>
verification:
enabled: true
ui_url: <http://ory-kratos.my-domain/verification>
after:
default_browser_return_url: <http://ory-kratos.my-domain/verified>
logout:
after:
default_browser_return_url: <http://ory-kratos.my-domain/login>
login:
lifespan: 10m
ui_url: <http://ory-kratos.my-domain/login>
after:
default_browser_return_url: <http://ory-kratos.my-domain/dashboard>
registration:
lifespan: 10m
ui_url: <http://ory-kratos.my-domain/registration>
after:
default_browser_return_url: <http://ory-kratos.my-domain/registered>
oidc:
default_browser_return_url: <http://ory-kratos.my-domain/dashboard>
Node ui:
source:
repoURL: '<https://k8s.ory.sh/helm/charts>'
targetRevision: 0.28.0
helm:
parameters:
- name: kratosAdminUrl
value: '<http://ory-kratos-admin.my-domain.com/>'
- name: kratosPublicUrl
value: '<http://ory-kratos-public.my-domain.com/>'
- name: service.type
value: LoadBalancer
- name: kratosBrowserUrl
value: '<http://ory-kratos.my-domain.com/>'
chart: kratos-selfservice-ui-node
Login page and error are as shown in the images below.
I'm sure this is a completely dumb error sadkekquick-barista-10563
03/14/2023, 6:17 PMquick-barista-10563
03/14/2023, 6:20 PMself-service/login/browser
but I don't see that anywhere in your configs, could you check the network tab in the inspector and see which service forwarded you there?quick-barista-10563
03/14/2023, 6:24 PMquick-barista-10563
03/14/2023, 6:25 PMshy-beach-55709
03/14/2023, 6:30 PMshy-beach-55709
03/14/2023, 6:33 PMquick-barista-10563
03/14/2023, 6:37 PMPOST <https://kratos.domain.net/self-service/login?flow=96d622b0-b518-4750-bce3-4a5d841eb9dd>
And yours seems to be a GET
My 303 response redirects me to google, and sets a cookie ( ory_kratos_continuity
)
but yours seems to redirect directly to the browser urlquick-barista-10563
03/14/2023, 6:40 PMshy-beach-55709
03/14/2023, 6:43 PMshy-beach-55709
03/14/2023, 6:46 PMquick-barista-10563
03/14/2023, 6:47 PMshy-beach-55709
03/14/2023, 6:49 PMshy-beach-55709
03/14/2023, 7:15 PMquick-barista-10563
03/14/2023, 7:57 PMshy-beach-55709
03/14/2023, 8:08 PMshy-beach-55709
03/15/2023, 12:27 PMhelm:
parameters:
- name: kratosAdminUrl
value: '<http://ory-kratos-admin.my-domain.com/>'
- name: kratosPublicUrl
value: '<http://ory-kratos-public.my-domain.com/>'
- name: service.type
value: LoadBalancer
- name: kratosBrowserUrl
value: '<http://ory-kratos.my-domain.com/>'
chart: kratos-selfservice-ui-node
Our kratos config is as follows. What I suspect is that we are not configuring the correct url on the different flows, but we've tried all combinations and the error persists.
kratos:
config:
help: true
log:
format: json
level: debug
leak_sensitive_values: true
dsn: memory
identity:
default_schema_id: default
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
courier:
smtp:
connection_uri: <smtps://myuser:secret@mail.example.com:587/?skip_ssl_verify=true>
serve:
public:
base_url: <http://ory-kratos-public.my-domain.com/>
cors:
enabled: true
admin:
base_url: <http://ory-kratos-admin.my-domain.com/admin>
session:
cookie:
domain: <http://my-domain.com|my-domain.com>
cookies:
domain: <http://my-domain.com|my-domain.com>
path: /
same_site: Lax
selfservice:
default_browser_return_url: <http://ory-kratos-public.my-domain.com/welcome>
allowed_return_urls:
- <http://ory-kratos-public.my-domain.com>
methods:
password:
enabled: true
link:
enabled: true
config:
lifespan: 15m
oidc:
enabled: true
config:
providers:
- id: microsoft
provider: microsoft
label: microsoft
client_id: client_id
client_secret: client_secret
microsoft_tenant: common
issuer_url: <https://login.microsoftonline.com/common/oauth2/v2.0/authorize>
mapper_url: mapper_url
scope:
- openid
- profile
- email
- <https://graph.microsoft.com/User.Read>
subject_source: me
flows:
error:
ui_url: <http://ory-kratos-public.my-domain.com/error>
settings:
ui_url: <http://ory-kratos-public.my-domain.com/settings>
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: <http://ory-kratos-public.my-domain.com/recovery>
verification:
enabled: true
ui_url: <http://ory-kratos-public.my-domain.com/verification>
after:
default_browser_return_url: <http://ory-kratos-public.my-domain.com/verified>
logout:
after:
default_browser_return_url: <http://ory-kratos-public.my-domain.com/login>
login:
lifespan: 10m
ui_url: <http://ory-kratos-public.my-domain.com/self-service/login/>
after:
default_browser_return_url: <http://ory-kratos-admin.my-domain.com/dashboard>
registration:
lifespan: 10m
ui_url: <http://ory-kratos-public.my-domain.com/registration>
after:
default_browser_return_url: <http://ory-kratos-public.my-domain.com/registered>
oidc:
default_browser_return_url: <http://ory-kratos-public.my-domain.com/dashboard>
automigration:
enabled: true
identitySchemas:
"identity.default.schema.json": |
{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
chart: kratos
If I do a kubectl get pods:
$ kubectl -n ory get pods | grep kratos
ory-kratos-ui-kratos-selfservice-ui-node-586d98d846-g96nh 1/1 Running 0 17h
ory-kratos-updated-865cb47458-hrms2 1/1 Running 0 6m55s
ory-kratos-updated-courier-0 1/1 Running 0 6m55s
ory-kratos-updated-mysql-0 1/1 Running 0 6h47m
kubectl get svc:
$ kubectl -n ory get svc | grep kratos
ory-kratos-ui-kratos-selfservice-ui-node LoadBalancer
ory-kratos-updated-admin LoadBalancer
ory-kratos-updated-courier ClusterIP
ory-kratos-updated-mysql NodePort
ory-kratos-updated-mysql-headless ClusterIP
ory-kratos-updated-public LoadBalancer
I know that the admin endpoint shouldn't be exposed, but we have done so to test. Despite our best efforts, we've not been able to spot the error so far, so any help is really appreciated.shy-beach-55709
03/16/2023, 1:12 PMhigh-optician-2097
magnificent-energy-493
shy-beach-55709
04/13/2023, 5:17 PMmagnificent-energy-493
shy-beach-55709
05/31/2023, 5:36 PMcurved-oxygen-35290
05/31/2023, 6:20 PMmagnificent-energy-493
shy-beach-55709
06/05/2023, 12:15 PM