NewsCrawler.org

GATES issues GitHub App tokens to GitHub Actions without exposing the Private Key

GitHub ActionsからPATもGitHub App Private Keyも駆逐する
GATES issues GitHub App tokens to GitHub Actions without exposing the Private Key
Image: zenn.dev

The author built GATES (GitHub App Token Exchange System), a tool that lets GitHub Actions workflows get a GitHub App Installation Access Token[1] without reading the App's Private Key. The author describes the usual approach, which passes the Private Key to workflows and is often shared through Organization Secrets. The author says this raises the risk of a leak, because anyone who can edit a workflow can take the key out.

GATES runs on AWS Lambda and AWS KMS[2]. The workflow proves its identity with GitHub OIDC[3] and gets temporary credentials from AWS STS, then calls Lambda through IAM. Lambda verifies the JWT[4] from OIDC, identifies the calling repository and decides whether a token may be issued. KMS holds the imported Private Key and signs the GitHub App JWT, so even Lambda never sees the key in plain text.

Users call a dedicated action and specify the target repositories, permissions and Lambda connection details. GATES has no HTTP endpoint of its own; Lambda is invoked only through the Lambda Invoke API. GATES is limited to GitHub Actions and AWS, with one GitHub App per Lambda and permissions limited to repository permissions.

Repository GATES github.com

Open source tool that lets GitHub Actions workflows get GitHub App tokens via AWS Lambda and KMS, without exposing the App's Private Key.

Stars: 0Forks: 0License: Apache-2.0Updated:

Read the original zenn.dev

Sources

  • Zenn JA

    GitHub ActionsからPATもGitHub App Private Keyも駆逐する

    36 likes12 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page