Question

kasten k10 opens blank with ad domain integration authentication page after being published via ingress https


kasten k10 verified successfully in standalone configuration:

1. kasten k10 successfully logged in after Posting via ingress https

2. kasten k10 successfully login to ldap via ad domain Integrated authentication

 

kasten k10 fails to publish with ingress and ldap, and the https page is blank

 

1How should the dashboardURL address be configured

The current configuration: https://k10.test.local/k10


3 comments

Userlevel 4
Badge +2

Hello @lidw123 .

Thank you for using K10 community.

The dashboard URL should be in this format:

--set auth.ldap.dashboardURL="https://<URL to k10 gateway service>/<k10 release name>/"

Using your example, it should be:

https://k10.test.local/k10/

Please also take a look at auth-svc / dashboard logs, it might help you find out any issues.

FRubens

@FRubens 

 

 dashboardbff-svc logs

 

 

Thu, May 25 2023 10:36:56 am

{"Command":"kopia --log-level=error --config-file=/tmp/kopia-repository.config --log-dir=/tmp/kopia-log --password=\u003c****\u003e repository connect --no-check-for-updates --cache-directory=/tmp/kopia-cache --content-cache-size-mb=0 --metadata-cache-size-mb=500 s3 --bucket=k10 --endpoint=192.168.10.11:9000 --disable-tls --access-key=\u003c****\u003e --secret-access-key=\u003c****\u003e --prefix=k10/ddfa8e19-d474-476d-8800-75c011f082b4/migration/repo/805e1ecf-f366-46cb-b0fc-b88c01e41519/","File":"kasten.io/k10/kio/kopia/kopia.go","Function":"kasten.io/k10/kio/kopia.stringSliceCommand","Line":93,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"kopia command","time":"2023-05-25T02:36:56.231Z","version":"5.5.9"}

Thu, May 25 2023 10:36:56 am

