console-github-auth

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

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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