Fix security issues with cache by proxying access #107

Merged
Kwonunn merged 25 commits from Kwonunn/act:fix/cache-proxy into main 2025-03-21 14:19:38 +00:00
Member

This is the act-side patch for a partial overhaul of the cache system to fix some access control issues with caches.

This will be followed shortly by a pull request to forgejo-runner to use the new updated version of forgejo-act.

@Gusted @earl-warren @viceice

This is the act-side patch for a partial overhaul of the cache system to fix some access control issues with caches. This will be followed shortly by a pull request to forgejo-runner to use the new updated version of forgejo-act. @Gusted @earl-warren @viceice
Contributor

cascading-pr updated at forgejo/runner#501

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/501
Kwonunn force-pushed fix/cache-proxy from 40cf7f2775
Some checks failed
checks / unit (pull_request) Failing after 10s
checks / integration (pull_request) Has been skipped
/ cascade (pull_request_target) Failing after 2m49s
to 2a60f56954
Some checks failed
/ cascade (pull_request_target) Failing after 1m20s
checks / unit (pull_request) Failing after 15s
checks / integration (pull_request) Has been skipped
2025-03-21 13:21:21 +00:00
Compare
Contributor

cascading-pr updated at forgejo/runner#501

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/501
Contributor
https://code.forgejo.org/forgejo/act/pulls/108 should fix the false negative at https://code.forgejo.org/forgejo/act/actions/runs/527/jobs/0
Contributor
@earl-warren wrote in https://code.forgejo.org/forgejo/act/pulls/107#issuecomment-35319: > #108 should fix the false negative at https://code.forgejo.org/forgejo/act/actions/runs/527/jobs/0 Merged, you can rebase now 🚀
Kwonunn force-pushed fix/cache-proxy from 2a60f56954
Some checks failed
/ cascade (pull_request_target) Failing after 1m20s
checks / unit (pull_request) Failing after 15s
checks / integration (pull_request) Has been skipped
to 0391b0c951
Some checks failed
checks / unit (pull_request) Successful in 1m5s
checks / integration (pull_request) Successful in 29s
/ cascade (pull_request_target) Failing after 21s
2025-03-21 13:45:53 +00:00
Compare
Contributor

cascading-pr updated at forgejo/runner#501

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/501
Contributor
https://code.forgejo.org/forgejo/runner/actions/runs/3473/jobs/0 this error appears to be related?
Author
Member

Since there is stuff changing on both the act side and the forgejo-runner side, they would both need to be updated at the same time. This error occurs because it tries to build the old version of forgejo-runner with the new version of act which doesn't work because some function signatures have changed.

I think the way to fix this is to manually verify that the new version of the runner will build with the new version of act, and then merge this PR. Then opening the PR for forgejo-runner should work normally.

Since there is stuff changing on both the act side and the forgejo-runner side, they would both need to be updated at the same time. This error occurs because it tries to build the old version of forgejo-runner with the new version of act which doesn't work because some function signatures have changed. I think the way to fix this is to manually verify that the new version of the runner will build with the new version of act, and then merge this PR. Then opening the PR for forgejo-runner should work normally.
Kwonunn deleted branch fix/cache-proxy 2025-03-21 14:19:38 +00:00
viceice approved these changes 2025-03-21 19:55:55 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
4 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/act!107
No description provided.