Skip to content

Added authentication for terraform output and terraform taint commands - #556

Merged
rr3khan merged 3 commits into
1Password:mainfrom
juraj-s:patch-1
Sep 23, 2026
Merged

rr3khan merged 3 commits into
1Password:mainfrom
juraj-s:patch-1

Conversation

@juraj-s

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

Copy link
Copy Markdown
Contributor

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.
@rr3khan rr3khan closed this Sep 23, 2026
@rr3khan rr3khan reopened this Sep 23, 2026
@rr3khan

rr3khan commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

@juraj-s Can you fix the conflicts? Once that is done I will be more than happy to approve and merge.

@rr3khan
rr3khan merged commit 713639a into 1Password:main Sep 23, 2026
3 checks passed
@juraj-s
juraj-s deleted the patch-1 branch September 24, 2026 11:17
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.

3 participants