changeset 257:3882106b0d87 inbox

new audit-logs permission
author Alain Mazy <am@orthanc.team>
date Thu, 17 Jul 2025 12:42:58 +0200
parents 28abb0c74264
children 3f2a3192594a
files NEWS Plugin/DefaultConfiguration.json
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed Jul 16 09:18:32 2025 +0200
+++ b/NEWS	Thu Jul 17 12:42:58 2025 +0200
@@ -11,7 +11,13 @@
   provides it.
 * The User profile can now contain an "id" field if the auth-service
   provides it.
-* New experimental feature: audit-logs (TODO) - config "EnableAuditLogs"
+* New experimental feature: audit-logs
+  - Enabled by the "EnableAuditLogs" configuration.
+  - Audit-logs are currently handled by the PostgreSQL plugin and can be 
+    browsed through the route /plugins/postgresql/audit-logs.
+  - New default permission "audit-logs" to grant access to the 
+    "/plugins/postgresql/audit-logs" route.
+
 
 
 2025-07-14 - v 0.9.4
--- a/Plugin/DefaultConfiguration.json	Wed Jul 16 09:18:32 2025 +0200
+++ b/Plugin/DefaultConfiguration.json	Thu Jul 17 12:42:58 2025 +0200
@@ -128,8 +128,10 @@
             // permission settings
             ["put", "^/auth/settings/roles$", "admin-permissions"],
             ["get", "^/auth/settings/roles$", "admin-permissions"],
-            ["get", "^/auth/settings/permissions$", "admin-permissions"]
- 
+            ["get", "^/auth/settings/permissions$", "admin-permissions"],
+
+            // audit-logs
+            ["get", "^/plugins/postgresql/audit-logs$", "admin-permissions|audit-logs"]
         ]
     }
 }
\ No newline at end of file