mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
GCP request is missing required authentication credential #389
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @linchenqian on GitHub (Apr 30, 2024).
TLDR: using GCP provider is unable to update due to 401 error "CREDENTIALS_MISSING"
Is this urgent: Yes
DNS provider(s) you use: GCP
Program version:
Running version 2.6.0 built on 2024-02-03T18:57:00Z (commit c338c28ce3ab3aa9948f0fe133307b75fe6d34d2)What are you using to run the container: docker in Mac / windows binary(exe file) / container in TrueNas
Extra information (optional)
Logs:
Configuration file:
Host OS: Windows10/MacOS/Debian12
@qdm12 commented on GitHub (Apr 30, 2024):
Update your image,
Running version latest built on 2020-03-13T01:30:06Zis 4 years old.@linchenqian commented on GitHub (Apr 30, 2024):
Sorry forgot to update that line in the template, it's actually 2.6.0 built on 2024-02-03
@linchenqian commented on GitHub (Apr 30, 2024):
can you check again please?
@qdm12 commented on GitHub (May 1, 2024):
Can you try with the latest image (pull it)? I recently upgraded the gcp dependency, maybe this solves it?
@linchenqian commented on GitHub (May 3, 2024):
updated to the latest version, still having same issue:
Full logs:
@qdm12 commented on GitHub (May 3, 2024):
Last questions before I jump in verifying the code, was it ever working before for you? Have you tried with another program to verify your credentials are correct? Thanks!
@linchenqian commented on GitHub (May 4, 2024):
No, this is first time I use ddns-updater. I tried on multiple platform, all result in same error.
Yes, I have verified the credentials with gcloud cli
and also I tried copy part of the source code from
update.goto a new program for testing, and it was able to pass the point where the error was thrown (getResourceRecordSet). and get result from google cloud dns. here is the code of the test program:@qdm12 commented on GitHub (May 5, 2024):
Hmm strange, your code looks rather similar to the one in ddns-updater, maybe it's just the json credentials not being parsed/read correctly. I've done two things:
"type"field present (commit093e8154f3)qmcgaw/ddns-updater:pr-710which logs the JSON credentials, can you please try it and report if the JSON credentials are well formed?Thanks!
@qdm12 commented on GitHub (Jun 14, 2024):
If you modify the line
to
Does it still work?
I'm digging in the google sdk to hopefully throw it out, and it seems like plugging in your own client just does not care about authentication; so that could be why it doesn't work??
@qdm12 commented on GitHub (Jun 15, 2024):
Hi @linchenqian I just pushed
a84a1d664awhich removes the dependency on the SDK, and it should work (with the custom http client, oauth2, the credentials.json, everything, hopefully!). Please try it with docker and the latest image (docker pull qmcgaw/ddns-updater). Thanks!@qdm12 commented on GitHub (Sep 20, 2024):
Closing due to inactivity.