Self-hosted runner failing when trying to use new Gitlab runner authentication flow
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- ci-cd
Research direction
Open src/drivers/gitlab.js around line 154 and trace legacy runner-token acquisition before the /user/runners path. Confirm that an undefined token from the legacy endpoint reaches the new authentication flow while preserving the legacy case, and verify the relevant project checks.
Written by the indexing model from the issue text.
Description
The current code for acquiring a runnerToken attempts to fetch a token in the following order:
- Use the legacy endpoint (
/projects/<projectPath> - Use the new runner authentication endpoint (
/user/runners)
However, in the legacy path, the legacy endpoint can return undefined for the token when legacy runner tokens are not enabled. This leads to the null check entry to the new endpoint code path failing.
- Dominant language
- JavaScript
- Stars
- 4.2k
- Forks
- 345
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/cml
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
frontend level2 nsoc26
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Riya-Kharade/PetSathi#401 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
keyxmakerx/Chronicle#3048 ·
Maintainers usually reply within 1 day
-
blast/small refactor risk/medium spend-dem
Difficulty 1/5 Under an hour Newbie friendliness 85/100
chriskelly/MusicWall#85 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day