Code Monkey home page Code Monkey logo

Comments (8)

leportella avatar leportella commented on August 10, 2024

@consideRatio could you please help us out here?

from nativeauthenticator.

consideRatio avatar consideRatio commented on August 10, 2024
  1. Let's install nativeauthenticator in the jupyterhub hub docker image.
  2. You don't have that issue you describe with timestamp in the latest jupyterhub (beta.3 or even later development releases)

Then - let's think more about it all. I'll be back!

from nativeauthenticator.

bebosudo avatar bebosudo commented on August 10, 2024

@leportella @consideRatio any news/update?

from nativeauthenticator.

consideRatio avatar consideRatio commented on August 10, 2024

I'll go add it to the docker image right now as a break from my work :)

from nativeauthenticator.

consideRatio avatar consideRatio commented on August 10, 2024

jupyterhub/zero-to-jupyterhub-k8s#1583

from nativeauthenticator.

consideRatio avatar consideRatio commented on August 10, 2024

@bebosudo Try out version 0.9.0-beta.3.n040.hb5c8dce for k8s 1.16/1.17 compatebility and nativeauthenticator available

Configure it as it were a custom authenticator, im too time constrained to help more right now - thanks for exploring its use!

from nativeauthenticator.

bebosudo avatar bebosudo commented on August 10, 2024

Hi, thanks for your work! Using release 0.9.0-beta.4.n000.h72e54ee I was able to have a nativeauthenticator almost working.
The config I ended up using is the following, as I reported in another issue in jupyterhub/zero-to-jupyterhub-k8s#84 (comment):

hub:
  # Image that manages the user login and jupyterlab creation.
  # Use the same tag used when installing with helm.
  image:
    name: jupyterhub/k8s-hub
    tag: 0.9.0-beta.4.n000.h72e54ee

  services:
    testService:
      admin: true
      apiToken: "aec7d32df938c0f55e54f09244a350cb29ea612907ed4f07be13d9553d18a8e4"

auth:
  type: "custom"
  custom:
   className: "nativeauthenticator.NativeAuthenticator"
  admin:
    users:
      - admin1
  whitelist:
    users:
      - test1
      - test2

# other non-relevant stuff

My question is: how can I define password for the admins and users, if it's possible at all?
Is there any k8s Secret object I need to define?
I don't see any useful user management endpoint in the REST API doc: https://jupyterhub.readthedocs.io/en/stable/_static/rest-api/index.html

I'm fine with creating them from an external script, something that I could place in a CronJob and repeat every hour or so, to make sure they exist.

Moreover: what is a service in jhub?
If I now list the services I get also a testService, the one I just created to access the API, along with the cull service:

$ curl -L  -H  "accept: application/json" -H "Authorization: token aec7d32df938c0f55e54f09244a350cb29ea612907ed4f07be13d9553d18a8e4" http://host:port/hub/api/services |python -m json.tool
{
    "cull-idle": {
        "admin": true,
        "command": [
            "python3",
            "/etc/jupyterhub/cull_idle_servers.py",
            "--url=http://127.0.0.1:8081/hub/api",
            "--timeout=3600",
            "--cull-every=600",
            "--concurrency=10"
        ],
        "info": {},
        "name": "cull-idle",
        "pid": 11,
        "prefix": "",
        "url": ""
    },
    "testService": {
        "admin": true,
        "command": [],
        "info": {},
        "name": "testService",
        "pid": 0,
        "prefix": "",
        "url": ""
    }
}

Could the password-setting operation be performed using a jhub service?

from nativeauthenticator.

consideRatio avatar consideRatio commented on August 10, 2024

nativeauthenticator is being installed automatically as part of z2jh now - I'm closing this issue as resolved.

from nativeauthenticator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.