Skip to content

Conversation

@juraj-s
Copy link

@juraj-s juraj-s commented Oct 1, 2025

Overview

The Terraform shell plugin provides credentials for commands like terraform output and terraform taint.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

How To Test

As an example, the output subcommand is missing from "needsauth" list. This causes the plugin to omit credential injection for the output command.
A key factor is the use of a remote state file in S3, which requires authentication.
As a result, the terraform process fails to receive the credentials in its environment. Instead terraform falls back to the configuration in provider.tf file. Since that file doesn't contain explicit credentials, the backend authentication fails.

Changelog

Added credential injection to the environment for terraform output and terraform taint commands.

The 1Password Terraform shell plugin successfully provides credentials for commands like `terraform apply` and `terraform init`, but it specifically fails to provide them for the `terraform output` command. A key factor is the use of a remote state file in S3, which requires authentication. The issue is not present when credentials are set directly as environment variables.

As an example, the `output` subcommand is missing from this list. I suspect this causes the plugin to omit credential injection for the `output` command. As a result, the terraform process fails to receive the credentials in its environment. Instead terraform falls back to the configuration in `provider.tf` file. Since that file doesn't contain explicit credentials, the backend authentication fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant