Switching Users for a DataHub Deployed in Local System

Original Slack Thread

<@U06TM7M40RK> how to switch to different user for datahub deployed in local system

To switch to a different user for a DataHub instance deployed locally, you need to modify the user.props file, which contains the username and password combinations for DataHub users. The steps to achieve this depend on how you have deployed DataHub (e.g., using Docker Compose or the Quickstart method).

Using Docker Compose

  1. Create or Modify the user.props File:
    • Create a new file named user.props or modify the existing one. This file should contain the username and password in the format username:password.
    • For example, to change the password for the datahub user to newpassword, your user.props file should look like this:

// user.props
datahub:newpassword
```

  1. Mount the Updated user.props File:

    • Modify the docker-compose.yml file to mount the updated user.props file to the appropriate location inside the datahub-frontend-react container.
    • Add the following volume mapping to the datahub-frontend-react service in your docker-compose.yml file:
      datahub-frontend-react:
        ...
        volumes:
          - ./path/to/your/user.props:/datahub-frontend/conf/user.props
      
  2. Restart DataHub:

    • Restart the DataHub containers to apply the changes.
    • You can do this by running:
      docker-compose down
      docker-compose up -d
      

Using Quickstart

  1. Create or Modify the user.props File:
    • Similar to the Docker Compose method, create or modify the user.props file with the desired username and password.
    • For example:

// user.props
datahub:newpassword
```

  1. Mount the Updated user.props File:

    • Modify the docker-compose.quickstart.yml file to mount the updated user.props file to the appropriate location inside the datahub-frontend-react container.
    • Add the following volume mapping:
      datahub-frontend-react:
        ...
        volumes:
          - ./path/to/your/user.props:/datahub-frontend/conf/user.props
      
  2. Restart DataHub:

    • Restart the DataHub containers to apply the changes.
    • You can do this by running:
      datahub docker quickstart --stop
      datahub docker quickstart
      

Example user.props File

Here is an example of what your user.props file might look like if you want to add multiple users:

// user.props
datahub:newpassword
janesmith:janespassword
johndoe:johnspassword

Additional Notes

Would you like more detailed instructions on any specific part of this process?

Sources:

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Are you using UI or CLI for ingestion?
  2. Which DataHub version are you using? (e.g. 0.12.0)
  3. What data source(s) are you integrating with DataHub? (e.g. BigQuery)

<@U06TM7M40RK> Can you help with the questions in this thread?


:information_source: We’re experimenting with a new AI assistant for questions in the <#CUMUWQU66> channel to help you track down helpful resources more quickly. Keep in mind that responses may not always be spot-on; feel free to ask it follow-up questions and don’t forget to provide its responses a :thumbsup: or :thumbsdown: so other folks in the Community know if you’re still looking for help on the topic!

I’m not able to find any data sources to answer your question. Could you provide more details about the specific issue you are facing or the information you are seeking? If this doesn’t help, please reach out to the DataHub support team for further assistance. :+1: 0 button :-1: 0 button :bulb: Hint: Mention @runllm in the thread for followups.