Skip to content

About

OpenTofu and Terragrunt credential helper for Gruntwork's OCI registry.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

docker-credential-gruntwork

The official Gruntwork credential helper for registry.gruntwork.io, the Gruntwork OCI registry. OpenTofu and Terragrunt use it to authenticate when they pull modules, units and stacks from the registry. It implements the Docker credential helper protocol.

Install

With mise, add it to your mise.toml:

[tool_alias]
docker-credential-gruntwork = "github:gruntwork-io/docker-credential-gruntwork"

[tools]
docker-credential-gruntwork = "0.1.0"

Releases include binaries for Linux (x86_64, arm64), macOS (Intel, Apple silicon) and Windows (x86_64). To install one by hand, download it from Releases, rename it to docker-credential-gruntwork (docker-credential-gruntwork.exe on Windows), and put it on your PATH. On macOS, clear a browser download's quarantine with xattr -d com.apple.quarantine docker-credential-gruntwork. SECURITY.md explains how to verify it.

Set up

Add this to your OpenTofu CLI configuration: ~/.tofurc on Linux and macOS, or %APPDATA%\tofu.rc on Windows.

oci_credentials "registry.gruntwork.io" {
  docker_credentials_helper = "gruntwork"
}

OpenTofu and Terragrunt both read it, and run docker-credential-gruntwork from your PATH whenever they pull from registry.gruntwork.io.

Sign in

On your machine, sign in to the Gruntwork Developer Portal with Terragrunt. As of Terragrunt 1.3, terragrunt login needs --experiment tg-login:

terragrunt --experiment tg-login login

We expect a later Terragrunt release to drop the flag.

In CI, the helper works in Gruntwork Pipelines on GitHub and GitLab.

How it works

See ARCHITECTURE.md.

Development

See CONTRIBUTING.md.

About

OpenTofu and Terragrunt credential helper for Gruntwork's OCI registry.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages