Thomas Mendoza
25e6b31a5f
Only internal_ssl kwargs if internal_ssl is enabled
2018-07-18 16:02:57 -07:00
Thomas Mendoza
3c21e7d45b
Server cert info into objects and orm
2018-07-18 16:02:57 -07:00
Thomas Mendoza
7c6972df7e
Remove unnecessary flag, forward-ssl
...
Import socket when needed
Move pwd import since more than one thing uses it.
2018-07-18 16:02:57 -07:00
Thomas Mendoza
753bd0701f
Create and move certs for use with spawned notebooks
...
Add Localhost to trusted alt names
Update to match refactored certipy names
Add the FQDN to cert alt names for hub
Ensure notebooks do not trust each other
Drop certs in user's home directory
Refactor cert creation and movement
Make alt names configurable
Make attaching alt names more generic
Setup ssl_context for the singleuser hub check
2018-07-18 16:02:57 -07:00
Thomas Mendoza
c5faf2c5ea
Use certipy to automate cert creation
2018-07-18 16:02:57 -07:00
Thomas Mendoza
c50cd1ba7f
Propagate certs to everything that needs them
2018-07-18 16:02:57 -07:00
Thomas Mendoza
a69e906c6e
Add config and wiring for enabling internal ssl in app
2018-07-18 16:02:57 -07:00
Thomas Mendoza
f7f4759bde
Build ssl_context as util, wait_up with context
2018-07-18 16:02:57 -07:00
Min RK
906abcc2f3
add Spawner.consecutive_failure_limit
...
The Hub will exit if consecutive failure count reaches this threshold
Any successful spawn will reset the count to 0
useful for auto-restarting / self-healing deployments such as kubernetes/systemd/docker where restarting the Hub
default is disabled, since it would bring down the Hub if it’s not an auto-restarting deployment
2018-07-16 12:07:26 -07:00
Min RK
5269370e4a
fix SIGTERM handling
...
raise SystemExit on sigterm instead of calling atexit directly
- ensure fresh asyncio eventloop is created (not just IOLoop)
- makes cleanup more likely to run (one source of orphaned proxies)
2018-07-16 11:49:40 -07:00
Min RK
897f5f62d5
pass requesting handler to spawner
...
allows Spawners to implement logic such as processing GET params to select inputs
USE WITH CARE because this gives authors of links the ability to pass parameters to spawn without user knowledge or input.
This should only be used for things like selecting from a list of all known-good choices, e.g. a profile list.
2018-07-13 17:23:19 -05:00
Min RK
727356870a
Merge pull request #2027 from adelcast/dev/adelcast/fix_services_windows
...
_ServiceSpawner: add 'SYSTEMROOT' to environment if Windows
2018-07-13 13:24:49 -05:00
Alejandro del Castillo
39aed3a5a0
_ServiceSpawner: add 'SYSTEMROOT' to environment if Windows
...
Python 3 cannot be started without SYSTEMROOT environment variable.
Otherwise, CryptAcquireContext() is unable to find a dll.
https://bugs.python.org/issue20614
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-07-06 14:47:19 -05:00
Min RK
ed26578717
back to dev
2018-07-04 11:59:43 +02:00
Min RK
22863f765f
0.9.1
0.9.1
2018-07-04 11:55:42 +02:00
Min RK
b500bd002b
Merge pull request #2014 from willingc/bump-testing
...
add python 3.7 to travis
2018-07-04 11:02:55 +02:00
Carol Willing
aca40b24c3
remove env
2018-07-03 16:32:05 -07:00
Carol Willing
b5fe5a80c6
remove 3.7 from python list but leave in matrix
2018-07-03 14:57:58 -07:00
Carol Willing
ad073dd5dd
add 3.7 to travis matrix
2018-07-03 14:44:09 -07:00
Carol Willing
7b815558c6
Merge pull request #2021 from minrk/091-changes
...
Prepare changelog for 0.9.1
2018-07-03 14:27:01 -07:00
Min RK
55f58b3ba7
review, note proxy prefix fix
2018-07-03 15:12:30 +02:00
Min RK
e1f93a4721
Merge pull request #2009 from BerserkerTroll/patch-2
...
proxy.py: Respect base_url in add_hub_route
2018-07-03 13:36:48 +02:00
Min RK
2e95f3c039
Merge branch 'master' into patch-2
2018-07-03 13:29:54 +02:00
Min RK
b0ba51f209
host-based routing doesn't support wildcards
2018-07-03 12:27:24 +02:00
Min RK
89e6c2110e
add hub.routespec
...
this is the routespec for sending requests to the hub
It is [host]/prefix/ (not /hub/) so it receives all
requests, not just those destined for the hub
2018-07-03 12:05:21 +02:00
Min RK
7dfdc23b4e
Prepare changelog for 0.9.1
2018-07-03 11:44:37 +02:00
Min RK
4c7df53a8a
Merge pull request #2020 from weatherforce/master
...
Fix a couple of typos in the technical reference documentation
2018-07-03 11:23:36 +02:00
Alex Marandon
678afd3783
Fix a couple of typos
2018-07-03 11:16:55 +02:00
Carol Willing
0185a08f32
Merge pull request #2015 from minrk/allow_remote
...
disable host checking in upcoming notebook app
2018-07-02 08:45:41 -07:00
Tim Head
f3787dd2c8
Merge pull request #2016 from minrk/spawner-docs
...
mention get_env and get_args in spawner reference
2018-06-30 09:59:38 +02:00
Min RK
30f19cfc8c
mention get_env and get_args in spawner reference
...
these are important and usually required (especially get_env) for custom Spawner implementations
2018-06-29 14:46:08 +02:00
Min RK
a84fa38c6b
ensure prefix is on next_url in test_pages
2018-06-29 14:21:32 +02:00
Min RK
867ce4c213
use app.base_url in Proxy.check_routes
...
rather than assuming '/'
2018-06-29 14:19:20 +02:00
Min RK
005118e09d
disable upcoming host checking in single-user notebook application
2018-06-29 11:55:47 +02:00
Carol Willing
04ce67ee71
add python 3.7 to travis
2018-06-28 08:47:04 -07:00
Min RK
31807929cb
update test expectations for proxy state
...
expect app.base_url instead of unconditional ‘/‘
2018-06-27 12:46:13 +02:00
Min RK
cb4105b53e
Merge pull request #2012 from josemonsalve2/master
...
c.LocalProcessSpawner.shell_cmd configuration option does not work
2018-06-27 12:39:19 +02:00
Carol Willing
151887dd56
Merge pull request #2008 from minrk/services-localhost
...
managed services always talk to hub on localhost
2018-06-26 12:07:29 -07:00
Carol Willing
5f97487184
Merge pull request #2001 from minrk/auto-spawn-api
...
avoid triggering a spawn from API requests to a not-running server
2018-06-26 12:04:10 -07:00
Carol Willing
4d2d677777
Merge pull request #1996 from minrk/proxy-cleanup
...
use pid file to check for previous proxy instances
2018-06-26 12:02:54 -07:00
Jose M Monsalve Diaz
6a3b3807c9
fixing shell_cmd attribute of the LocalProcessSpawner that was not tag for configuration
2018-06-25 17:07:39 -04:00
Min RK
02a52a0289
Merge pull request #1997 from gesiscss/master
...
fix wrong/missing closing tags in templates
2018-06-25 12:54:36 +02:00
BerserkerTroll
7bd1e387df
proxy.py: Respect base_url in add_hub_route
2018-06-24 17:22:43 +03:00
Min RK
edc0d7901f
services always talk to hub on localhost
...
When the Hub listens on all ips by default, the connection ip is the hostname.
in some cases (e.g. certain kubernetes deployments) the hub’s container’s hostname is not connectable from itself, preventing managed services from connecting to the hub.
This ensures that managed service processes talk to the hub over localhost in this case, rather than via the hostname.
2018-06-22 13:48:34 +02:00
Min RK
8e561f1c12
avoid triggering a spawn from API requests to a not-running server
...
this avoids left-open notebook tabs from respawning a culled server indefinitely
2018-06-20 14:57:41 +02:00
Kenan Erdogan
24d87c882f
fix wrong/missing closing tags in templates
2018-06-19 09:15:18 +02:00
Min RK
1e333e2f29
Merge pull request #1992 from willingc/doc-toc
...
add templates and user env docs to home page index
2018-06-18 15:45:52 +02:00
Carol Willing
a507fa1c8a
add templates and user env docs to home page index
2018-06-16 10:21:33 -07:00
Min RK
90cc03b3ec
back to dev
2018-06-15 15:39:02 +02:00
Min RK
6f15113e2a
link and date for 0.9.0
0.9.0
2018-06-15 15:36:48 +02:00