Ponos task authentication
Closes #1451 (closed)
I tested locally by running make build CLIENT_BRANCH=ponos-auth
in tasks
after pushing api-client!219 (merged), and found that a random PDF import, which normally runs with my internal user, failed with this error:
apistar.exceptions.ErrorResponse: {'worker_run_id': ['Only an internal user can create an element with a worker run.']}
Which proves that the task was authenticated as the process creator (an instance admin, but not internal) and not the configured internal token.
Merge request reports
Activity
changed milestone to %Arkindex 1.4.1
requested review from @babadie
mentioned in issue #1467 (closed)
added 11 commits
-
8ec16732 - 1 commit from branch
master
- f79a2977 - Remove arkindex.ponos from gitignore
- 4095908d - Add Task.token
- a2fbcd94 - Add task authentication
- f3c0b0d0 - Allow task auth on RetrieveSecret and UpdateWorkerActivity
- 77588f8a - Properly handle a missing process
- ad7c4b0f - Add tests for RetrieveSecret
- 883256e6 - Properly convert bytes token to str
- 14aaffac - Add task token automatically in all Ponos tasks
- afe9c801 - Restrict UpdateWorkerActivity to the task's process
- 9b86eb41 - Fix data migration
Toggle commit list-
8ec16732 - 1 commit from branch
added 11 commits
-
9f548db4 - 1 commit from branch
master
- 4c365ff3 - Remove arkindex.ponos from gitignore
- e6b60690 - Add Task.token
- 2575c219 - Add task authentication
- 3e821d28 - Allow task auth on RetrieveSecret and UpdateWorkerActivity
- 9395a9e5 - Properly handle a missing process
- a599b85e - Add tests for RetrieveSecret
- 0ae6ddfc - Properly convert bytes token to str
- c14651ad - Add task token automatically in all Ponos tasks
- d3f77b9e - Restrict UpdateWorkerActivity to the task's process
- 879bb133 - Fix data migration
Toggle commit list-
9f548db4 - 1 commit from branch
- Automatically resolved by Erwan Rouchet
- Resolved by Erwan Rouchet
added 2 commits
mentioned in merge request !1937 (merged)