kartykp-takedown-drill-pkg 0.0.0-stage → 1.0.0
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 +21 -2
- package/index.js +5 -0
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kartykp-takedown-drill-pkg
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Synthetic package for the nightly malware **whole-package takedown drill**. Do not depend on it.
|
|
4
|
+
|
|
5
|
+
1. `.github/workflows/kartykp_takedown_drill_publish.yml` publishes a new
|
|
6
|
+
`1.0.<UTC timestamp>` version every night (23:40 UTC) through **OIDC trusted
|
|
7
|
+
publishing** as `latest`.
|
|
8
|
+
2. npm/gatekeeper's `takedown-drill` spec (00:13 UTC) takes the whole package
|
|
9
|
+
down through the deployed dumbledore with `malware rm-packages`, checks it is
|
|
10
|
+
gone, restores it with `dsr-rollback package`, and checks it is back.
|
|
11
|
+
|
|
12
|
+
`rm-packages` deactivates the publisher of `latest` unless it was published
|
|
13
|
+
through OIDC. Because `latest` is always the OIDC-published version, the
|
|
14
|
+
takedown never deactivates a user account. The drill checks this before
|
|
15
|
+
confirming.
|
|
16
|
+
|
|
17
|
+
One-time setup per registry: publish `1.0.0`, then add a trusted publisher:
|
|
18
|
+
|
|
19
|
+
- owner: `npm`
|
|
20
|
+
- repository: `personal`
|
|
21
|
+
- workflow: `kartykp_takedown_drill_publish.yml`
|
|
22
|
+
- environment: blank
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kartykp-takedown-drill-pkg",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Synthetic malware takedown drill package. The whole package is taken down and restored nightly by npm's gatekeeper. Do not depend on it.",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "npm",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "index.js"
|
|
9
|
+
}
|