nebula-notebook 0.2.44 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +18 -3
- package/dist/assets/{errorwidget-BPSbuKot.js → errorwidget-DsdJi3CP.js} +1 -1
- package/dist/assets/{index-D4OyDYHa.js → index-7dzBRqjB.js} +1 -1
- package/dist/assets/{index-i6-VDHlg.js → index-BYLhtrxB.js} +1 -1
- package/dist/assets/{index-BaABO0Mr.js → index-CGUaqGiE.js} +1 -1
- package/dist/assets/index-D7GWSc_e.js +872 -0
- package/dist/assets/index-FTP7YTVP.css +32 -0
- package/dist/assets/{services-shim-CeNGM1z_.js → services-shim-B6rclDoU.js} +1 -1
- package/dist/index.html +2 -2
- package/node-server/dist/auth/auth-middleware.d.ts +8 -1
- package/node-server/dist/auth/auth-middleware.js +8 -2
- package/node-server/dist/auth/auth-service.d.ts +22 -3
- package/node-server/dist/auth/auth-service.js +47 -22
- package/node-server/dist/auth/nebula-dir.d.ts +7 -0
- package/node-server/dist/auth/nebula-dir.js +47 -0
- package/node-server/dist/auth/passkeys.d.ts +133 -0
- package/node-server/dist/auth/passkeys.js +374 -0
- package/node-server/dist/index.js +7 -10
- package/node-server/dist/routes/auth.d.ts +12 -1
- package/node-server/dist/routes/auth.js +131 -3
- package/node-server/package.json +1 -0
- package/package.json +3 -1
- package/dist/assets/index-BnQLGXqd.js +0 -857
- package/dist/assets/index-e_C_qM9S.css +0 -32
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Jian Zhou
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -217,14 +217,29 @@ npm run mcp
|
|
|
217
217
|
|
|
218
218
|
## Authentication
|
|
219
219
|
|
|
220
|
-
Nebula uses TOTP-based two-factor authentication:
|
|
220
|
+
Nebula uses TOTP-based two-factor authentication, with passkeys as an optional faster way in:
|
|
221
221
|
|
|
222
222
|
1. **First Start**: QR code printed to terminal - scan with authenticator app
|
|
223
|
-
2. **Login**: Enter 6-digit code in browser
|
|
224
|
-
3. **
|
|
223
|
+
2. **Login**: Enter 6-digit code in browser (or use a passkey once you have enrolled one)
|
|
224
|
+
3. **Session**: 30 days by default ("Keep me signed in on this device" is pre-checked); untick it for a 24-hour session
|
|
225
225
|
|
|
226
226
|
Config stored in `~/.nebula/auth.json`. Multiple servers sharing the same home directory share the same 2FA.
|
|
227
227
|
|
|
228
|
+
### Passkeys / biometrics
|
|
229
|
+
|
|
230
|
+
After signing in with a code once, open **Settings → Security → Add this device** to enroll a passkey
|
|
231
|
+
(Touch ID, Face ID, Windows Hello, or a security key). The login screen then offers **Sign in with
|
|
232
|
+
passkey**; the code stays available as the fallback. Passkey logins always get the 30-day session.
|
|
233
|
+
|
|
234
|
+
- Passkeys are stored in `~/.nebula/passkeys.json` (mode 0600, public keys only — nothing secret).
|
|
235
|
+
- A passkey is bound to the **hostname** you enroll it at (the WebAuthn rpID). Through an ssh tunnel that is
|
|
236
|
+
`localhost`, so a passkey enrolled from one laptop's tunnel works from another laptop's tunnel to the same
|
|
237
|
+
server when the platform syncs it (iCloud Keychain, Google Password Manager). A passkey enrolled at a
|
|
238
|
+
domain name is only offered at that domain.
|
|
239
|
+
- Open Nebula as **`http://localhost:PORT`, not `http://127.0.0.1:PORT`** — WebAuthn does not allow an IP
|
|
240
|
+
address as the rpID, and the server refuses to enroll or offer passkeys there (with that hint).
|
|
241
|
+
`localhost` counts as a secure context, so no TLS is needed for the tunnel case.
|
|
242
|
+
|
|
228
243
|
To print the QR code again later (for re-enroll/recovery), run:
|
|
229
244
|
|
|
230
245
|
```bash
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d,L as c,D as l,E as a}from"./services-shim-
|
|
1
|
+
import{a as d,L as c,D as l,E as a}from"./services-shim-B6rclDoU.js";function h(t,s){class n extends l{constructor(r,i){r=Object.assign(Object.assign({},r),{_view_name:"ErrorWidgetView",_view_module:"@jupyter-widgets/base",_model_module_version:a,_view_module_version:a,msg:s,error:t}),super(r,i),this.comm_live=!0}}return n}class g extends d{generateErrorMessage(){return{msg:this.model.get("msg"),stack:String(this.model.get("error").stack)}}render(){const{msg:s,stack:n}=this.generateErrorMessage();this.el.classList.add("jupyter-widgets");const e=document.createElement("div");e.classList.add("jupyter-widgets-error-widget","icon-error"),e.innerHTML=c;const r=document.createElement("pre");r.style.textAlign="center",r.innerText="Click to show javascript error.",e.append(r),this.el.appendChild(e);let i,o;this.el.onclick=()=>{e.classList.contains("icon-error")&&(o=o||e.clientHeight,i=i||e.clientWidth,e.classList.remove("icon-error"),e.innerHTML=`
|
|
2
2
|
<pre>[Open Browser Console for more detailed log - Double click to close this message]
|
|
3
3
|
${s}
|
|
4
4
|
${n}</pre>
|