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.
Files changed (3) hide show
  1. package/README.md +21 -2
  2. package/index.js +5 -0
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # kartykp-takedown-drill-pkg
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
@@ -0,0 +1,5 @@
1
+ 'use strict'
2
+
3
+ module.exports = function takedownDrill() {
4
+ return 'kartykp-takedown-drill-pkg'
5
+ }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "kartykp-takedown-drill-pkg",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
+ }