Add artifacts v4 jwt to job message and accept it#28885
Merged
lunny merged 4 commits intoFeb 2, 2024
Conversation
3174bee to
33eaca4
Compare
lunny
reviewed
Jan 22, 2024
lunny
approved these changes
Jan 22, 2024
Contributor
Author
|
Do we want to pass the jwt token only via old ...this is only one possible way to pass the jwt. |
fuxiaohei
approved these changes
Feb 2, 2024
lunny
approved these changes
Feb 2, 2024
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Feb 4, 2024
* giteaofficial/main: Add `must-change-password` cli parameter (go-gitea#27626) Include username in email headers (go-gitea#28981) Update tool dependencies (go-gitea#29030) Add artifacts v4 jwt to job message and accept it (go-gitea#28885) Pass es2020 to esbuild-loader as well (go-gitea#29027) Fix default avatar image size in PR diff page (go-gitea#28971) Update JS and PY dependencies, build for `es2020` browsers (go-gitea#28977)
silverwind
pushed a commit
to silverwind/gitea
that referenced
this pull request
Feb 20, 2024
This change allows act_runner / actions_runner to use jwt tokens for `ACTIONS_RUNTIME_TOKEN` that are compatible with actions/upload-artifact@v4. The official Artifact actions are now validating and extracting the jwt claim scp to get the runid and jobid, the old artifact backend also needs to accept the same token jwt. --- Related to go-gitea#28853 I'm not familar with the auth system, maybe you know how to improve this I have tested - the jwt token is a valid token for artifact uploading - the jwt token can be parsed by actions/upload-artifact@v4 and passes their scp claim validation Next steps would be a new artifacts@v4 backend. ~~I'm linking the act_runner change soonish.~~ act_runner change to make the change effective and use jwt tokens <https://gitea.com/gitea/act_runner/pulls/471>
wustus
pushed a commit
to wustus/act_runner-dind
that referenced
this pull request
Feb 21, 2024
Needs go-gitea/gitea#28885 to provide jwt if sent by server Could fix #459, but that has not been verified. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/471 Reviewed-by: delvh <dev.lh@web.de> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Christopher Homberger <christopher.homberger@web.de> Co-committed-by: Christopher Homberger <christopher.homberger@web.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change allows act_runner / actions_runner to use jwt tokens for
ACTIONS_RUNTIME_TOKENthat are compatible with actions/upload-artifact@v4.The official Artifact actions are now validating and extracting the jwt claim scp to get the runid and jobid, the old artifact backend also needs to accept the same token jwt.
Related to #28853
I'm not familar with the auth system, maybe you know how to improve this
I have tested
Next steps would be a new artifacts@v4 backend.
I'm linking the act_runner change soonish.act_runner change to make the change effective and use jwt tokens https://gitea.com/gitea/act_runner/pulls/471