denominator icon indicating copy to clipboard operation
denominator copied to clipboard

Add google cloud dns

Open codefromthecrypt opened this issue 9 years ago • 6 comments

Should be easy as the api is very similar to route53

https://cloud.google.com/dns/api/v1beta1/

credential type should be "bearerToken" (also easy)

We could later add support for a JWTBearerTokenFlow, to automate issue of bearer tokens for the google dns oauth scopes, given an account email and a private key

codefromthecrypt avatar Mar 08 '15 17:03 codefromthecrypt

Anyone that wants to pick this up can ping me at erjohnso [at] google [dot] com and I can see about getting you some free credits for development.

Regarding auth, we have two file formats (JSON and P12). If code is run on a Google Compute Engine instance with proper scopes (dns), you can use a 'refresh' token by talking to GCE's internal metadata service. Happy to provide more details when needed.

erjohnso avatar Mar 11 '15 17:03 erjohnso

Thanks, @erjohnso WRT the metadata service, this seems to behave like IAM instance roles. In this case, when someone doesn't specify credentials to route53, the implicit provider tries to access the metadata api. Here's the test case https://github.com/Netflix/denominator/blob/master/route53/src/test/java/denominator/route53/InstanceProfileCredentialsProviderTest.java

codefromthecrypt avatar Mar 11 '15 17:03 codefromthecrypt

@erjohnso so.. "clouddns" is taken. What should be the short name for GoogleCloudDNS?

codefromthecrypt avatar Mar 12 '15 15:03 codefromthecrypt

@adriancole works for me! I actually like that better anyway so people know it's Google.

erjohnso avatar Mar 12 '15 19:03 erjohnso

ok "googleclouddns" it is!

codefromthecrypt avatar Mar 12 '15 20:03 codefromthecrypt

I'd love to see this get built; anything my folks can do to help?

milesward avatar Jun 05 '16 16:06 milesward