Rollin Thomas
a9fbe5c9f6
Enable options_from_form w/spawner from configuration
2022-02-11 10:06:38 -08:00
Erik Sundell
71bbbe4a67
Merge pull request #3792 from minrk/short-circuit
...
short-circuit token permission check if token and owner share role
2022-02-11 17:36:07 +01:00
Min RK
3843885382
short-circuit token permission check if token and owner share role
...
No need to compute intersection when we know it's a subset already
2022-02-11 15:20:14 +01:00
Narek Amirbekian
25ea559e0d
Pull out button components
2022-02-09 15:21:12 -08:00
Narek Amirbekian
c18815de91
Fix failing tests
2022-02-09 14:04:38 -08:00
Narek Amirbekian
50d53667ce
Add start server back
2022-02-09 13:15:27 -08:00
pre-commit-ci[bot]
68e2baf4aa
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-02-09 21:04:22 +00:00
Narek Amirbekian
6fc9d40e51
Merge remote-tracking branch 'origin/narek/admin-named-servers' into narek/admin-named-servers
2022-02-09 13:02:19 -08:00
Narek Amirbekian
0b25694b40
Add "spawn new" button
2022-02-09 12:59:34 -08:00
pre-commit-ci[bot]
bf750e488f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-02-09 19:58:05 +00:00
Narek Amirbekian
359f9055fc
Admin missing features
2022-02-09 11:43:06 -08:00
Min RK
b84dd5d735
Stop opening PAM sessions by default
...
We don't do it correctly, so don't try by default
It does work _sometimes_, but most of the time it does work, it's because it's a no-op.
Turning it off by default makes it more likely folks will see the caveat that it may not work.
2022-02-07 15:45:38 +01:00
Erik Sundell
3ed345f496
Merge pull request #3784 from jupyterhub/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-01-31 23:57:45 +01:00
pre-commit-ci[bot]
6633f8ef28
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-01-31 22:17:11 +00:00
pre-commit-ci[bot]
757053a9ec
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1 )
- [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0 )
2022-01-31 22:16:31 +00:00
Erik Sundell
36cad38ddf
Merge pull request #3781 from cqzlxl/cqzlxl-patch-1
...
Log proxy's public_url only when started by JupyterHub
2022-01-29 09:16:29 +01:00
pre-commit-ci[bot]
1e9a1cb621
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-01-29 05:59:52 +00:00
cqzlxl
9f051d3172
Update jupyterhub/app.py
...
Co-authored-by: Min RK <benjaminrk@gmail.com >
2022-01-29 13:59:20 +08:00
cqzlxl
53576c8f82
Update app.py
...
When we run the proxy separately, defaults of `hub.bind_url` may be different from proxy's public url. Actually, the hub has no ways to know about which address the proxy is serving at if we do not configure its `bind_url` explicitly.
2022-01-27 21:05:05 +08:00
Min RK
bb5ec39b2f
Merge pull request #3548 from C4IROcean/authenticator_user_group_management
...
Authenticator user group management
2022-01-25 14:36:41 +01:00
Min RK
4c54c6dcc8
Bump to 2.2.0.dev
2022-01-25 14:36:24 +01:00
Min RK
39da98f133
Bump to 2.1.1
2.1.1
2022-01-25 14:36:02 +01:00
Erik Sundell
29e69aa880
Merge pull request #3779 from minrk/changelog-211
...
changelog for 2.1.1
2022-01-25 12:18:37 +01:00
Min RK
0c315f31b7
specify nodejs, python versions in readthedocs
...
rather than use ancient system node
does v2 require the new .readthedocs.yaml filename?
Docs suggest it does.
2022-01-25 10:43:50 +01:00
Min RK
508842a68c
changelog for 2.1.1
2022-01-25 09:37:58 +01:00
Min RK
4b31615a05
Merge pull request #3778 from minrk/missing-metrics
...
add missing read:metrics scope to admin role
2022-01-24 16:12:09 +01:00
Min RK
17b64280e8
add missing metrics scope to admin role
...
new scope defined, but not added to admin
In the future, the admin list should probably be derived automatically
2022-01-24 15:35:57 +01:00
Min RK
88be7a9967
test coverage for Authenticator.managed_groups
...
- tests
- docs
- ensure all group APIs are rejected when auth is in control
- use 'groups' field in return value of authenticate/refresh_user, instead of defining new method
- log group changes in sync_groups
2022-01-24 13:45:35 +01:00
Simon Li
4ca2344af7
Merge pull request #3777 from jupyterhub/dependabot/npm_and_yarn/jsx/nanoid-3.2.0
...
Bump nanoid from 3.1.23 to 3.2.0 in /jsx
2022-01-22 08:50:45 +00:00
dependabot[bot]
4c050cf165
Bump nanoid from 3.1.23 to 3.2.0 in /jsx
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-22 04:38:13 +00:00
Min RK
5e2ccb81fa
Bump to 2.2.0.dev
2022-01-21 11:36:55 +01:00
Min RK
b8dc3befab
Bump to 2.1.0
2.1.0
2022-01-21 11:35:49 +01:00
Erik Sundell
2f29848757
Merge pull request #3776 from minrk/cl21
...
Changelog for 2.1.0
2022-01-21 10:54:09 +01:00
Min RK
4f3d6cdd0c
changelog for 2.1.0
2022-01-21 10:42:25 +01:00
Min RK
67733ef928
Merge pull request #3773 from IgorBerman/issue-3772-user_options-returns-empty-jupyterhub-restart
...
Using orm_spawner in server model user_options
2022-01-21 09:38:37 +01:00
Erik Sundell
e657754e7f
Merge pull request #3775 from minrk/on_rtd_edit
...
DOCS: Add github metadata for edit button
2022-01-20 19:39:35 +01:00
Igor Berman
2d6087959c
issue-3772: populating user_options from orm_spawner; adding test
2022-01-20 20:07:43 +02:00
Min RK
08a913707f
define html_context needed for edit_page_button
2022-01-20 18:56:41 +01:00
Igor Berman
9c8a4f287a
issue-3772: populating user_options from orm_spawner, cleanup
2022-01-20 18:04:35 +02:00
Igor Berman
64d6f0222c
issue-3772: populating user_options from orm_spawner
2022-01-20 18:01:57 +02:00
Erik Sundell
538abdf084
Merge pull request #3763 from minrk/page-scopes
...
apply scope checks to some admin-or-self situations
2022-01-20 16:21:51 +01:00
Thomas Li Fredriksen
144abcb965
Added authenticator hook for synchronizing user groups
...
- Added hook function stub to authenticator base class
- Added new config option `manage_groups` to base `Authenticator` class
- Call authenticator hook from `refresh_auth`-function in `Base` handler class
- Added example
2022-01-20 13:30:03 +01:00
Min RK
6e5c307edb
apply scope checks to some admin-or-self pages
...
Some non-api spawn and redirect checks still had `self or admin`,
when they should have checked directly for the appropriate permissions
This removes the long-deprecated redirect from `/user/other` -> `/user/self` _if_ the other server is not running.
The result is a more consistent behavior whether the requested server is running or not,
and whether the user has _access_ to the running server or not.
2022-01-20 13:27:43 +01:00
Igor Berman
67ebe0b0cf
Update base.py
2022-01-19 21:45:45 +02:00
Min RK
dcf21d53fd
Merge pull request #3765 from twalcari/patch-2
...
Improve documentation about spawner exception handling
2022-01-19 10:01:51 +01:00
Erik Sundell
f5bb0a2622
Merge pull request #3770 from minrk/metrics-scope
...
Add `read:metrics` scope for metrics endpoint
2022-01-18 17:51:50 +01:00
Min RK
704712cc81
Add read:metrics
scope for metrics endpoint
...
and ensure token auth is accepted
2022-01-18 15:02:24 +01:00
Erik Sundell
f86d53a234
Merge pull request #3764 from minrk/progress-error-message
...
relay custom messages in exception.jupyterhub_message in progress API
2022-01-18 13:18:29 +01:00
Thijs Walcarius
5466224988
Improve documentation about spawner error messages
2022-01-18 09:18:01 +01:00
Min RK
f9fa21bfd7
relay custom messages in exception.jupyterhub_message in progress API
...
matches the message shown on the HTML spawn-failed page
For consistency, also support `jupyterhub_html_message` to populate the `html_message` field
2022-01-18 09:15:58 +01:00