iac-controller

module
v0.0.0-...-77c6198 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: GPL-3.0

README

Cloud Run IaC Controller (MVP)

This controller exposes a single endpoint used by CI pipelines to request short-lived GCP access tokens (via Service Account impersonation).

Endpoints

  • GET /healthz
  • POST /v1/credentials (Cloud Run IAM invoker required)

Required env vars (set at deploy time)

  • GCP_PROJECT
  • PLAN_SERVICE_ACCOUNT (email)
  • APPLY_SERVICE_ACCOUNT (email)

How to Deploy the Controller

Please read DEPLOY.md file.

Directories

Path Synopsis
cmd
admin command
controller command
internal
core/ports
Package ports is a generated GoMock package.
Package ports is a generated GoMock package.
iam
middleware
FILE: pkg/middleware/webhook_auth.go
FILE: pkg/middleware/webhook_auth.go
scm
Package scm is a generated GoMock package.
Package scm is a generated GoMock package.
webhook
FILE: internal/webhook/event.go
FILE: internal/webhook/event.go
webhook/auth
FILE: internal/webhook/auth/basic.go
FILE: internal/webhook/auth/basic.go
webhook/providers
FILE: internal/webhook/providers/azure.go
FILE: internal/webhook/providers/azure.go
pkg
api
log

Jump to

Keyboard shortcuts

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