Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GPG key; now tofu is failing #211

Closed
skyzyx opened this issue Feb 10, 2024 · 1 comment
Closed

Added GPG key; now tofu is failing #211

skyzyx opened this issue Feb 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@skyzyx
Copy link
Contributor

skyzyx commented Feb 10, 2024

Thank you for reporting an issue.

Description

Added my GPG key in #206.

Today, I re-ran my complete test suite, which uses Terratest to run the provider through both Terraform and OpenTofu. Now, after adding my GPG key, OpenTofu cannot validate my provider.

Related env vars

env | sort | grep TF_ACC_
# No results.

Output of Terraform

Version

Terraform v1.7.1
on darwin_arm64
+ provider registry.terraform.io/northwood-labs/corefunc v1.3.0

CLI init

$ terraform init -upgrade

Initializing the backend...

Initializing provider plugins...
- Finding northwood-labs/corefunc versions matching "~> 1.0"...
- Installing northwood-labs/corefunc v1.3.0...
- Installed northwood-labs/corefunc v1.3.0 (self-signed, key ID 8D4B026D3C7658F0)

Running through Terratest [source]

================================================================================
Binary /opt/homebrew/opt/tenv/bin/terraform is installed
TF_ACC_TERRAFORM_PATH=/opt/homebrew/opt/tenv/bin/terraform
TF_ACC_PROVIDER_NAMESPACE=northwood-labs
TF_ACC_PROVIDER_HOST=registry.terraform.io
================================================================================

TestTerraform 2024-02-10T16:20:09-07:00 retry.go:91: /opt/homebrew/opt/tenv/bin/terraform [init -upgrade=true -reconfigure -no-color]
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66: Running command /opt/homebrew/opt/tenv/bin/terraform with args [init -upgrade=true -reconfigure -no-color]
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66: Initializing the backend...
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66: Initializing provider plugins...
TestTerraform 2024-02-10T16:20:09-07:00 logger.go:66: - Finding northwood-labs/corefunc versions matching "~> 1.0"...
TestTerraform 2024-02-10T16:20:10-07:00 logger.go:66: - Installing northwood-labs/corefunc v1.3.0...
TestTerraform 2024-02-10T16:20:13-07:00 logger.go:66: - Installed northwood-labs/corefunc v1.3.0 (self-signed, key ID 8D4B026D3C7658F0)

Output of OpenTofu

Version

OpenTofu v1.6.1
on darwin_arm64
+ provider registry.terraform.io/northwood-labs/corefunc v1.3.0

CLI init

$ tofu init -upgrade

Initializing the backend...

Initializing provider plugins...
- Finding northwood-labs/corefunc versions matching "~> 1.0"...
- Installing northwood-labs/corefunc v1.3.0...
╷
│ Error: Failed to install provider
│
│ Error while installing northwood-labs/corefunc v1.3.0: authentication signature from unknown issuer
╵

Running through Terratest [source]

================================================================================
Binary /opt/homebrew/bin/tofu is installed
TF_ACC_TERRAFORM_PATH=/opt/homebrew/bin/tofu
TF_ACC_PROVIDER_NAMESPACE=northwood-labs
TF_ACC_PROVIDER_HOST=registry.opentofu.org
================================================================================

TestTerraform 2024-02-10T16:20:14-07:00 retry.go:91: /opt/homebrew/bin/tofu [init -upgrade=true -reconfigure -no-color]
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66: Running command /opt/homebrew/bin/tofu with args [init -upgrade=true -reconfigure -no-color]
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66: Initializing the backend...
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66: Initializing provider plugins...
TestTerraform 2024-02-10T16:20:14-07:00 logger.go:66: - Finding northwood-labs/corefunc versions matching "~> 1.0"...
TestTerraform 2024-02-10T16:20:15-07:00 logger.go:66: - Installing northwood-labs/corefunc v1.3.0...
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66: Error: Failed to install provider
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66: Error while installing northwood-labs/corefunc v1.3.0: authentication
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66: signature from unknown issuer
TestTerraform 2024-02-10T16:20:18-07:00 logger.go:66:
TestTerraform 2024-02-10T16:20:18-07:00 retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1;
Error: Failed to install provider

Error while installing northwood-labs/corefunc v1.3.0: authentication
signature from unknown issuer
}
--- FAIL: TestTerraform (9.39s)

OpenTofu Version

OpenTofu v1.6.1
on darwin_arm64

OpenTofu Configuration Files

N/A

@skyzyx skyzyx added the bug Something isn't working label Feb 10, 2024
@skyzyx
Copy link
Contributor Author

skyzyx commented Feb 11, 2024

Nevermind. Apparently I'd created a signing key on two different computers from scratch. The actual signing key is from a different machine than what I uploaded here. :/

@skyzyx skyzyx closed this as completed Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant