nestjs-web-repl 2.0.0 → 2.0.1
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/README.md +10 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,19 +7,18 @@ so `get(SomeService)`, `resolve(...)`, `select(...)`, and friends all work exact
|
|
|
7
7
|
they do in the local REPL — except reachable over HTTP, from anywhere, against a
|
|
8
8
|
running server.
|
|
9
9
|
|
|
10
|
-
> ## ⚠️ Security
|
|
10
|
+
> ## ⚠️ Security
|
|
11
11
|
>
|
|
12
|
-
>
|
|
13
|
-
>
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
> built-in safety rail, and it is a blunt boolean — it does not check who is
|
|
17
|
-
> asking.
|
|
12
|
+
> These endpoints run arbitrary code inside your app, with the full privileges of
|
|
13
|
+
> your Node process. That's the whole point — it's a debugging tool — and it's
|
|
14
|
+
> also the risk: anyone who can reach an enabled endpoint can run anything your
|
|
15
|
+
> app can.
|
|
18
16
|
>
|
|
19
|
-
>
|
|
20
|
-
>
|
|
21
|
-
> [Securing it](#securing-it)
|
|
22
|
-
>
|
|
17
|
+
> The module ships no authentication of its own; `enabled` is an on/off switch,
|
|
18
|
+
> not a lock. Control access yourself: gate `enabled` behind an environment
|
|
19
|
+
> variable and put your own guard in front of the routes ([Securing it](#securing-it)).
|
|
20
|
+
>
|
|
21
|
+
> Guarded and on a trusted network, it's a safe way to inspect a running app.
|
|
23
22
|
|
|
24
23
|
## Install
|
|
25
24
|
|