Skip to content
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

No Users group by default #957

Closed
wants to merge 3 commits into from
Closed

No Users group by default #957

wants to merge 3 commits into from

Conversation

danlester
Copy link
Contributor

@danlester danlester commented Dec 3, 2021

Fixes #921

Changes:

  • By default, there will be no users default group any more.
  • There is now a security.shared_users_group field in qhub-config.yaml - if true, the users default group will be created. This will mean there is a shared folder for everyone to use.
  • Added --shared-users-group flag to qhub init which will add security.shared_users_group: true to the qhub-config.yaml file. If the flag is omitted, the user will be asked if they want this users group or not (unless --disable-prompt passed, in which case shared_users_group defaults to false.
  • Only symlink shared folder if there are any shared folder mounts available to the JupyterLab session.
  • qhub upgrade from earlier versions will add security.shared_users_group: true if there was a users group specified in the incoming qhub-config.yaml file.

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests?

  • Yes
  • No

@danlester danlester changed the title Usersgroup No Users group by default Dec 3, 2021
@danlester danlester requested a review from costrouc December 7, 2021 17:40
@trallard trallard added the needs: review 👀 This PR is complete and ready for reviewing label Dec 15, 2021
@danlester danlester closed this Jan 4, 2022
@danlester
Copy link
Contributor Author

Closed accidentally

@danlester danlester reopened this Jan 6, 2022
@iameskild iameskild added this to the Release v0.4.0 milestone Jan 18, 2022
@viniciusdc
Copy link
Contributor

HI Dan, thanks for the PR. I will test it! 👍

@viniciusdc
Copy link
Contributor

Hi @danlester, sorry for the late feedback on this. I totally agree of the user group removal, but I didn't understand the optional user/shared settings... how that will interact with the recent changes proposed in #1003

@danlester
Copy link
Contributor Author

Yes, it's possible this is all outdated now.

Let's see once the other PR is merged.

costrouc added a commit that referenced this pull request Feb 11, 2022
Closes #957

This adds an option for `security.shared_users_group` which is by
default False. If True all users created after this option is set True
will be added to the `users` group. If any users were created before
this option they must manually be added to this group.
danlester added a commit that referenced this pull request Feb 12, 2022
)

* Adding security.shared_users_group option for default users group

Closes #957

This adds an option for `security.shared_users_group` which is by
default False. If True all users created after this option is set True
will be added to the `users` group. If any users were created before
this option they must manually be added to this group.

* shared_users_group added on 0.4.0 upgrade; docs for users

Co-authored-by: Dan Lester <dan@ideonate.com>
@trallard trallard deleted the usersgroup branch October 7, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: review 👀 This PR is complete and ready for reviewing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the default 'users' group?
5 participants