You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`@cap-js/audit-logging` is a CDS plugin providing integration to the SAP Audit Log service as well as out-of-the-box personal data-related audit logging based on annotations.
@@ -19,14 +20,18 @@ cd incidents-app
19
20
npm i
20
21
```
21
22
23
+
22
24
## Setup
25
+
23
26
To enable audit logging, simply add this self-configuring plugin package to your project:
24
27
25
28
```sh
26
29
npm add @cap-js/audit-logging
27
30
```
28
31
32
+
29
33
## Annotate Personal Data
34
+
30
35
Identify entities and elements (potentially) holding personal data using `@PersonalData` annotations. Create a `db/data-privacy.cds` file and add the following:
31
36
32
37
```cds
@@ -69,6 +74,7 @@ Learn more about the annotations in capire:
69
74
70
75
71
76
## Test-Drive Locally
77
+
72
78
You've prepared everything to log personal data-related events. Let's see that in action.
73
79
74
80
Start the server as usual:
@@ -120,14 +126,17 @@ The end-to-end out-of-the-box functionality provided by this plugin requires a p
120
126
121
127
[_Learn more about custom audit logging._](https://cap.cloud.sap/docs/guides/data-privacy/audit-logging#custom-audit-logging)
122
128
129
+
123
130
## Support, Feedback, Contributing
124
131
125
132
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/cap-js/audit-logging/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
126
133
134
+
127
135
## Code of Conduct
128
136
129
137
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience foreveryone. By participatingin this project, you agree to abide by its [Code of Conduct](CODE_OF_CONDUCT.md) at all times.
130
138
139
+
131
140
## Licensing
132
141
133
142
Copyright 2023 SAP SE or an SAP affiliate company and contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/cap-js/audit-logging).
0 commit comments