Need: Reduce students' right in action runner #93
Labels
No Label
bug
component
executor
component
framework
component
parser
component
UI
duplicate
enhancement
help wanted
invalid
priority
p0
priority
p1
priority
p2
priority
p3
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/JOJ3#93
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thanks to Cai Yuxiang's idea, I have found that its very simple for student to bypass JOJ and do whatever they want in the runner without alarming TAs.
Basically, students only need to delete JOJ command in the
yamlfiles and put whatever commands they want. Since theHealth-checkis triggered by JOJ, noHealth-checkwill be run without JOJ command so the action ends with green tick.Then, e.g., since
jojrepo is mounted under/home/tt/, students could easily usels -Raandcatto find the hidden cases.Also, students has
sudopermission in the runner, it's possible for students to ddos the server.You can try this and see if it works.
Yes I have tried and it worked. Here is the procedures:
I modify push.yaml and run
ls /home/tt/.config/joj/xxxand this action provides the output. Then I usegit restore source=xxxx -- .gitea/workflows/push.yamland push again, the action is triggered normally. TAs won't find out unless they check the details of every action.OK. Wrong setup will grant unnecessary permission to that user. Now it is enforced when push in course-joj repo is triggered.
Now enforced in runner-images.