kartykp-takedown-drill 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 +23 -2
  2. package/index.js +5 -0
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # kartykp-takedown-drill
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 **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** with the `drill` dist-tag, so `latest` stays on `1.0.0`.
8
+ 2. npm/gatekeeper's `takedown-drill` spec (00:13 UTC) takes that version down
9
+ through the deployed dumbledore with `malware rm-versions`, checks it is gone
10
+ and archived, restores it with `malware rollback-version`, and checks it is
11
+ back.
12
+ 3. The takedown deletes the OIDC trusted-publisher config, because that is what a
13
+ real takedown does to an attacker's CI. Gatekeeper recreates it so the next
14
+ night's publish works.
15
+
16
+ Versions are OIDC-published, so the takedown never deactivates a user account.
17
+
18
+ Gatekeeper creates the package (`1.0.0`) and its trusted-publisher config on its
19
+ first enabled run if they are missing:
20
+
21
+ - owner: `npm`
22
+ - repository: `personal`
23
+ - workflow: `kartykp_takedown_drill_publish.yml`
24
+ - environment: blank
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ 'use strict'
2
+
3
+ module.exports = function takedownDrill() {
4
+ return 'kartykp-takedown-drill'
5
+ }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "kartykp-takedown-drill",
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. Versions are 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
+ }