question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Config to use the firstuseauthentificator in qhub

See original GitHub issue

(follow-up issue after asking this question of gitter)

I am trying to use the firstuseauthentificator in qhub. my configuration looks like this :

security:
  authentication:
    type: custom
    authentication_class: 'firstuseauthenticator.FirstUseAuthenticator'
    config: 
       min_password_length: 5

Then I run python -m qhub deploy --config qhub-config.yaml to update the deployment. (by the way is that the command I should use to update the deployment ? the doc is not super clear for this step.)

And the error displayed this :

[terraform]: module.qhub.module.kubernetes-jupyterhub.helm_release.jupyterhub: Still modifying... [id=jupyterhub, 5m0s elapsed]
[terraform]: module.qhub.module.kubernetes-jupyterhub.helm_release.jupyterhub: Still modifying... [id=jupyterhub, 5m10s elapsed]
[terraform]: module.qhub.module.kubernetes-jupyterhub.helm_release.jupyterhub: Still modifying... [id=jupyterhub, 5m20s elapsed]
[terraform]: module.qhub.module.kubernetes-jupyterhub.helm_release.jupyterhub: Still modifying... [id=jupyterhub, 5m30s elapsed]
[terraform]: module.qhub.module.kubernetes-jupyterhub.helm_release.jupyterhub: Still modifying... [id=jupyterhub, 5m40s elapsed]
[terraform]: 
[terraform]: Error: timed out waiting for the condition
[terraform]: 
[terraform]:   on modules/kubernetes/services/jupyterhub/main.tf line 6, in resource "helm_release" "jupyterhub":
[terraform]:    6: resource "helm_release" "jupyterhub" {
[terraform]: 
[terraform]: 

Some advice on the config I should use would be nice ? Thanks !

Additional note if it can help : This is my config with the jupyterhub helm repo and it works:

  hub:
    config:
     JupyterHub:
          authenticator_class: firstuseauthenticator.FirstUseAuthenticator
     FirstUseAuthenticator:
          min_password_length: 5
          admin_access: true
          admin_users: 
          - marine

Your environment

qhub == 0.3.12 minkube with kubernetes-version=1.19.4 jupyterhub-firstuseauthenticator == 0.14.1 (https://github.com/jupyterhub/firstuseauthenticator)

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
danlestercommented, Nov 22, 2021

To be clear, qhub upgrade is already in main as part of Keycloak (and is essential for it in my opinion).

1reaction
danlestercommented, Nov 19, 2021

@iameskild Actually, this will no longer be supported directly:

security:
  authentication:
    type: custom

which is something we need to add to the release notes. I think it would be a good idea to create a draft release so we can add information like that when we come to it, or would you prefer changelog to be in the docs directly?

The qhub upgrade command should also give some kind of warning if it comes across this configuration, I made an issue for that here: #931

I would be happy to solve that issue, although it could be useful experience for someone to see the upgrade process.

In terms of how to achieve the desired authentication behavior (i.e. something similar to First Use Authenticator), Keycloak would need to be configured for this if possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

useAuthenticator doesn't trigger re-render when ... - GitHub
I have read the guide for submitting bug reports. ... I am trying to use the useAuthenticator hook to set a global authentication...
Read more >
Headless | Amplify UI for React
@aws-amplify/ui-react ships with useAuthenticator React hook that can be used to access, modify, and update Authenticator's auth state. To use them, first ......
Read more >
AuthStatus is not changing from configuring state using ...
Flicker of login page on Authentication - useAuthenticator - React - Amplify Auth. Unfortunately now, the page is always stuck in the " ......
Read more >
jupyter - Bountysource
When I am trying to git clone a repository from within the jupyterhub pod, I got an error. It is working for k8s-hub...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found