Bug: GCP provider seems to be broken #238

Closed
opened 2025-11-20 04:21:52 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @orbatschow on GitHub (Dec 20, 2022).

Originally assigned to: @qdm12 on GitHub.

TLDR: Describe your issue in a one liner here

GCP provider seems to be broken due to usage of option.WithHTTPClient(client). Maybe related:
https://github.com/qdm12/ddns-updater/pull/337#discussion_r1053617465

  1. Is this urgent: Yes

  2. DNS provider(s) you use: GCP

  3. Program version:
    Running version latest built on 2022-12-14T20:23:40Z (commit 3fd82ab)

  4. What are you using to run the container:
    Docker/Local/Kubernetes

  5. Extra information (optional)

Logs:

Defaulted container "ddns-updater" out of: ddns-updater, volume-mount-hack (init)
========================================
========================================
============= ddns-updater =============
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2022-12-14T20:23:40Z (commit 3fd82ab)

🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new
🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new
✨ New feature? https://github.com/qdm12/ddns-updater/issues/new
☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2022-12-20T18:17:57Z INFO reading JSON config from file /var/updater/config.json
2022-12-20T18:17:57Z INFO Found single setting to update record
2022-12-20T18:17:57Z INFO Reading history from database: domain <REDACTED> host <REDACTED>
2022-12-20T18:17:57Z INFO [backup] disabled
2022-12-20T18:17:57Z INFO [healthcheck server] listening on 127.0.0.1:9999
2022-12-20T18:17:57Z INFO [http server] listening on :8000
2022-12-20T18:17:58Z WARN cannot DNS resolve <REDACTED> after 5 tries: lookup <REDACTED> on 10.43.0.10:53: no such host
2022-12-20T18:17:58Z INFO IPv4 address of <REDACTED> is <nil> and your IPv4 address is 93.217.181.176
2022-12-20T18:17:58Z INFO Updating record [domain: <REDACTED> | host: <REDACTED> | provider: gcp | ip: ipv4] to use <REDACTED>
2022-12-20T18:17:58Z ERROR getting record resource set: googleapi: Error 401: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "method": "cloud.dns.api.v1.ResourceRecordSetsService.Get",
      "service": "dns.googleapis.com"
    },
    "reason": "CREDENTIALS_MISSING"
  }
]

More details:
Reason: required, Message: Login Required.

Configuration file (remove your credentials!):

{
  "settings": [
    {
      "provider": "gcp",
      "project": "<REDACTED>",
      "zone": "<REDACTED>",
      "credentials": <REDACTED>,
      "domain": "<REDACTED>",
      "host": "<REDACTED>",
      "ip_version": "ipv4"
    }
  ]
}

Originally created by @orbatschow on GitHub (Dec 20, 2022). Originally assigned to: @qdm12 on GitHub. **TLDR**: *Describe your issue in a one liner here* GCP provider seems to be broken due to usage of `option.WithHTTPClient(client)`. Maybe related: https://github.com/qdm12/ddns-updater/pull/337#discussion_r1053617465 1. Is this urgent: Yes 2. DNS provider(s) you use: GCP 3. Program version: Running version latest built on 2022-12-14T20:23:40Z (commit 3fd82ab) 5. What are you using to run the container: Docker/Local/Kubernetes 8. Extra information (optional) Logs: ```log Defaulted container "ddns-updater" out of: ddns-updater, volume-mount-hack (init) ======================================== ======================================== ============= ddns-updater ============= ======================================== =========== Made with ❤️ by ============ ======= https://github.com/qdm12 ======= ======================================== ======================================== Running version latest built on 2022-12-14T20:23:40Z (commit 3fd82ab) 🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new 🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new ✨ New feature? https://github.com/qdm12/ddns-updater/issues/new ☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new 💻 Email? quentin.mcgaw@gmail.com 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 2022-12-20T18:17:57Z INFO reading JSON config from file /var/updater/config.json 2022-12-20T18:17:57Z INFO Found single setting to update record 2022-12-20T18:17:57Z INFO Reading history from database: domain <REDACTED> host <REDACTED> 2022-12-20T18:17:57Z INFO [backup] disabled 2022-12-20T18:17:57Z INFO [healthcheck server] listening on 127.0.0.1:9999 2022-12-20T18:17:57Z INFO [http server] listening on :8000 2022-12-20T18:17:58Z WARN cannot DNS resolve <REDACTED> after 5 tries: lookup <REDACTED> on 10.43.0.10:53: no such host 2022-12-20T18:17:58Z INFO IPv4 address of <REDACTED> is <nil> and your IPv4 address is 93.217.181.176 2022-12-20T18:17:58Z INFO Updating record [domain: <REDACTED> | host: <REDACTED> | provider: gcp | ip: ipv4] to use <REDACTED> 2022-12-20T18:17:58Z ERROR getting record resource set: googleapi: Error 401: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. Details: [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "domain": "googleapis.com", "metadata": { "method": "cloud.dns.api.v1.ResourceRecordSetsService.Get", "service": "dns.googleapis.com" }, "reason": "CREDENTIALS_MISSING" } ] More details: Reason: required, Message: Login Required. ``` Configuration file (**remove your credentials!**): ```json { "settings": [ { "provider": "gcp", "project": "<REDACTED>", "zone": "<REDACTED>", "credentials": <REDACTED>, "domain": "<REDACTED>", "host": "<REDACTED>", "ip_version": "ipv4" } ] } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#238