Giter Club home page Giter Club logo

Comments (7)

ldez avatar ldez commented on May 23, 2024

Hello,

can you provide more information about your configuration?

dial tcp: lookup dns.REGION.oraclecloud.com on 169.254.169.254:53: no such host

It feels like a local DNS problem: the DNS at 169.254.169.254:53 doesn't have information about dns.REGION.oraclecloud.com.
I think it's not related to lego.

Tested with setting ORACLE_DEFAULT_REALM also.

This is not an env var supported by lego or the Oracle API client, then I'm not sure to understand.

Also, the error message, that you provided, is not complete, some important parts are missing.

from lego.

zbooyo avatar zbooyo commented on May 23, 2024

This is my definition of acme_certificate resource:

resource "acme_certificate" "self" {
  for_each = toset(var.certificate_fqdns)

  account_key_pem         = acme_registration.self.account_key_pem
  certificate_request_pem = tls_cert_request.self[each.key].cert_request_pem

  dns_challenge {
    provider = "oraclecloud"
    config = {
      OCI_COMPARTMENT_OCID   = var.dns_provider.OCI_COMPARTMENT_OCID
      OCI_PRIVKEY_FILE       = "oci_private_key.pem"
      OCI_PUBKEY_FINGERPRINT = var.dns_provider.OCI_PUBKEY_FINGERPRINT
      OCI_REGION             = var.dns_provider.OCI_REGION
      OCI_TENANCY_OCID       = var.dns_provider.OCI_TENANCY_OCID
      OCI_USER_OCID          = var.dns_provider.OCI_USER_OCID
      OCI_DEFAULT_REALM      = var.dns_provider.OCI_DEFAULT_REALM
    }
  }
}

OCI_DEFAULT_REALM is set to: "oraclecloud10.com"

OCI terraform resources work properly - doing api calls in oraclecloud10.com domain.
Without setting OCI_DEFAULT_REALM in dns_challenge error is the same.

from lego.

zbooyo avatar zbooyo commented on May 23, 2024

from lego.

ldez avatar ldez commented on May 23, 2024

OCI_DEFAULT_REALM is not an env var managed by lego or Terraform.

And I don't find anything about this env var inside the Oracle API client used by lego.

lego/go.mod

Line 61 in 8623f0d

github.com/oracle/oci-go-sdk v24.3.0+incompatible

Currently, the realm is defined by the region.

Oracle API client has changed their module versioning with v25, lego uses v24, and the latest version is v65.

I will try to update the Oracle API client to v65.

from lego.

zbooyo avatar zbooyo commented on May 23, 2024

from lego.

ldez avatar ldez commented on May 23, 2024

As explained in my previous message lego uses v24 of the API client, so the client doesn't have the same elements as the master branch of this client.

oracle/oci-go-sdk@v24.3.0...v65.63.1

from lego.

zbooyo avatar zbooyo commented on May 23, 2024

from lego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.