oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
753 stars 672 forks source link

Using an encrypted API signing key does not work #2109

Open mthmulders opened 4 months ago

mthmulders commented 4 months ago

Community Note

Terraform Version and Provider Version

Terraform v1.8.3
on darwin_arm64
+ provider registry.terraform.io/oracle/oci v5.41.0

Affected Resource(s)

affected_resources = terraform

Terraform Configuration Files

terraform {
  required_providers {
    oci = {
      source  = "oracle/oci"
      version = "~> 5.41.0"
    }
  }
}

provider "oci" {
  tenancy_ocid         = "<redacted>"
  user_ocid            = "<redacted>"
  fingerprint          = "<redacted>"
  private_key_path     = "<redacted>"
  private_key_password = "<redacted>"
  region               = "<redacted>"
}

resource "oci_identity_compartment" "test" {
  compartment_id = "<redacted>"
  description    = "Test"
  name           = "test"
}

Debug Output

n/a

Panic Output

n/a

Expected Behavior

The "test" compartment should be created.

Actual Behavior

Error: 401-NotAuthenticated, Failed to verify the HTTP(S) Signature

Steps to Reproduce

  1. Create an API signing key and encrypt it.
  2. Extract the public key and register that in the Oracle Cloud dashboard.
  3. Configure Terraform as described above.
  4. Run terraform apply.

Important Factoids

tf-oci-pub commented 4 months ago

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.