console-github-auth

command module
v0.0.0-...-b7db57a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 12 Imported by: 0

README

console-github-auth

How it works

  • This component is deployed to cloud run (org: nais.io, project: github-tenant-auth), by nais-terraform-modules.
  • It has credentials (app id / private key) for the nais/console github application.
  • nais-terraform-modules grants invoke permissions to the console service account.
  • When starting up, console-github-auth finds the appropriate installation id to create tokens for, based on the GITHUB_ORG env variable.
  • When console needs to do requests targetting the GitHub API, it will:
    • use it's application default credentials to get an id token for it's own service account
    • use this to call https://console-github-auth-something.run.app/createInstallationToken
    • use the token returned by console-github-auth with the GitHub API. This token can only do operations targeting the specified GitHub organization.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL