<@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
- 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 formatusername:password
. - For example, to change the password for the
datahub
user tonewpassword
, youruser.props
file should look like this:
- Create a new file named
// user.props
datahub:newpassword
```
-
Mount the Updated
user.props
File:- Modify the
docker-compose.yml
file to mount the updateduser.props
file to the appropriate location inside thedatahub-frontend-react
container. - Add the following volume mapping to the
datahub-frontend-react
service in yourdocker-compose.yml
file:datahub-frontend-react: ... volumes: - ./path/to/your/user.props:/datahub-frontend/conf/user.props
- Modify the
-
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
- 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:
- Similar to the Docker Compose method, create or modify the
// user.props
datahub:newpassword
```
-
Mount the Updated
user.props
File:- Modify the
docker-compose.quickstart.yml
file to mount the updateduser.props
file to the appropriate location inside thedatahub-frontend-react
container. - Add the following volume mapping:
datahub-frontend-react: ... volumes: - ./path/to/your/user.props:/datahub-frontend/conf/user.props
- Modify the
-
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
- Ensure that the path to your
user.props
file is correct and accessible by the Docker container. - If you are using Kubernetes (Helm), the process involves creating a Kubernetes secret and mounting it as a volume, as detailed in the <https://github.com/datahub-project/datahub/blob/master/docs/authentication/changing-default-credentials.md|Changing the default user credentials> guide.
Would you like more detailed instructions on any specific part of this process?
Sources:
Hey there! Make sure your message includes the following information if relevant, so we can help more effectively!
- Are you using UI or CLI for ingestion?
- Which DataHub version are you using? (e.g. 0.12.0)
- What data source(s) are you integrating with DataHub? (e.g. BigQuery)
<@U06TM7M40RK> Can you help with the questions in this thread?
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 or 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. 0 button 0 button Hint: Mention @runllm in the thread for followups.
- <https://github.com/datahub-project/datahub/blob/master/docs/authentication/changing-default-credentials.md|Changing the default user credentials>
- <https://github.com/datahub-project/datahub/blob/master/docs/quickstart.md|Quickstart Guide>
- <https://github.com/datahub-project/datahub/blob/master/docs/authentication/guides/add-users.md|Adding new users using a user.props file>
- <https://forum.datahubproject.io/t/troubleshooting-changing-default-credentials-for-datahub-deployment-with-docker/573|Troubleshooting changing default credentials for DataHub deployment with Docker> 0 button 0 button Hint: Mention @runllm in the thread for followups.