Run webhook process using job owner

Created on 10 September 2024, 2 months ago

Problem/Motivation

Processes triggered using the webhook, eg importing and potentially auto-accepting translations, occur using the anonymous user. This can be a problem under certain circumstances (permissions and other user stuff). Instead, these processes should run using the job owner, ie whoever created the job.

Steps to reproduce

Create a job and submit. Wait for webhook events. See that webhook events are associated with anonymous.

Proposed resolution

Use account switcher to run the processes as the job owner.

Remaining tasks

Code review.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States charginghawk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024