Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use create_runner access token scope for registering gitlab runners #8066

Open
1 task done
gardar opened this issue Mar 7, 2024 · 3 comments
Open
1 task done

Use create_runner access token scope for registering gitlab runners #8066

gardar opened this issue Mar 7, 2024 · 3 comments
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@gardar
Copy link

gardar commented Mar 7, 2024

Summary

Now that gitlab has introduced the create_runner access token scope it would be great if it were possible to create runners using the new with "new" runner creation workflow using only that scope as currently it needs the api scope.

Issue Type

Feature Idea

Component Name

gitlab_runner

Additional Information

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) labels Mar 7, 2024
@lgatellier
Copy link
Contributor

Hi @gardar,

The create_runner scope allows to create a new runner, but does not allow to list and update runners, which is required for idempotency (a strong Ansible convention).

Thus, if you want to restrict the API token scope (for evident security reasons) and neither need to update your runner's details nor delete a runner, give it a try with read_api and create_runner scopes instead of api. Not 100% sure about it, but theorically, it would work. 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

3 participants