@nocobase/audit 0.0.0-stage → 0.1.0-beta.1
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/LICENSE.txt +127 -0
- package/README.md +71 -2
- package/dist/config.d.ts +35 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +91 -0
- package/dist/config.js.map +1 -0
- package/dist/file-output.d.ts +26 -0
- package/dist/file-output.d.ts.map +1 -0
- package/dist/file-output.js +269 -0
- package/dist/file-output.js.map +1 -0
- package/dist/file-transport.d.ts +5 -0
- package/dist/file-transport.d.ts.map +1 -0
- package/dist/file-transport.js +88 -0
- package/dist/file-transport.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/ip.d.ts +4 -0
- package/dist/ip.d.ts.map +1 -0
- package/dist/ip.js +36 -0
- package/dist/ip.js.map +1 -0
- package/dist/locales/de-DE.d.ts +4 -0
- package/dist/locales/de-DE.d.ts.map +1 -0
- package/dist/locales/de-DE.js +11 -0
- package/dist/locales/de-DE.js.map +1 -0
- package/dist/locales/en-US.d.ts +13 -0
- package/dist/locales/en-US.d.ts.map +1 -0
- package/dist/locales/en-US.js +11 -0
- package/dist/locales/en-US.js.map +1 -0
- package/dist/locales/es-ES.d.ts +4 -0
- package/dist/locales/es-ES.d.ts.map +1 -0
- package/dist/locales/es-ES.js +11 -0
- package/dist/locales/es-ES.js.map +1 -0
- package/dist/locales/fr-FR.d.ts +4 -0
- package/dist/locales/fr-FR.d.ts.map +1 -0
- package/dist/locales/fr-FR.js +11 -0
- package/dist/locales/fr-FR.js.map +1 -0
- package/dist/locales/id-ID.d.ts +4 -0
- package/dist/locales/id-ID.d.ts.map +1 -0
- package/dist/locales/id-ID.js +11 -0
- package/dist/locales/id-ID.js.map +1 -0
- package/dist/locales/index.d.ts +4 -0
- package/dist/locales/index.d.ts.map +1 -0
- package/dist/locales/index.js +16 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/locales/ja-JP.d.ts +4 -0
- package/dist/locales/ja-JP.d.ts.map +1 -0
- package/dist/locales/ja-JP.js +11 -0
- package/dist/locales/ja-JP.js.map +1 -0
- package/dist/locales/ko-KR.d.ts +4 -0
- package/dist/locales/ko-KR.d.ts.map +1 -0
- package/dist/locales/ko-KR.js +11 -0
- package/dist/locales/ko-KR.js.map +1 -0
- package/dist/locales/pt-BR.d.ts +4 -0
- package/dist/locales/pt-BR.d.ts.map +1 -0
- package/dist/locales/pt-BR.js +11 -0
- package/dist/locales/pt-BR.js.map +1 -0
- package/dist/locales/ru-RU.d.ts +4 -0
- package/dist/locales/ru-RU.d.ts.map +1 -0
- package/dist/locales/ru-RU.js +11 -0
- package/dist/locales/ru-RU.js.map +1 -0
- package/dist/locales/vi-VN.d.ts +4 -0
- package/dist/locales/vi-VN.d.ts.map +1 -0
- package/dist/locales/vi-VN.js +11 -0
- package/dist/locales/vi-VN.js.map +1 -0
- package/dist/locales/zh-CN.d.ts +4 -0
- package/dist/locales/zh-CN.d.ts.map +1 -0
- package/dist/locales/zh-CN.js +11 -0
- package/dist/locales/zh-CN.js.map +1 -0
- package/dist/locales/zh-TW.d.ts +4 -0
- package/dist/locales/zh-TW.d.ts.map +1 -0
- package/dist/locales/zh-TW.js +11 -0
- package/dist/locales/zh-TW.js.map +1 -0
- package/dist/redact.d.ts +13 -0
- package/dist/redact.d.ts.map +1 -0
- package/dist/redact.js +167 -0
- package/dist/redact.js.map +1 -0
- package/dist/repository.d.ts +4 -0
- package/dist/repository.d.ts.map +1 -0
- package/dist/repository.js +22 -0
- package/dist/repository.js.map +1 -0
- package/dist/request.d.ts +76 -0
- package/dist/request.d.ts.map +1 -0
- package/dist/request.js +298 -0
- package/dist/request.js.map +1 -0
- package/dist/runtime.d.ts +13 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +81 -0
- package/dist/runtime.js.map +1 -0
- package/dist/service.d.ts +51 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +139 -0
- package/dist/service.js.map +1 -0
- package/package.json +61 -3
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Updated Date: November 16, 2026
|
|
2
|
+
|
|
3
|
+
NocoBase License Agreement
|
|
4
|
+
|
|
5
|
+
NOCOBASE PTE. LTD., a Singaporean Exempt Private Company Limited by Shares with its principal place of business located at 112 ROBINSON ROAD, #03-01, SINGAPORE ("The Company") https://www.nocobase.com/ issues this License Agreement ("Agreement") to you. You, as an individual or a company ("The User"), will be deemed to voluntarily accept all terms of this Agreement by using NocoBase (including but not limited to obtaining NocoBase source code, installation package, or image in any form, installing and using NocoBase, developing Applications with NocoBase, purchasing NocoBase commercial license and services). If the User does not agree to any term of this Agreement, or cannot accurately understand our interpretation of the relevant terms, please stop using it immediately.
|
|
6
|
+
|
|
7
|
+
This Agreement applies to any use, quotation, contract, invoice, and all software delivered by the Company. The User and the Company or NocoBase's agents need not sign a separate license agreement for the sale and delivery of the software.
|
|
8
|
+
|
|
9
|
+
This Agreement applies to NocoBase 3 and later versions. NocoBase 2 and earlier versions are independent products and remain subject to their original license agreement. Where a NocoBase 2 Commercial Edition user uses NocoBase 3 or later versions under a policy announced by the Company, that use is subject to this Agreement.
|
|
10
|
+
|
|
11
|
+
The Company reserves the right to formulate and modify this Agreement from time to time as needed. If there are changes, the Company will announce them in the form of website announcements, without further individual notification. The changed Agreement will automatically take effect once it is announced, becoming part of this Agreement.
|
|
12
|
+
|
|
13
|
+
==============
|
|
14
|
+
1. Definitions
|
|
15
|
+
==============
|
|
16
|
+
|
|
17
|
+
1.1 "Software" refers to NocoBase, including its application foundation (Core), its workspace for people and agents building software together (Studio), and the application templates, development standards, and development skills that come with them, together with their source code, installation packages, images, and all their modifications, updates, and upgrades.
|
|
18
|
+
|
|
19
|
+
1.2 "Community Edition" refers to the free version of the Software provided to the User as open source through public channels.
|
|
20
|
+
|
|
21
|
+
1.3 "Commercial Edition" refers to the paid version of the Software purchased by the User from the Company or its agents, downloaded through exclusive channels, with additional features and benefits. It consists of two versions: Professional Edition and Enterprise Edition.
|
|
22
|
+
|
|
23
|
+
1.4 "Application" refers to a specific business use case application serving internal or external customers of the User, developed based on the Software, such as ERP/CRM. Studio is a development tool and is not part of any Application.
|
|
24
|
+
|
|
25
|
+
1.5 "Customer" refers to the clients who commission the User to develop Applications or purchase the User's Applications.
|
|
26
|
+
|
|
27
|
+
1.6 "Agent" refers to an AI agent that works with the Software, including the coding agents the User uses to develop Applications and the business agents in Applications.
|
|
28
|
+
|
|
29
|
+
1.7 "Third-Party Services" refers to the large models, coding agents, cloud services, and other third-party products and services that the User chooses to use with the Software.
|
|
30
|
+
|
|
31
|
+
1.8 "Third-Party Open Source Software" refers to open source software provided with the Software. They are licensed through various published open source software licenses or copyright notices accompanying such software.
|
|
32
|
+
|
|
33
|
+
===================================
|
|
34
|
+
2. Intellectual Property Protection
|
|
35
|
+
===================================
|
|
36
|
+
|
|
37
|
+
Except for Third-Party Open Source Software, the Company owns all copyrights, trademark rights, patent rights, trade secrets, and other intellectual property rights of the Software, and has registered and protected them in relevant countries and regions according to the "Paris Convention" or "TRIPS Agreement", ensuring that the intellectual property rights of the Software are internationally recognized and protected.
|
|
38
|
+
|
|
39
|
+
The Company claims no intellectual property rights in the business code written by the User or by Agents when developing Applications, or in the User's business data, skills, and knowledge bases. The parts of the Software contained in an Application remain the intellectual property of the Company and are subject to this Agreement.
|
|
40
|
+
|
|
41
|
+
=============
|
|
42
|
+
3. Disclaimer
|
|
43
|
+
=============
|
|
44
|
+
|
|
45
|
+
3.1 The User shall not use the Software to engage in activities that contravene applicable laws and regulations or offend against public order or religious prohibitions. All legal liabilities and consequences arising from the User's use shall be borne by the User.
|
|
46
|
+
|
|
47
|
+
3.2 The Company shall not be liable for any direct, indirect, special, incidental, or consequential damages (including but not limited to loss of profits, business interruption, data loss, or business information disclosure) caused by the User's use of the Software, even if it has been previously informed of the possibility of such damages.
|
|
48
|
+
|
|
49
|
+
3.3 Code written, content generated, and actions taken by Agents shall be reviewed and accepted by the User before being used in production. All consequences arising from the use of the work of Agents shall be borne by the User.
|
|
50
|
+
|
|
51
|
+
3.4 Third-Party Services are chosen and paid for by the User and are subject to their own terms. The Company shall not be liable for the availability, output, or data handling of Third-Party Services.
|
|
52
|
+
|
|
53
|
+
===============
|
|
54
|
+
4. License Type
|
|
55
|
+
===============
|
|
56
|
+
|
|
57
|
+
4.1 This Agreement serves as the unified license agreement for NocoBase Software, applying to both the Community Edition and the Commercial Editions.
|
|
58
|
+
|
|
59
|
+
4.2 The Community Edition is open source software. This Agreement incorporates and references the full text of the Apache License, Version 2.0 ("Apache-2.0", available at: https://www.apache.org/licenses/LICENSE-2.0 ). Users of the Community Edition must comply with the Apache-2.0 License as well as the supplementary terms set forth in this Agreement. In case of any inconsistency between Apache-2.0 and this Agreement, the supplementary terms of this Agreement shall prevail.
|
|
60
|
+
|
|
61
|
+
4.3 The features that the Commercial Edition adds to the Community Edition are commercial software of the Company and are not licensed under Apache-2.0. They can only be used under the Commercial License and in accordance with this Agreement.
|
|
62
|
+
|
|
63
|
+
================================================
|
|
64
|
+
5. Rights and Obligations of Open Source License
|
|
65
|
+
================================================
|
|
66
|
+
|
|
67
|
+
5.1 The Community Edition can be used for commercial purposes, including developing Applications for Customers.
|
|
68
|
+
|
|
69
|
+
5.2 It is not allowed to remove or change the NocoBase statement "AI + NocoBase" and "Build reliable business systems", or its link to https://www.nocobase.com/, at the bottom left of the interface of any Application, including Applications delivered to Customers, even though the code that displays the statement is part of the Application. If the default layout is replaced, the statement shall be kept at an equally visible position on the main interface of the Application. Pages that can be accessed without signing in and pages embedded in other systems are not subject to this requirement. When the sidebar is collapsed, showing the statement as an icon with a tooltip, as provided by default, meets this requirement. The main LOGO in the upper left corner of the page, the version number, and other information on the interface can be changed.
|
|
70
|
+
|
|
71
|
+
5.3 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
|
|
72
|
+
|
|
73
|
+
5.4 It is not allowed to provide to the public any form of AI application development platform or agent development platform SaaS/PaaS products using the original or modified Software, including Studio.
|
|
74
|
+
|
|
75
|
+
5.5 It is not allowed to publicly release any plugin, skill, application template, or other extension that provides features identical or substantially similar to those of the Commercial Edition, whether free or paid and whether open source or not, including by publishing it to public code repositories, package registries, marketplaces, or websites, or by providing it to the public as a hosted service. The features of the Commercial Edition are as published on the Company's website. Developing and using such features for the User's own business, or providing them within Applications delivered to Customers, is not subject to this restriction.
|
|
76
|
+
|
|
77
|
+
===============================
|
|
78
|
+
6. Rights of Commercial License
|
|
79
|
+
===============================
|
|
80
|
+
|
|
81
|
+
6.1 Obtain a permanent commercial license of the Software.
|
|
82
|
+
|
|
83
|
+
6.2 Can develop Applications for Customers, deploy the completed Applications, including the Commercial Edition features they use, on Customers' servers, or host them and provide them to Customers as a service.
|
|
84
|
+
|
|
85
|
+
6.3 Customers can use the Commercial Edition features in the Applications delivered to them, within those Applications only, and can continue to develop those Applications on their own or through others.
|
|
86
|
+
|
|
87
|
+
6.4 Get software upgrades and exclusive technical support during the upgrade validity period. Upgrades and technical support are provided to the User only, and the User can upgrade the Applications delivered to Customers during this period.
|
|
88
|
+
|
|
89
|
+
6.5 The licensed Software can be used for commercial purposes with no restrictions on the number of Applications, Customers, users, and Agents.
|
|
90
|
+
|
|
91
|
+
6.6 Can remove or change the NocoBase statement described in 5.2, and the brand, name, link, and other information about NocoBase on the interface of Applications.
|
|
92
|
+
|
|
93
|
+
6.7 If there are other agreements in the contract for the above rights, the contract agreement shall prevail.
|
|
94
|
+
|
|
95
|
+
====================================
|
|
96
|
+
7. Obligations of Commercial License
|
|
97
|
+
====================================
|
|
98
|
+
|
|
99
|
+
7.1 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
|
|
100
|
+
|
|
101
|
+
7.2 It is not allowed to sell, transfer, lease, share, gift, or distribute the Commercial License. Deploying Applications for Customers under 6.2 is not considered sharing the Commercial License, but the license key, access token, or other credentials of the Commercial License shall not be provided to Customers for any purpose other than deploying and running the Applications delivered to them.
|
|
102
|
+
|
|
103
|
+
7.3 It is not allowed to sell, transfer, lease, share, or distribute any form of AI application development platform, agent development platform, or developer tools developed based on Software.
|
|
104
|
+
|
|
105
|
+
7.4 It is not allowed to provide any form of AI application development platform or agent development platform SaaS/PaaS products to the public using the original or modified Software, including Studio.
|
|
106
|
+
|
|
107
|
+
7.5 It is not allowed to publicly release any plugin, skill, application template, or other extension that provides features identical or substantially similar to those of the Commercial Edition, whether free or paid and whether open source or not, including by publishing it to public code repositories, package registries, marketplaces, or websites, or by providing it to the public as a hosted service. The features of the Commercial Edition are as published on the Company's website. Developing and using such features for the User's own business, or providing them within Applications delivered to Customers, is not subject to this restriction.
|
|
108
|
+
|
|
109
|
+
7.6 The Commercial Edition can only be used by the User holding the Commercial License, on servers owned or rented by the User. Except for delivering Applications under 6.2, it is not allowed to deploy the Commercial Edition for Customers, or to provide it to Customers or any third party in any form, including as a hosted service. Customers that need the Commercial Edition shall purchase their own Commercial License.
|
|
110
|
+
|
|
111
|
+
7.7 Customer personnel can take part in requirement confirmation, acceptance, and release approval in the User's Studio for the Applications the User develops for them. This is not considered providing the Commercial Edition to Customers, but it is not allowed to let Customers use the User's Studio to develop their own projects.
|
|
112
|
+
|
|
113
|
+
7.8 If there is a violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
|
|
114
|
+
|
|
115
|
+
7.9 If there are other agreements in the contract for the above obligations, the contract agreement shall prevail.
|
|
116
|
+
|
|
117
|
+
=============================================================
|
|
118
|
+
8. Legal Jurisdiction, Interpretation, and Dispute Resolution
|
|
119
|
+
=============================================================
|
|
120
|
+
|
|
121
|
+
8.1 Except for Mainland China, the interpretation, application, and all matters related to this agreement are subject to the jurisdiction of Singapore law.
|
|
122
|
+
|
|
123
|
+
8.2 Any dispute related to this Agreement should first be resolved through friendly negotiation. If the negotiation fails to resolve the dispute, the dispute should be submitted to the International Chamber of Commerce (ICC) for arbitration. The arbitration venue should be Singapore, conducted in English.
|
|
124
|
+
|
|
125
|
+
8.3 All terms and conditions of this Agreement shall be deemed enforceable to the maximum extent permitted by applicable law. If any term of this Agreement is deemed invalid by any applicable law, the invalidity of that term does not affect the validity of any other term of this Agreement, and it should be deemed that the invalid term has been modified as much as possible to make it valid and enforceable, or if the term cannot be modified, it should be deemed to have been deleted from this Agreement.
|
|
126
|
+
|
|
127
|
+
8.4 The arbitration award is final, binding on both parties, and can be enforced in any court with jurisdiction.
|
package/README.md
CHANGED
|
@@ -1,3 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NocoBase Audit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@nocobase/audit` provides request auditing, route declarations, and event delivery. The application supplies this package as a production dependency. The official application templates include its provider and the built-in `file` driver. An application assembled separately with `@nocobase/app-server` can add `AuditProvider` from `@nocobase/audit/runtime` with `app.addServiceProvider(AuditProvider)` in its server composition root. Add it after the other providers and runtime contributions so its transports close before the services they use. Register `defineAuditConfig()` from `@nocobase/audit` in the application config factories. Plugins that import its route declarations or service token declare a peer dependency on `@nocobase/audit`.
|
|
4
|
+
|
|
5
|
+
## Configuration
|
|
6
|
+
|
|
7
|
+
Add the `audit` section to the application's `config.yml`:
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
audit:
|
|
11
|
+
captureBody: false
|
|
12
|
+
redact:
|
|
13
|
+
fields:
|
|
14
|
+
- identityNumber
|
|
15
|
+
paths:
|
|
16
|
+
- profile.mobile
|
|
17
|
+
transports:
|
|
18
|
+
localFile:
|
|
19
|
+
driver: file
|
|
20
|
+
options:
|
|
21
|
+
path: logs/audit.jsonl
|
|
22
|
+
maxFileSizeMB: 50
|
|
23
|
+
retentionDays: 180
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
An application without destinations collects no audit events. With at least one destination, `audit.enabled` defaults to `true` and the app records explicitly declared operations. `audit.enabled: false` disables collection and delivery. `audit.autoDetect` defaults to `false`. Enable it to also record documented POST, PATCH, PUT, and DELETE operations that have an operation ID and are visible in the API document. An explicit `describeAudit(false)` excludes a route. A dynamic declaration that returns `undefined` leaves the route eligible for automatic detection. The audit provider reads generated Repository endpoint metadata before guards, records mutations, and excludes queries.
|
|
27
|
+
|
|
28
|
+
The app validates capture settings at startup. Restart it after changing them. Body capture requires an explicit `true` on the application or the route. An explicit `false` at either level always takes precedence. Leave both settings unset to collect events without request or response bodies. With body capture off, audit does not clone, read, or parse the bodies.
|
|
29
|
+
|
|
30
|
+
Use `redact: { fields: ['identityNumber'], paths: ['profile.mobile'] }` in app configuration or a route declaration. Fields match the exact name at any depth. Paths match from the root of each snapshot or structured target key. A named segment crosses array elements, as in `members.mobile`. An index such as `members.0.mobile` matches one position. Built-in credential masking and all additional rules apply before dispatch.
|
|
31
|
+
|
|
32
|
+
Audit uses `auth.advanced.ipAddress.trustedProxies` and `auth.advanced.ipAddress.ipAddressHeaders`. For a trusted socket peer, it tries the configured headers in order, defaulting to `X-Forwarded-For`, and walks each chain from right to left to its first untrusted address. Invalid proxy entries are skipped with a startup warning. An untrusted peer, an empty allowlist, or a chain with no usable client address results in the socket peer address.
|
|
33
|
+
|
|
34
|
+
### Rolling file output
|
|
35
|
+
|
|
36
|
+
The `path` sets a filename prefix. Use a `.jsonl` basename with letters, digits, underscores or hyphens before the extension. Relative paths must stay under application storage after resolving directory symlinks. Absolute paths are supported. The driver creates directories with mode `0700` and files with mode `0600` on POSIX, subject to the process umask. Use a private log directory owned exclusively by the application. Keep its parent paths out of the control of untrusted users and run the application with least privilege.
|
|
37
|
+
|
|
38
|
+
`rotating-file-stream` 4.0.0 appends JSON Lines and rolls segments by UTC date and size, independently of application logging. For `logs/audit.jsonl`, the first segment on November 26 UTC is `logs/audit.2026-11-26.000000.jsonl`. At startup the stream only considers the highest number for that date. A full segment advances the number. An incomplete tail triggers a warning and the next number, leaving the damaged segment in place until its retention period expires. Lower numbers stay archived on subsequent restarts. `maxFileSizeMB` defaults to 50 (50 × 1,048,576 bytes). A record that reaches or exceeds the limit stays whole in the current segment, and the stream then opens the next segment. Size and midnight rotation can leave an empty segment, even while the application is idle.
|
|
39
|
+
|
|
40
|
+
The library provides retention by count or total size. Audit uses the file's last modification time to keep each archive for at least `retentionDays`, which defaults to 180 days of 24 hours. Both options accept positive finite numbers. Cleanup runs in the background on startup and after rotation, including idle midnight rotation. It only removes expired, private regular files whose names match the target's prefix and segment format. It skips the current UTC day's segments, active files, links, other targets, and the legacy unsegmented file. Cleanup may occur after the retention threshold. Point readers at the new segmented names after upgrading. Configure each output path for one writer process. Destinations in that process that resolve to the same prefix share a stream and use the longest retention and smallest size limit registered while the output is open.
|
|
41
|
+
|
|
42
|
+
The library opens the path for append before audit checks that it is a regular file with one hard link and private POSIX permissions. This check is weaker than `O_NOFOLLOW`. For example, a symlink can cause the open to create an empty file outside the directory. The stream keeps its file handle open between writes. The directory and its parent paths must stay under trusted control while the handle is open.
|
|
43
|
+
|
|
44
|
+
Each shared stream takes one record at a time. A write settles after the stream callback and a byte-length check. The library hands bytes to the operating system without a disk sync. A failed or short write can leave an incomplete tail. Audit reports the failure, closes the stream, and recovers on a later write without replaying the failed record. The library can surface an idle rotation failure on the next write or during shutdown. The coordinator allows up to 64 pending writes per destination and uses a one-second delivery and shutdown deadline. Cancellation skips queued writes before submission. A submitted filesystem operation can finish after its deadline. Shutdown asks the stream to finish and waits for the handle and scheduled cleanup within the coordinator's deadline.
|
|
45
|
+
|
|
46
|
+
## Routes and transports
|
|
47
|
+
|
|
48
|
+
Audit events store the operation's declared name or its English default, with API summary and action as fallbacks. The name is independent of the request language. JSON Lines contains the event as recorded, including any `operationNameI18n` namespace and key.
|
|
49
|
+
|
|
50
|
+
The official templates contribute the lazy loader from `@nocobase/audit/locales` as a locales-only entry in their client plugin list. Custom applications can add the same entry with `defineClientPlugin({ packageName: '@nocobase/audit', locales: auditLocales })()` before client initialization. Installed business plugins provide their labels through their own locale contributions. Resolve `operationNameI18n` in the viewer's language, falling back to the stored `operationName`, then `action` for older events. The audit provider also registers the Repository labels on the server for localized exports.
|
|
51
|
+
|
|
52
|
+
Import `describeAudit` from `@nocobase/audit` and declare it alongside the route. Set an action, resource, and optional operation name for display. Use `target(context)` for identifiers available before guards and `resolveTargets(result, context)` for identifiers derived from a successful handler result. With body capture off, the resolver still receives the context and any in-process `value` the handler provides. Its `request` and `response` are then `undefined`. Even with capture on, content type or read and size bounds can make a JSON body unavailable. Use `auditRecordKey` to read optional values and return `undefined` when the target is unknown. Resolver errors leave the event with the pre-handler target, if available.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { auditRecordKey, describeAudit } from '@nocobase/audit';
|
|
56
|
+
|
|
57
|
+
const auditCustomerCreation = describeAudit({
|
|
58
|
+
action: 'customer.create',
|
|
59
|
+
captureBody: true,
|
|
60
|
+
redact: { fields: ['identityNumber'], paths: ['profile.mobile'] },
|
|
61
|
+
resolveTargets: ({ response }) => {
|
|
62
|
+
const id = auditRecordKey(response, 'data', 'id');
|
|
63
|
+
return id === undefined ? undefined : { collection: 'customers', key: id };
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
With the YAML example above, the application's `captureBody: false` keeps this route's bodies unavailable, and the resolver returns no target.
|
|
69
|
+
|
|
70
|
+
In a service provider's `register` or `boot`, resolve `auditServiceToken` and register the transport with `registerDriver({ name, createTransport })`. Configure each named destination under `audit.transports` with its driver and driver-specific options. The synchronous factory receives the options and `{ name, paths }`, with the application storage directory available as `paths.storageDir`. The transport implements `write(event, { signal })` and can implement `close()` to release resources. The application validates active destination names, drivers, and factory options at startup. The commercial audit plugin supplies the `database` driver, which can be configured alongside `file`.
|
|
71
|
+
|
|
72
|
+
The coordinator delivers independent copies of the sanitized event in parallel. It bounds pending writes, signals timeouts through `AbortSignal`, and invokes transport cleanup as part of shutdown. A transport failure leaves the HTTP response intact. Audit records the HTTP outcome after the handler runs, independently of the business transaction. A process failure can lose an event awaiting delivery.
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type AuditRedactRules } from './redact.js';
|
|
2
|
+
export type AuditFileOptions = {
|
|
3
|
+
readonly path: string;
|
|
4
|
+
readonly maxFileSizeMB?: number;
|
|
5
|
+
readonly retentionDays?: number;
|
|
6
|
+
};
|
|
7
|
+
export interface AuditDestinationConfig {
|
|
8
|
+
readonly driver: string;
|
|
9
|
+
readonly options?: Readonly<Record<string, unknown>>;
|
|
10
|
+
}
|
|
11
|
+
export interface AuditConfig {
|
|
12
|
+
readonly enabled?: boolean;
|
|
13
|
+
readonly autoDetect?: boolean;
|
|
14
|
+
/** Opt in to bounded JSON snapshots. A route can opt out, and false disables them for every route. */
|
|
15
|
+
readonly captureBody?: boolean;
|
|
16
|
+
/** Applied in addition to built-in credential masking and route rules. */
|
|
17
|
+
readonly redact?: AuditRedactRules;
|
|
18
|
+
readonly transports?: Readonly<Record<string, AuditDestinationConfig>>;
|
|
19
|
+
}
|
|
20
|
+
export declare const auditDefaults: Required<Pick<AuditConfig, 'enabled' | 'autoDetect'>>;
|
|
21
|
+
export declare function isAuditName(value: unknown): value is string;
|
|
22
|
+
export declare function validateAuditConfig(value: unknown, error: (path: string, message: string) => void): void;
|
|
23
|
+
export declare function defineAuditConfig(defaults?: AuditConfig): AuditConfigFactory;
|
|
24
|
+
export interface AuditConfigFactory {
|
|
25
|
+
(): AuditConfig;
|
|
26
|
+
readonly rules: {
|
|
27
|
+
readonly public: readonly string[];
|
|
28
|
+
readonly validators: readonly (typeof validateSection)[];
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
declare function validateSection(value: unknown, context: {
|
|
32
|
+
error(path: string, message: string): void;
|
|
33
|
+
}): void;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts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I,WAAW,CAAC;IAChB,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;QACnC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,OAAO,eAAe,CAAC,EAAE,CAAC;KAC1D,CAAC;CACH;AAED,iBAAS,eAAe,CACtB,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;IAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACtD,IAAI,CAEN"}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { validateAuditRedactRules } from './redact.js';
|
|
3
|
+
export const auditDefaults = {
|
|
4
|
+
enabled: true,
|
|
5
|
+
autoDetect: false,
|
|
6
|
+
};
|
|
7
|
+
const validName = /^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,63}$/u;
|
|
8
|
+
export function isAuditName(value) {
|
|
9
|
+
return typeof value === 'string' && validName.test(value);
|
|
10
|
+
}
|
|
11
|
+
function validateAuditFileOptions(options, error) {
|
|
12
|
+
const value = options.path;
|
|
13
|
+
if (typeof value !== 'string' ||
|
|
14
|
+
value.includes('\0') ||
|
|
15
|
+
/[/\\]$/.test(value) ||
|
|
16
|
+
!/^[a-zA-Z0-9_-]+\.jsonl$/.test(path.basename(value)))
|
|
17
|
+
error('path', 'must name a .jsonl file with letters, numbers, underscores or hyphens.');
|
|
18
|
+
for (const key of Object.keys(options)) {
|
|
19
|
+
if (key !== 'path' && key !== 'maxFileSizeMB' && key !== 'retentionDays')
|
|
20
|
+
error(key, 'is not a file audit option.');
|
|
21
|
+
}
|
|
22
|
+
for (const key of ['maxFileSizeMB', 'retentionDays']) {
|
|
23
|
+
const value = options[key];
|
|
24
|
+
if (value !== undefined &&
|
|
25
|
+
(typeof value !== 'number' || !Number.isFinite(value) || value <= 0))
|
|
26
|
+
error(key, 'must be a positive finite number.');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function isMapping(value) {
|
|
30
|
+
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
31
|
+
}
|
|
32
|
+
export function validateAuditConfig(value, error) {
|
|
33
|
+
if (!isMapping(value)) {
|
|
34
|
+
error('', 'must be a mapping.');
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
for (const key of Object.keys(value)) {
|
|
38
|
+
if (![
|
|
39
|
+
'enabled',
|
|
40
|
+
'autoDetect',
|
|
41
|
+
'captureBody',
|
|
42
|
+
'redact',
|
|
43
|
+
'transports',
|
|
44
|
+
].includes(key))
|
|
45
|
+
error(key, 'is not an audit setting.');
|
|
46
|
+
}
|
|
47
|
+
for (const key of ['enabled', 'autoDetect', 'captureBody']) {
|
|
48
|
+
if (value[key] !== undefined && typeof value[key] !== 'boolean')
|
|
49
|
+
error(key, 'must be a boolean.');
|
|
50
|
+
}
|
|
51
|
+
if (value.redact !== undefined)
|
|
52
|
+
validateAuditRedactRules(value.redact, (path, message) => error(path ? `redact.${path}` : 'redact', message));
|
|
53
|
+
if (value.transports === undefined)
|
|
54
|
+
return;
|
|
55
|
+
if (!isMapping(value.transports)) {
|
|
56
|
+
error('transports', 'must be a mapping.');
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
for (const [name, destination] of Object.entries(value.transports)) {
|
|
60
|
+
if (!isAuditName(name)) {
|
|
61
|
+
error('transports', 'contains an invalid destination name.');
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const path = `transports.${name}`;
|
|
65
|
+
if (!isMapping(destination) || !isAuditName(destination.driver)) {
|
|
66
|
+
error(path, 'requires a valid driver name.');
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if (Object.keys(destination).some((key) => key !== 'driver' && key !== 'options'))
|
|
70
|
+
error(path, 'accepts only driver and options.');
|
|
71
|
+
if (destination.options !== undefined && !isMapping(destination.options)) {
|
|
72
|
+
error(`${path}.options`, 'must be a mapping.');
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (value.enabled !== false && destination.driver === 'file')
|
|
76
|
+
validateAuditFileOptions(destination.options ?? {}, (key, message) => error(`${path}.options.${key}`, message));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export function defineAuditConfig(defaults = {}) {
|
|
80
|
+
const values = { ...auditDefaults, ...defaults };
|
|
81
|
+
return Object.assign(() => values, {
|
|
82
|
+
rules: Object.freeze({
|
|
83
|
+
public: Object.freeze([]),
|
|
84
|
+
validators: Object.freeze([validateSection]),
|
|
85
|
+
}),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function validateSection(value, context) {
|
|
89
|
+
validateAuditConfig(value, (path, message) => context.error(path, message));
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAyB,MAAM,aAAa,CAAC;AAuB9E,MAAM,CAAC,MAAM,aAAa,GAEtB;IACF,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,SAAS,GAAG,oCAAoC,CAAC;AAEvD,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,wBAAwB,CAC/B,OAA0C,EAC1C,KAA6C;IAE7C,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3B,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;QACpB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC,yBAAyB,CAA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|
|
2
|
+
export declare class FileAuditOutput {
|
|
3
|
+
private readonly directory;
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly reports;
|
|
6
|
+
private readonly pattern;
|
|
7
|
+
private retentionDays;
|
|
8
|
+
private limit;
|
|
9
|
+
private output?;
|
|
10
|
+
private pending;
|
|
11
|
+
private cleanup?;
|
|
12
|
+
constructor(directory: string, name: string);
|
|
13
|
+
attach(report: Report, maxFileSizeMB: number, retentionDays: number): void;
|
|
14
|
+
start(): void;
|
|
15
|
+
write(line: Buffer, signal: AbortSignal): Promise<void>;
|
|
16
|
+
detach(report: Report, onLastClose: () => void): Promise<void>;
|
|
17
|
+
private run;
|
|
18
|
+
private stopStream;
|
|
19
|
+
private report;
|
|
20
|
+
private openStream;
|
|
21
|
+
private firstSegment;
|
|
22
|
+
private scheduleCleanup;
|
|
23
|
+
private pruneArchives;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=file-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-output.d.ts","sourceRoot":"","sources":["../src/file-output.ts"],"names":[],"mappings":"AAoBA,KAAK,MAAM,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AA+CxC,qBAAa,eAAe;IAUxB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAVvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,MAAM,CAAC,CAAe;IAC9B,OAAO,CAAC,OAAO,CAAuC;IACtD,OAAO,CAAC,OAAO,CAAC,CAAgB;gBAGb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM;IAO/B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAS1E,KAAK,IAAI,IAAI;IAIb,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA6CvD,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB9D,OAAO,CAAC,GAAG;YAMG,UAAU;IAQxB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,UAAU;IAiFlB,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,eAAe;YAQT,aAAa;CAiC5B"}
|