Generate encrypted passwords manually

DrissiReda
DrissiReda Registered Posts: 57 ✭✭✭✭✭

I'm trying to set up automatic configuration in my dataiku instance. I can do that through overwriting the files in "dss_dir/config".

One issue I'm currently having is how to generate encrypted passwords, for example in the connections file we have:

This is "password"

e:AES:X2:H6n1ldTXlVeLUBMqrPi1anV6EoHQV1zicSRYWXASLpTQcWzg1fk+SXmpoHDt2IYdokuw7eWKeas=

What algorithm/binary can I use to generate this? Ideally I'd like to do it in python because it's what dss uses.

For users.json for example it would be a different one:

This is "password"

pbkdf2:10000:3795535011a99f7e:93e384bcd6b3fd1c752b7e907dea542add43774f05ef718045a52e75834250e6e5d032d099dffa507b103ce53b6f427afe509b705c01d15714b0bf943b8b1500

Best Answer

Answers

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 365 Dataiker
    edited July 2024

    Hi @DrissiReda

    You can use dku utility for that:

    ./bin/dku encrypt-password <password>

    The encrypted password will be output as the line started by "e:AES:........"

    What about the algorithm, you can find more info here: https://doc.dataiku.com/dss/latest/security/passwords-security.html

  • DrissiReda
    DrissiReda Registered Posts: 57 ✭✭✭✭✭

    Thanks but I can't see how to do that for pbkdf2

  • DrissiReda
    DrissiReda Registered Posts: 57 ✭✭✭✭✭

    Thank you very much that works perfectly for me. One last point, any possible way I can "Install Jupyter Kernels" from cli? It's an option inside the containerized execution plugin.

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 365 Dataiker

    hi @DrissiReda

    I am not sure about what option you are talking about in EKS/AKS/GKE plugins, but there is a high chance as this is going to work only from UI as plugins don't usually have APIs.

  • DrissiReda
    DrissiReda Registered Posts: 57 ✭✭✭✭✭

    It's not a plugin, but thanks to logs I realized how to do what I wanted. It just creates a kernel.json file under dss/jupyter-run/kernels/py-dku-containerized-venv--<containerized_exec_conf_name>/

  • Tanguy
    Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 130 Neuron

    @Sergey : is it possible to do this:

    You can use dku utility for that:

    ./bin/dku encrypt-password <password>

    via the dataiku api client ? Otherwise, will this functionality be possible in the future?

  • Tanguy
    Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 130 Neuron
    edited January 13

    FYI I have found a workaround for my usecase.

Setup Info
    Tags
      Help me…