Côme Chilliet
08bff4cf4a
fix(admin_audit): Survive if file change id after rename (it should not)
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-05-13 23:37:52 +07:00
ailkiv
616716cd6a
refactor: cleanup rollback hook usage
...
Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
2025-04-25 08:25:11 +07:00
Côme Chilliet
61189814e3
fix(admin_audit): Fix incorrect truncation of files path in admin audit log
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-24 09:19:09 +07:00
Côme Chilliet
25f38883f1
fix: Work around false-positive psalm taint error calling print_r in admin_audit
...
Same issue as var_export, print_r is listed as sink but it’s not when
using return:true. Anyway, using the logger context feature is better.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-17 15:24:08 +07:00
Luka Trovic
5750d2afd0
feat(admin_audit): write admin audit log for AnyLoginFailedEvent
...
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2025-02-06 15:39:14 +07:00
Côme Chilliet
1580c8612b
chore(apps): Apply new rector configuration to autouse classes
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-10-15 10:40:25 +07:00
Côme Chilliet
015c5efdb5
fix(admin_audit): Listen to the right events
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-10-03 10:56:42 +07:00
Côme Chilliet
1a4978c4ea
chore: Apply rector configuration to apps folder
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-20 17:51:00 +07:00
provokateurin
9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
Côme Chilliet
957ac81a56
fix(admin_audit): Remove now unused methods and classes
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-10 14:48:15 +07:00
Côme Chilliet
ec37338d73
chore(admin_audit): Fix License headers on new files
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-10 14:06:22 +07:00
Thomas Citharel
f532d3b286
feat(admin_audit): Move admin_audit hooks to modern event listeners
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-09-10 14:06:12 +07:00
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Joas Schilling
774427a03a
fix(adminaudit): Don't crash when creating folder
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-08-15 10:00:22 +07:00
Julius Härtl
1c0f02eea9
fix(admin_audit): Do not log errors for new files
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-08-07 09:50:30 +07:00
greta
d590373ae7
feat(admin_audit): Audit the tag creation
...
Co-authored-by: greta <gretadoci@gmail.com>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: greta <gretadoci@gmail.com>
2024-08-01 11:29:14 +07:00
yemkareems
eae23867f2
fix: renameParams named as renamedNodes and code changed accordingly as suggested in review comments
...
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-06-20 10:54:45 +07:00
yemkareems
953358fdc8
fix: rename params old path passed from before rename to after rename to have one log for rename event
...
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-06-20 10:54:45 +07:00
yemkareems
3e355c4db1
fix: rename logged as beforeRename and afterRename, and in both place getInternalPath is used in place of getPath to make it consistent across the logs
...
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-06-20 10:54:45 +07:00
Andy Scherzinger
5c49a54801
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-26 20:05:04 +07:00
yemkareems
4d228803f7
feat: include file id in audit logs
...
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-30 11:31:01 +07:00
Côme Chilliet
ec5133b739
fix: Apply new coding standard to all files
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:21 +07:00
Hamid Dehnavi
6e53cf2a0f
Make adjustments based on the psalm review
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 16:17:44 +07:00
Hamid Dehnavi
b12e7e3ea4
Refactor admin_audit app
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 16:17:44 +07:00
Côme Chilliet
8bcc2d352e
chore: Fix missing template parameter for IEventListener
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-01-30 10:57:15 +07:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Joas Schilling
abc8ff38cb
fix: Cleanup unused imports and some type deprecations
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-06 10:37:40 +07:00
Arthur Schiwon
79d24bfb8e
Merge pull request #38176 from danialRahimy/master
...
Admin audit app: optimization according to PHP 8
2023-07-05 15:53:00 +07:00
Danial Rahimi
91d50c595f
Admin audit app: optimization according to PHP 8
...
Signed-off-by: Danial Rahimi <daniel_rahimi@outlook.com>
2023-07-05 14:16:37 +07:00
Joas Schilling
eb09053897
feat(admin_audit): Migrate to non-deprecated IEventDispatcher
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-04 12:36:30 +07:00
rakekniven
4fafd861b2
fix(l10n):Aligned spelling of ScienceMesh
2023-04-18 12:08:38 +07:00
Michiel de Jong
c0e84cb512
Add SHARE_TYPE_SCIENCEMESH
...
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
2023-03-08 16:46:55 +07:00
Côme Chilliet
a0f6a6545b
Use TimedJob from OCP instead of OC
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-12-05 10:13:34 +07:00
Carl Schwan
3e0c42e3b3
Fix the logger that is imported for critical actions
...
This use a new interface AuditLogger that makes it easier to
seperate the roles of the various loggers and enforce that we
don't use the wrong one by mistake.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-03-10 16:10:54 +07:00
Joas Schilling
497c5841fc
Allow write audit log to syslog and systemdlog
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-20 10:07:57 +07:00
szaimen
4570bb4f65
Admin Audit - Sharing: createShare - report the full path
...
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-07-22 14:20:05 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Lukas Reschke
1b4428644d
Fix grammar
...
changed removed -> removed
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-01 13:31:10 +07:00
Roeland Jago Douma
c728b1f070
Properly log expiration date removal in audit log
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-19 10:09:48 +07:00
Joas Schilling
99e5367208
Move to another namespace and class name
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-09 12:51:57 +07:00
Joas Schilling
ca939214bd
Allow apps to log actions into the audit_log
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-09 10:32:45 +07:00
Roeland Jago Douma
109b84b025
Add return type to functions
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 08:56:53 +07:00
Roeland Jago Douma
f5dc657e94
Move background job to DI
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 14:57:07 +07:00
Roeland Jago Douma
5ec2323f25
Move admin_audit to LoggerInterface
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 14:51:55 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Julius Härtl
bac1651380
Handle deck share type in audit and dav app
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-09 13:20:23 +07:00
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-05 20:25:24 +07:00
Daniel Kesselberg
096fe20611
Help static code analysis to understand code.
...
It adds proper type hints to private namespace to allow private namespace methods.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-09-16 16:37:17 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
Morris Jobke
7870ca0663
Use the proper IAppContainer and IServerContainer type hints to know which code runs with which container
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-21 20:44:05 +07:00