Граф коммитов

74753 Коммитов

Автор SHA1 Сообщение Дата
Côme Chilliet 9449f6438d fix(webhooks): Fix tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 6e38b48534 feat(webhooks): Add \SensitiveValue attribute to authData parameter in all classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet c940ba015c fix(webhooks): Fix migration uri length
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 6c7931b846 fix(webhooks): Add Nextcloud certificate bundle to client options
This way importing a certificate with occ security:certificate:import
 will allow to use it for webhooks.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 74e5812c26 fix(webhooks): Refuse webhooks registration if auth header is used without auth data
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 621c068680 fix(webhooks): fix crash when headers is null with header auth method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet bb2cb45340 fix: Remove superfluous antislash from event name to avoid problems
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 3bc43b2a34 fix: Move caching to the mapper instead
Application class cannot use DI, and having the cache in the mapper
 allows for invalidating it when inserting or updating a webhook
 registration.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 98f3ea657c fix: Cache webhooks listened events for 5min
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet e111d2e26c fix: Make webhook event serialization opt-in with a new interface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 35d5d90dc0 chore: rename Index.php to ListWebhooks.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet cccda66c7d fix: Fix errors spotted by reviewers, fix `@throws` annotations
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet d3c06d5dea fix: Fix eventFilter definition in ResponseDefinitions
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 8aae03c66c fix: Fix TODOs about authentication data, list possible auth methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 85e0407aad feat: Add support for headers and authentication headers in webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 261f08e631 feat: Add app_api app id to saved information about webhook
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 75b2ed4c79 chore: Add tests for the PHPMongoQuery class
It appears that it does not match Mongo current documentation exactly so
 we should look into adapting it. Having equality autodetect regex is a
 bit weird.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 7fe3f1cc70 fix: Add event filter to openapi
Somehow this does not work in the ocs_api_viewer app, so we should look
 into better specifying format for eventFilter.
Ideally it should also be set as in body, not query.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 144bdd73f9 feat: Add event filtering to webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 5dd9c2f8e8 feat: Add admin delegation for webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 3b64e525fb feat: Add command to list registered webhooks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 734aad8934 feat: Make node events serializable
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet c3d4d2aad1 Revert "feat: Add support for webhook listeners"
This reverts commit 3b790df0127b2bf95e8fe3a8460aa3813e58bef8.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet cf265592d8 Revert "feat: Serialize event data and author userid to webhook"
This reverts commit 45d3bd6e30e112a89ffe2fcfdd3ba4bbdc384346.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet aa974a4322 feat: Add webhooks application
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet d835d23e3a feat: Serialize event data and author userid to webhook
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Côme Chilliet 8d18607f80 feat: Add support for webhook listeners
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-06-11 14:10:29 +02:00
Andy Scherzinger 81e90ae592
Merge pull request #45779 from nextcloud/bugfix/noid/update-php-requirement
fix(CI): Update PHP requirement in dev dependencies
2024-06-11 14:09:02 +02:00
Joas Schilling daa78858c4
fix(CI): Add all required extensions to openapi action
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-11 12:11:11 +02:00
Joas Schilling 0d383f1f66
fix(logger): Fix scoped PSR logger when running psalm:ci
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-11 11:52:18 +02:00
Joas Schilling bfb3c23ba5
fix(CI): Update PHP requirement in dev dependencies
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-11 10:52:24 +02:00
Louis bab91258e3
Merge pull request #45669 from nextcloud/fix/fix-encryption-legacy-reshare
fix: Autodetect legacy filekey instead of trusting the header for legacy header
2024-06-11 09:54:12 +02:00
Nextcloud bot cef6d500d3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-11 00:19:32 +00:00
Andy Scherzinger 44ed10d7fa
Merge pull request #45755 from nextcloud/chore/noid/spdx-batch15
Replace icons with latest `Material Symbol` versions
2024-06-10 19:20:22 +02:00
Andy Scherzinger cca4978b80
chore: Update comments app icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:50:28 +02:00
nextcloud-command 2cd4449340 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-10 16:45:43 +00:00
Andy Scherzinger 83e85f4271
chore: Add further media resource license info items
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:14:45 +02:00
Andy Scherzinger 38202c0523
chore: update mastodon icon with original resource
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:14:44 +02:00
Andy Scherzinger 74aa004d56
chore: Update license infos
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:14:44 +02:00
Andy Scherzinger e6d6853e1a
chore: Replace icons with latest Material Design versions
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-10 18:14:44 +02:00
Josh 4e3aaec9df
Merge pull request #45737 from nextcloud/jtr/fix-appmanager-checkappforX-log
fix(AppManager): Name correct method in error + show error string
2024-06-10 11:56:08 -04:00
Ferdinand Thiessen 21a0009553
Merge pull request #44967 from nextcloud/perf/sharing-events
perf(files_sharing): Move events to listener classes and registration instead of boot
2024-06-10 11:57:53 +02:00
Ferdinand Thiessen 9d0200ca6b
Merge pull request #45120 from nextcloud/bugfix/noid/sensitive-dav-forbidden-logging
fix(dav): Don't log access control as error
2024-06-10 11:56:33 +02:00
Nextcloud bot 7451105e3f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-10 00:19:40 +00:00
Josh c494a0cc63
fix(AppManager): Name correct method in error + show error string
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-06-09 09:36:32 -04:00
Nextcloud bot 1a6440c353
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-09 00:19:20 +00:00
dependabot[bot] 34f5cba5b3
Merge pull request #45401 from nextcloud/dependabot/npm_and_yarn/nextcloud/logger-3.0.2 2024-06-08 15:38:07 +00:00
nextcloud-command 12b542b943 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-06-08 15:11:53 +00:00
dependabot[bot] 3f3e5ba54f
chore(deps): bump @nextcloud/logger from 2.7.0 to 3.0.2
Dependabot couldn't find the original pull request head commit, 83d876402b0b31ce41268cbc5fb678cf7ad7c66b.
2024-06-08 15:04:40 +00:00
John Molakvoæ eafb935df1
Merge pull request #45718 from nextcloud/dependabot/npm_and_yarn/cypress-split-1.24.0 2024-06-08 16:59:17 +02:00