@dudousxd/nestjs-authz-mikro-orm 0.7.0 → 0.8.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/CHANGELOG.md +22 -0
- package/README.md +20 -6
- package/dist/authz-rbac.module.d.ts.map +1 -1
- package/dist/authz-rbac.module.js +12 -0
- package/dist/authz-rbac.module.js.map +1 -1
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @dudousxd/nestjs-authz-mikro-orm
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#67](https://github.com/DavideCarvalho/nestjs-authz/pull/67) [`32e967f`](https://github.com/DavideCarvalho/nestjs-authz/commit/32e967ffbcd68a97e8effc77af9c16bbbafdc918) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Run on `@dudousxd/nestjs-authz` 0.9 and `@nestjs/authorization`: persisted roles and
|
|
8
|
+
permissions now guard routes through the official guard as the core's `RolePolicy` /
|
|
9
|
+
`PermissionPolicy` (`@Roles('editor')`, `@Permission('posts.publish')`), and the guard and the
|
|
10
|
+
handler's `Gate` calls share one permission and role fetch per request. The store API
|
|
11
|
+
(role sources, admin management, tenant-scoped roles where supported) and `AuthzRbacModule`
|
|
12
|
+
are unchanged. A persisted permission named like a policy ability no longer bypasses that
|
|
13
|
+
policy (see the core changeset). Requires NestJS 12, `@nestjs/authorization` ^0.1.3 and Node 22+.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#67](https://github.com/DavideCarvalho/nestjs-authz/pull/67) [`32e967f`](https://github.com/DavideCarvalho/nestjs-authz/commit/32e967ffbcd68a97e8effc77af9c16bbbafdc918) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Fix packages that could be published without files their `exports` point to. `tsc` builds no longer use a `.tsbuildinfo` that can outlive `dist/` and skip emitting files. A new `check:exports` step (also `prepack`) fails the release if any `exports`/`main`/`types` path is missing.
|
|
18
|
+
|
|
19
|
+
## 0.7.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#66](https://github.com/DavideCarvalho/nestjs-authz/pull/66) [`d5fdd23`](https://github.com/DavideCarvalho/nestjs-authz/commit/d5fdd23a2b72ae61fae0f913f11164bc4d2df77b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Authorization checks within one request no longer hit the database per check. The Gate memoizes `resolveUser`, the permission set and the provider roles on the request context (keyed by the row a user names, its class or `type` plus `id`, so ORMs without an identity map share entries; a plain object without `type` is keyed by identity, so two users that only share an `id` never share an entry), and compiles the granted set once so a check is a hash lookup plus a scan of the wildcard grants. Providers can set the optional `exhaustivePermissions` flag to say `getPermissions` lists everything `hasPermission` grants; the ORM adapters do, and the MikroORM and Prisma providers now expose `getPermissions` (so persisted wildcard grants such as `posts.*` match there too). Grants changed mid-request apply from the next request.
|
|
24
|
+
|
|
3
25
|
## 0.7.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @dudousxd/nestjs-authz-mikro-orm
|
|
2
2
|
|
|
3
3
|
MikroORM RBAC persistence for [`@dudousxd/nestjs-authz`](https://github.com/DavideCarvalho/nestjs-authz) —
|
|
4
|
-
roles
|
|
4
|
+
roles and permissions for the official `@nestjs/authorization` policies, with **zero connection ownership** (your app owns the
|
|
5
5
|
`EntityManager`; this package never opens a connection).
|
|
6
6
|
|
|
7
7
|
This is the MikroORM sibling of `@dudousxd/nestjs-authz-typeorm`: identical store surface
|
|
@@ -15,7 +15,7 @@ separate `@mikro-orm/decorators` package), so no extra peer is required.
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
pnpm add @dudousxd/nestjs-authz-mikro-orm @dudousxd/nestjs-authz @mikro-orm/core @mikro-orm/nestjs
|
|
18
|
+
pnpm add @dudousxd/nestjs-authz-mikro-orm @dudousxd/nestjs-authz @nestjs/authorization @mikro-orm/core @mikro-orm/nestjs
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Entities
|
|
@@ -110,16 +110,30 @@ import { EntityManager } from '@mikro-orm/core';
|
|
|
110
110
|
export class AppModule {}
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
Once wired,
|
|
113
|
+
Once wired, persisted roles and permissions guard routes through the official
|
|
114
|
+
`@nestjs/authorization` guard, as the core's `RolePolicy` / `PermissionPolicy`:
|
|
114
115
|
|
|
115
116
|
```ts
|
|
116
|
-
await store.givePermissionToRole('editor', 'posts
|
|
117
|
+
await store.givePermissionToRole('editor', 'posts.*');
|
|
117
118
|
await store.assignRole({ type: 'user', id: 7 }, 'editor');
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
@Permission('posts.publish') // posts.* grants it
|
|
121
|
+
@Can(PermissionPolicy, 'has', permission('posts.publish')) // the same, spelled out
|
|
122
|
+
@Roles('editor') // @Can(RolePolicy, 'has', roles('editor'))
|
|
121
123
|
```
|
|
122
124
|
|
|
125
|
+
and in services, through the `Gate`:
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
gate.forUser(user).allows('posts.publish'); // true (PERMISSION_PROVIDER seam)
|
|
129
|
+
gate.forUser(user).allows(PermissionPolicy, 'has', 'posts.publish');
|
|
130
|
+
gate.forUser(user).hasRole('editor'); // true (ROLE_PROVIDER seam)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
The user is the one the official guard reads (`AuthorizationModule.forRoot({ getUser })`,
|
|
134
|
+
default `request.user`), mapped to a store ref with `userRefFrom` (default `{ type, id }` or
|
|
135
|
+
`{ id }`).
|
|
136
|
+
|
|
123
137
|
## Schema
|
|
124
138
|
|
|
125
139
|
`autoCreateSchema` (default `true`) runs `ensureAuthzSchema` on `onModuleInit` via MikroORM's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-rbac.module.d.ts","sourceRoot":"","sources":["../src/authz-rbac.module.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,KAAK,aAAa,EAQnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,sFAAsF;AACtF,eAAO,MAAM,gBAAgB,eAAuD,CAAC;AACrF,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,eAAyD,CAAC;AAEzF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,2EAA2E;IAC3E,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,sBAAsB,CAAC,GAAG,sBAAsB,CAAC;CAC9F;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAOvE;
|
|
1
|
+
{"version":3,"file":"authz-rbac.module.d.ts","sourceRoot":"","sources":["../src/authz-rbac.module.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,KAAK,aAAa,EAQnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,sFAAsF;AACtF,eAAO,MAAM,gBAAgB,eAAuD,CAAC;AACrF,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,eAAyD,CAAC;AAEzF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,2EAA2E;IAC3E,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,sBAAsB,CAAC,GAAG,sBAAsB,CAAC;CAC9F;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAOvE;AAoED;;;;;;GAMG;AACH,qBACa,eAAe;IAC1B,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa;IAa9D,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,2BAA2B,GAAG,aAAa;IAsBxE,OAAO,CAAC,MAAM,CAAC,eAAe;CAS/B"}
|
|
@@ -36,6 +36,8 @@ export function defaultUserRefMapper(user) {
|
|
|
36
36
|
*/
|
|
37
37
|
let RbacPermissionProvider = class RbacPermissionProvider {
|
|
38
38
|
options;
|
|
39
|
+
// `getPermissions` lists every grant `hasPermission` can find, for any resource.
|
|
40
|
+
exhaustivePermissions = true;
|
|
39
41
|
constructor(options) {
|
|
40
42
|
this.options = options;
|
|
41
43
|
}
|
|
@@ -50,6 +52,16 @@ let RbacPermissionProvider = class RbacPermissionProvider {
|
|
|
50
52
|
return undefined;
|
|
51
53
|
return this.options.store.userHasPermission(ref, permission);
|
|
52
54
|
}
|
|
55
|
+
// Expose the user's full granted permission set so the core can apply
|
|
56
|
+
// Laravel/spatie-style wildcard matching (a granted `posts.*` satisfies a check
|
|
57
|
+
// for `posts.update`, `*` satisfies anything) and fetch it once per request.
|
|
58
|
+
async getPermissions(user) {
|
|
59
|
+
const map = this.options.userRefFrom ?? defaultUserRefMapper;
|
|
60
|
+
const ref = map(user);
|
|
61
|
+
if (ref === undefined)
|
|
62
|
+
return undefined;
|
|
63
|
+
return this.options.store.getPermissionsForUser(ref);
|
|
64
|
+
}
|
|
53
65
|
};
|
|
54
66
|
RbacPermissionProvider = __decorate([
|
|
55
67
|
Injectable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-rbac.module.js","sourceRoot":"","sources":["../src/authz-rbac.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EACL,mBAAmB,EAEnB,aAAa,GAEd,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,MAAM,EACN,UAAU,EACV,MAAM,EAEN,QAAQ,GAGT,MAAM,gBAAgB,CAAC;AAGxB,sFAAsF;AACtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;AACrF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AA6BzF,qFAAqF;AACrF,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,SAAS,CAAC;IACnC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACtE,MAAM,CAAC,GAAG,IAAwC,CAAC;IACnD,IAAI,CAAC,CAAC,EAAE,IAAI,IAAI;Q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e,CAAC,eAAe,EAAE;aACrC;YACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,CAAC;SAChE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAAoC;QACtD,OAAO;YACL,MAAM,EAAE,iBAAe;YACvB,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAoB;YACnD,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,kBAAkB;oBAC3B,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,MAAM,EAAE,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAyB;iBACvD;gBACD;oBACE,OAAO,EAAE,gBAAgB;oBACzB,UAAU,EAAE,CAAC,IAA4B,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK;oBACxD,MAAM,EAAE,CAAC,kBAAkB,CAAC;iBAC7B;gBACD,GAAG,iBAAe,CAAC,eAAe,EAAE;aACrC;YACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,CAAC;SAChE,CAAC;IACJ,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,OAAO;YACL,sBAAsB;YACtB,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,sBAAsB,EAAE;YACrE,gBAAgB;YAChB,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE;YACzD,kBAAkB;SACnB,CAAC;IACJ,CAAC;CACF,CAAA;AA7CY,eAAe;IAD3B,MAAM,CAAC,EAAE,CAAC;GACE,eAAe,CA6C3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-authz-mikro-orm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MikroORM RBAC persistence for @dudousxd/nestjs-authz — roles, permissions, and a Gate seam (zero connection ownership).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,11 +38,12 @@
|
|
|
38
38
|
"CHANGELOG.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@dudousxd/nestjs-authz": ">=0.
|
|
41
|
+
"@dudousxd/nestjs-authz": ">=0.9.0 <0.10.0",
|
|
42
42
|
"@mikro-orm/core": "^6.0.0 || ^7.0.0",
|
|
43
43
|
"@mikro-orm/nestjs": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
44
|
-
"@nestjs/
|
|
45
|
-
"@nestjs/
|
|
44
|
+
"@nestjs/authorization": "^0.1.3",
|
|
45
|
+
"@nestjs/common": "^12.0.0",
|
|
46
|
+
"@nestjs/core": "^12.0.0",
|
|
46
47
|
"reflect-metadata": ">=0.1.13"
|
|
47
48
|
},
|
|
48
49
|
"peerDependenciesMeta": {
|
|
@@ -54,21 +55,22 @@
|
|
|
54
55
|
"@mikro-orm/better-sqlite": "6.6.16",
|
|
55
56
|
"@mikro-orm/core": "6.6.16",
|
|
56
57
|
"@mikro-orm/nestjs": "6.1.2",
|
|
58
|
+
"@nestjs/authorization": "0.1.3",
|
|
57
59
|
"@nestjs/common": "12.0.1",
|
|
58
60
|
"@nestjs/core": "12.0.1",
|
|
59
61
|
"@nestjs/testing": "12.0.1",
|
|
60
|
-
"@types/node": "20.
|
|
62
|
+
"@types/node": "22.20.5",
|
|
61
63
|
"reflect-metadata": "0.2.2",
|
|
62
64
|
"rxjs": "7.8.2",
|
|
63
65
|
"typescript": "5.9.3",
|
|
64
66
|
"vitest": "3.2.7",
|
|
65
|
-
"@dudousxd/nestjs-authz": "^0.
|
|
67
|
+
"@dudousxd/nestjs-authz": "^0.9.0"
|
|
66
68
|
},
|
|
67
69
|
"engines": {
|
|
68
|
-
"node": ">=
|
|
70
|
+
"node": ">=22"
|
|
69
71
|
},
|
|
70
72
|
"scripts": {
|
|
71
|
-
"build": "tsc -p tsconfig.json",
|
|
73
|
+
"build": "tsc -p tsconfig.json --incremental false",
|
|
72
74
|
"test": "vitest run --passWithNoTests",
|
|
73
75
|
"test:watch": "vitest",
|
|
74
76
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|