@plasius/oauth2-core 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -14,6 +14,32 @@
14
14
  - **Security**
15
15
  - (placeholder)
16
16
 
17
+ ## [0.1.2] - 2026-09-13
18
+
19
+ ### Changed
20
+ - Refresh compatible npm dependencies from the registry for the weekly dependency maintenance wave.
21
+
22
+
23
+ - **Added**
24
+ - (placeholder)
25
+
26
+ - **Changed**
27
+ - Bound npm publication to the exact prepared `main` commit after successful push-triggered CI.
28
+ - (placeholder)
29
+
30
+ - **Fixed**
31
+ - Added exact-commit CI dispatch and disabled package-manager cache finalization in both hosted validation jobs.
32
+ - (placeholder)
33
+
34
+ - **Security**
35
+ - Updated Vitest and its coverage adapter to 4.1.11, clearing the redirect-mock path traversal advisory.
36
+ - Removed the npm write-token path, added a fail-closed npm 11.5.1-or-newer OIDC guard, and denied fork PR code access to reviewed CI.
37
+ - Pinned patched transitive npm dependencies to clear the current audit baseline.
38
+ - Moved reviewed CI to explicit GitHub-hosted runners while retaining the same-repository pull-request guard.
39
+ - Added fail-closed source and npm-package admission for the administrative contributor registry and pinned the CI/CD runtime to Node.js 24.18.0 LTS.
40
+ - Updated the release dependency lock to resolve the current npm audit findings.
41
+ - (placeholder)
42
+
17
43
  ## [0.1.1] - 2026-07-12
18
44
 
19
45
  - **Added**
@@ -37,3 +63,4 @@
37
63
 
38
64
  [0.1.0]: https://github.com/Plasius-LTD/oauth2-core/releases/tag/v0.1.0
39
65
  [0.1.1]: https://github.com/Plasius-LTD/oauth2-core/releases/tag/v0.1.1
66
+ [0.1.2]: https://github.com/Plasius-LTD/oauth2-core/releases/tag/v0.1.2
package/README.md CHANGED
@@ -61,3 +61,16 @@ npm run pack:check
61
61
  ## License
62
62
 
63
63
  Apache-2.0
64
+
65
+ <!-- BEGIN PLASIUS RELEASE INTEGRITY -->
66
+ ## Release integrity
67
+
68
+ CI keeps the administrative contributor registry outside Git and npm package
69
+ artifacts using exact, case-normalised path checks. CI runs on approved
70
+ GitHub-hosted runners for same-repository pull requests and `main`, with
71
+ package-manager cache finalization disabled; fork PR code is denied.
72
+ Publication uses the GitHub-hosted `production` job with Node 24 and a pinned
73
+ npm 11.6.2 client. It is token-free and proceeds only while the prepared SHA
74
+ is the exact `main` head after successful push-triggered CI. Do not dispatch CD
75
+ until the npm trusted-publisher binding is verified.
76
+ <!-- END PLASIUS RELEASE INTEGRITY -->
@@ -0,0 +1,28 @@
1
+ # ADR-0002: Hosted OIDC Package Publication
2
+
3
+ - Status: Accepted
4
+ - Date: 2026-08-11
5
+
6
+ ## Context
7
+
8
+ `@plasius/oauth2-core` must publish without a long-lived npm write token and without
9
+ accepting CI evidence for another source snapshot.
10
+
11
+ ## Decision
12
+
13
+ Publication is phase-isolated: dependency installation, package validation, SBOM generation, and immutable tarball packing run in `validate_and_pack` without the `production` environment or OIDC permission. The final hosted `publish` job downloads only that sealed artifact, explicitly installs npm 11.6.2, runs no repository dependency code, and publishes the tarball with lifecycle scripts disabled. It re-fetches current `main` immediately before the first release mutation and again immediately before npm publication. `.npmrc` contains no registry-auth placeholder, and release preparation returns the reviewed current `main` HEAD rather than package-file history.
14
+
15
+ Publish only from the GitHub-hosted `production` job using npm trusted
16
+ publishing. Prove the prepared SHA is still the exact remote `main` head and
17
+ that push-triggered `ci.yml` succeeded for it. Require Node 24 and npm 11.5.1 or
18
+ newer, request provenance, and prohibit npm write-token fallbacks. Reviewed CI
19
+ uses explicit GitHub-hosted runners; fork PR code is denied.
20
+
21
+ ## Consequences
22
+
23
+ Missing trust configuration, moved `main`, absent CI, unsupported runtime, or
24
+ missing OIDC identity fails closed before publication.
25
+
26
+ ## Test implications
27
+
28
+ Workflow tests enforce source, CI, runtime, identity, runner, and token rules.
@@ -1,3 +1,4 @@
1
1
  # ADR Index
2
2
 
3
3
  - [ADR 0001: OAuth 2 Core Package Boundary](./adr-0001-oauth2-core-package-boundary.md)
4
+ - [ADR-0002: Hosted OIDC Package Publication](./adr-0002-hosted-oidc-package-publication.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/oauth2-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Standards-focused OAuth 2.1, PKCE, metadata, and bearer-token primitives for Plasius services.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -66,13 +66,13 @@
66
66
  "@types/node": "^25.7.0",
67
67
  "@typescript-eslint/eslint-plugin": "^8.59.3",
68
68
  "@typescript-eslint/parser": "^8.59.3",
69
- "@vitest/coverage-v8": "^4.1.6",
69
+ "@vitest/coverage-v8": "^4.1.11",
70
70
  "eslint": "^10.3.0",
71
71
  "globals": "^17.6.0",
72
72
  "rimraf": "^6.1.3",
73
73
  "tsup": "^8.5.1",
74
74
  "typescript": "^6.0.3",
75
- "vitest": "^4.1.6"
75
+ "vitest": "^4.1.11"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public"
@@ -89,5 +89,10 @@
89
89
  ],
90
90
  "engines": {
91
91
  "node": ">=24"
92
+ },
93
+ "overrides": {
94
+ "brace-expansion": "5.0.9",
95
+ "nanoid": "3.3.18",
96
+ "esbuild": "^0.28.1"
92
97
  }
93
98
  }
@@ -1,2 +0,0 @@
1
- type,github_handle,full_name,company,email,date,approver
2
- corporate,Zephod111r,Phillip Hounslow,Plasius LTD,zephod@plasius.co.uk,2025-09-12,Phillip Hounslow (Maintainer)