-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ui): Simplify process of adding user.props (w/ docs) #4296
refactor(ui): Simplify process of adding user.props (w/ docs) #4296
Conversation
docs/how/auth/add-users.md
Outdated
## (Advanced) Mount custom user.props file to container | ||
|
||
This step is only required when mounting custom credentials into a Kubernetes pod (e.g. Helm) **or** if you want to change | ||
the default filesystem location where DataHub checks for a custom `user.props` file (`${HOME}/.datahub/plugins/auth/user.props)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this /etc/datahub/plugins/auth/user.props
(as seen inside the container)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - this is if ${HOME}/.datahub/... doesn't work as a source location for you
@@ -47,7 +52,8 @@ For example, to mount a user.props file that is stored on my local filesystem at | |||
..... | |||
# The new stuff | |||
volumes: | |||
- <path-to-your-user.props>:/datahub-frontend/conf/user.props | |||
- ${HOME}/.datahub/plugins:/etc/datahub/plugins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have we tested this? where we have /etc/datahub/plugins being mounted and then another directory inside of this directory /etc/datahub/plugins/auth also being mounted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - I've not tested this yet. I should though, thanks! The issue with removing the original mounting is that it could have other stuff in it also later down the road
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did test this. It works!
Simplify adding users to creating a local user.props at a specific location. When DataHub starts, it will automatically try to mount the custom user.props file to make the process as easy as possible. Also adding docs!
Checklist