[enhancement] github runner: support just-in-time (JIT) runner configuration
メンテナーはふだん 4 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Read the self-hosted runner documentation linked in the issue and trace the --install-ghactions-runner CLI options and the code that generates runner user data. Check how existing token, App and PAT options are validated and how runner startup differs across platforms. Done means the JIT config file option starts a one-job ephemeral runner, conflicting options return an error, and registration tokens do not appear in user data or Pulumi state.
索引モデルが issue の本文から書いたものです。
説明
Problem
Reading https://github.com/redhat-developer/mapt/blob/main/docs/self-hosted-runner.md, the GitHub runner is registered with a registration token written into the instance's cloud-init user data (config.sh --token … --replace). That token is valid for one hour and isn't bound to one runner. Any process on the host can read it from the instance metadata service, and so can anyone with access to the cloud account or the Pulumi state. Within the hour, they can register other runners on the same repository or organization, with any name and labels, or replace an existing runner of the same name.
This matters when the jobs on the runner aren't fully trusted, or when the cloud account and the GitHub organization belong to different parties.
Proposal
Support GitHub's just-in-time (JIT) runners (REST API, security hardening guide). A JIT config registers exactly one ephemeral runner, whose name, labels and runner group are set by whoever generated it. It can't register another runner, and it's useless once consumed.
- Add
--ghactions-runner-jitconfig-file <path>: a JIT config generated by the caller, read from a file so it stays out of process listings. It excludes the token, App and PAT options, and--ghactions-runner-labels/--ghactions-runner-ephemeral(the config sets them). - With it, the snippets start the runner with
run.sh --jitconfig <config>instead ofconfig.sh, on every platform. - Optionally, with
--ghactions-app-*, mapt generates a JIT config itself instead of a registration token, so App users get the same benefit.
Related: #851.
Acceptance
mapt aws rhel create --install-ghactions-runner --ghactions-runner-jitconfig-file jit.txt …brings up a runner that takes one job and is then removed by GitHub.- No registration token appears in the user data or the Pulumi state.
- Combining the option with a token, App or PAT option exits with an error.
- 主要言語
- Go
- スター
- 25
- フォーク
- 41
- 平均マージ
- 5日 3時間
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
redhat-developer/mapt のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
redhat-developer/mapt#972 ·
メンテナーはふだん 4 日以内に返信
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key再び着手できるかも @abdulazeem-tk4vr が 153 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redhat-developer/mapt#817 · コメント 12 件 ·
メンテナーはふだん 4 日以内に返信
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
redhat-developer/mapt#968 · リアクション 1 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement provider/IBMCLOUD
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
redhat-developer/mapt#955 ·
メンテナーはふだん 4 日以内に返信
-
[bug] ibm-power: job containers run at MTU 1500 on a 1450 network再び着手できるかも @atishay-kasliwal が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug provider/IBMCLOUD
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
redhat-developer/mapt#954 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
redhat-developer/mapt の issue をすべて見る
似ている issue
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
v2fly/domain-list-community#4307 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
seanb4t/codegraph-go#380 ·
メンテナーはふだん 1 日以内に返信
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mattabate/life-distributable#232 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信