{"Command":"kopia --log-level=error --config-file=/tmp/kopia-repository.config --log-dir=/tmp/kopia-log --password=\u003c****\u003e blob stats --raw","File":"pkg/kopia/command/common.go","Function":"github.com/kanisterio/kanister/pkg/kopia/command.stringSliceCommand","Line":37,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Kopia Command","time":"2023-05-25T02:36:56.714044446Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"Count: 22","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169108906Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"Total: 39301","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169190676Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"Average: 1786","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169229598Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"Histogram:","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169271824Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 0 between 0 and 10 (total 0)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.16933002Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 1 between 10 and 100 (total 30)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169371809Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 10 between 100 and 1000 (total 4254)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169403296Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 11 between 1000 and 10000 (total 35017)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169439805Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 0 between 10000 and 100000 (total 0)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169474337Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 0 between 100000 and 1000000 (total 0)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169511148Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 0 between 1000000 and 10000000 (total 0)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169547998Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" 0 between 10000000 and 100000000 (total 0)","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.169579976Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Command":"kopia --log-level=error --config-file=/tmp/kopia-repository.config --log-dir=/tmp/kopia-log --password=\u003c****\u003e snapshot list --all --delta --show-identical --json","File":"pkg/kopia/command/common.go","Function":"github.com/kanisterio/kanister/pkg/kopia/command.stringSliceCommand","Line":37,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Kopia Command","time":"2023-05-25T02:36:57.169700001Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"[","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.666567289Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" {\"id\":\"da6db8374547a0becd6bfb0e0bdaaf1f\",\"source\":{\"host\":\"805e1ecf-f366-46cb-b0fc-b88c01e41519.test2-nginx3.test2-nginx2-pvc\",\"userName\":\"k10-admin\",\"path\":\"/vol-test2-nginx3/data\"},\"description\":\"\",\"startTime\":\"2023-05-23T09:58:11.795248958Z\",\"endTime\":\"2023-05-23T09:58:11.80593461Z\",\"stats\":{\"totalSize\":12,\"excludedTotalSize\":0,\"fileCount\":1,\"cachedFiles\":0,\"nonCachedFiles\":1,\"dirCount\":1,\"excludedFileCount\":0,\"excludedDirCount\":0,\"ignoredErrorCount\":0,\"errorCount\":0},\"rootEntry\":{\"name\":\"data\",\"type\":\"d\",\"mode\":\"0777\",\"mtime\":\"2023-05-23T09:53:18.692680337Z\",\"obj\":\"k0ee2b2b9dd1a845bfe81ed3e8f05e6f6\",\"summ\":{\"size\":12,\"files\":1,\"symlinks\":0,\"dirs\":1,\"maxTime\":\"2023-05-23T09:53:44.857833334Z\",\"numFailed\":0}},\"tags\":{\"tag:JobId\":\"41563c6b-f950-11ed-a33e-b640bfa87549\"},\"retentionReason\":[\"latest-3\"]},","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.666638837Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" {\"id\":\"ff4ae4f3e5f2803bb72995832f239e6d\",\"source\":{\"host\":\"805e1ecf-f366-46cb-b0fc-b88c01e41519.test2-nginx3.test2-nginx2-pvc\",\"userName\":\"k10-admin\",\"path\":\"/vol-test2-nginx3/data\"},\"description\":\"\",\"startTime\":\"2023-05-23T14:26:29.146033287Z\",\"endTime\":\"2023-05-23T14:26:29.150644311Z\",\"stats\":{\"totalSize\":12,\"excludedTotalSize\":0,\"fileCount\":0,\"cachedFiles\":1,\"nonCachedFiles\":0,\"dirCount\":1,\"excludedFileCount\":0,\"excludedDirCount\":0,\"ignoredErrorCount\":0,\"errorCount\":0},\"rootEntry\":{\"name\":\"data\",\"type\":\"d\",\"mode\":\"0777\",\"mtime\":\"2023-05-23T09:53:18.692680337Z\",\"obj\":\"k0ee2b2b9dd1a845bfe81ed3e8f05e6f6\",\"summ\":{\"size\":12,\"files\":1,\"symlinks\":0,\"dirs\":1,\"maxTime\":\"2023-05-23T09:53:44.857833334Z\",\"numFailed\":0}},\"tags\":{\"tag:JobId\":\"bd2b97fd-f975-11ed-a33e-b640bfa87549\"},\"retentionReason\":[\"latest-2\"]},","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.666688476Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":" {\"id\":\"36c7db53818cd08b8894326de4213fd2\",\"source\":{\"host\":\"805e1ecf-f366-46cb-b0fc-b88c01e41519.test2-nginx3.test2-nginx2-pvc\",\"userName\":\"k10-admin\",\"path\":\"/vol-test2-nginx3/data\"},\"description\":\"\",\"startTime\":\"2023-05-23T23:57:42.782517643Z\",\"endTime\":\"2023-05-23T23:57:42.789030646Z\",\"stats\":{\"totalSize\":12,\"excludedTotalSize\":0,\"fileCount\":0,\"cachedFiles\":1,\"nonCachedFiles\":0,\"dirCount\":1,\"excludedFileCount\":0,\"excludedDirCount\":0,\"ignoredErrorCount\":0,\"errorCount\":0},\"rootEntry\":{\"name\":\"data\",\"type\":\"d\",\"mode\":\"0777\",\"mtime\":\"2023-05-23T09:53:18.692680337Z\",\"obj\":\"k0ee2b2b9dd1a845bfe81ed3e8f05e6f6\",\"summ\":{\"size\":12,\"files\":1,\"symlinks\":0,\"dirs\":1,\"maxTime\":\"2023-05-23T09:53:44.857833334Z\",\"numFailed\":0}},\"tags\":{\"tag:JobId\":\"88e2aee1-f9c5-11ed-a33e-b640bfa87549\"},\"retentionReason\":[\"latest-1\"]}","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.66673087Z","version":"5.5.9"}

Thu, May 25 2023 10:36:57 am

{"Container":"container","File":"pkg/format/format.go","Function":"github.com/kanisterio/kanister/pkg/format.infoWithCtx","Line":97,"LogKind":"datapath","Out":"]","Pod":"backup-data-stats-5bsc5","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"dashboardbff-svc-7d894d94b9-2dcq6","level":"info","msg":"Pod Update","time":"2023-05-25T02:36:57.666772739Z","version":"5.5.9"}

 

 auth-svc  logs

 

 

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/oidc.go","Function":"kasten.io/k10/kio/auth.NewOIDCProvider","Line":52,"clusterName":"https://k10.test.local","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"auth-svc-69d44b6894-rgj5v","level":"info","msg":"Initializing OIDC provider","prompt":"select_account","providerURL":"https://k10.test.local/k10/dex","scopes":"groups profile email","time":"2023-05-25T02:38:43.330Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/oidc.go","Function":"kasten.io/k10/kio/auth.NewOIDCProvider","Line":52,"clusterName":"https://k10.test.local","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"auth-svc-69d44b6894-rgj5v","level":"info","msg":"Initializing OIDC provider","prompt":"select_account","providerURL":"https://k10.test.local/k10/dex","scopes":"groups profile email","time":"2023-05-25T02:38:43.331Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/oidc.go","Function":"kasten.io/k10/kio/auth.NewOIDCProvider","Line":52,"clusterName":"https://k10.test.local","cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","hostname":"auth-svc-69d44b6894-rgj5v","level":"info","msg":"Initializing OIDC provider","prompt":"select_account","providerURL":"https://k10.test.local/k10/dex","scopes":"groups profile email","time":"2023-05-25T02:38:43.331Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/handlers/error.go","Function":"kasten.io/k10/kio/auth/handlers.(*ErrorHandler).ServeHTTP","Line":34,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","err":{"message":"Failed to init OIDC provider","function":"kasten.io/k10/kio/auth.initOIDC","linenumber":74,"file":"kasten.io/k10/kio/auth/oidc.go:74","cause":{"message":"Failed to setup OIDC Provider","function":"kasten.io/k10/kio/auth.provider","linenumber":63,"file":"kasten.io/k10/kio/auth/oidc.go:63","cause":{"message":"Get \"https://k10.test.local/k10/dex/.well-known/openid-configuration\": dial tcp: lookup k10.test.local on 10.43.0.10:53: no such host"}}},"hostname":"auth-svc-69d44b6894-rgj5v","level":"error","msg":"Internal error: Failed to create OIDC provider","path":"/v0/authz/k10/dashboardbff-svc/v0/actions/summary","status":401,"time":"2023-05-25T02:38:43.362Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/handlers/error.go","Function":"kasten.io/k10/kio/auth/handlers.(*ErrorHandler).ServeHTTP","Line":34,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","err":{"message":"Failed to init OIDC provider","function":"kasten.io/k10/kio/auth.initOIDC","linenumber":74,"file":"kasten.io/k10/kio/auth/oidc.go:74","cause":{"message":"Failed to setup OIDC Provider","function":"kasten.io/k10/kio/auth.provider","linenumber":63,"file":"kasten.io/k10/kio/auth/oidc.go:63","cause":{"message":"Get \"https://k10.test.local/k10/dex/.well-known/openid-configuration\": dial tcp: lookup k10.test.local on 10.43.0.10:53: no such host"}}},"hostname":"auth-svc-69d44b6894-rgj5v","level":"error","msg":"Internal error: Failed to create OIDC provider","path":"/v0/authz/k10/dashboardbff-svc/v0/actions","status":401,"time":"2023-05-25T02:38:43.363Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

{"File":"kasten.io/k10/kio/auth/handlers/error.go","Function":"kasten.io/k10/kio/auth/handlers.(*ErrorHandler).ServeHTTP","Line":34,"cluster_name":"ddfa8e19-d474-476d-8800-75c011f082b4","err":{"message":"Failed to init OIDC provider","function":"kasten.io/k10/kio/auth.initOIDC","linenumber":74,"file":"kasten.io/k10/kio/auth/oidc.go:74","cause":{"message":"Failed to setup OIDC Provider","function":"kasten.io/k10/kio/auth.provider","linenumber":63,"file":"kasten.io/k10/kio/auth/oidc.go:63","cause":{"message":"Get \"https://k10.test.local/k10/dex/.well-known/openid-configuration\": dial tcp: lookup k10.test.local on 10.43.0.10:53: no such host"}}},"hostname":"auth-svc-69d44b6894-rgj5v","level":"error","msg":"Internal error: Failed to create OIDC provider","path":"/v0/authz/k10/dashboardbff-svc/v0/actions","status":401,"time":"2023-05-25T02:38:43.362Z","version":"5.5.9"}

Thu, May 25 2023 10:38:43 am

Userlevel 4
Badge +2

​​​​​​@lidw123 

Thank you for the logs.

Looks like the culprit is your host name provided in the K10 url is not valid:

\"https://k10.test.local/k10/dex/.well-known/openid-configuration\": dial tcp: lookup k10.test.local on 10.43.0.10:53: no such host"

Please check your ingress settings and make sure you are using the correct address.

 

FRubens

Comment