Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Google Cloud DNS API (dns_gcloud) #1623

Merged
merged 5 commits into from
Aug 21, 2018

Conversation

lenartj
Copy link
Contributor

@lenartj lenartj commented May 25, 2018

See also #180

@Neilpang
Copy link
Member

please move it the last position.

@thejaswip
Copy link

I can see this is not yet merged into dev branch but marked as closed


for i in $(seq 1 120); do
if gcloud dns record-sets changes list \
--zone=lenart \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit hardcoded here xD

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risking being a little more directive than @chessmango , I believe he means you should replace lenart with "$managedZone". ;-)

You might also indicate what sort of testing you've done to speed up acceptance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whops, fixed. Worked for me! :-D

}

_dns_gcloud_remove_rrs() {
if ! xargs --no-run-if-empty gcloud dns record-sets transaction remove \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove xargs here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be more than one value to be removed (a TXT can be multivalue), so we need the xargs.

@jkleckner
Copy link

@thejaswip The security/acme-client: add support for Google Domains API issue is for Google Domains which doesn't have an API while this is for Google Cloud DNS which does. Besides, it is a different project.

| while read -r dnsName name; do
printf "%s\t%s\t%s\n" "${#dnsName}" "$dnsName" "$name"
done \
| sort -n -r | head -n1 | cut -f2,3 | grep '^.*'); then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use _head_n() function ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Neilpang
Copy link
Member

please merge the latest code and check this guide first:
https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide

@jkleckner
Copy link

@lenartj The changes above look reasonably small - any chance to re-submit?

@lenartj
Copy link
Contributor Author

lenartj commented Aug 15, 2018

I've replied to your comments and rebased the code.

About the guide, I think 6/2 is not practical for gcloud; about 6/5 I think I have grep, cut, head, xargs that are not shell builtins (and printf, depending on the shell). It is possible to rewrite the code not use xargs and printf, but I do not have the time for it, sorry.

@Neilpang
Copy link
Member

please merge the latest code.

@Neilpang Neilpang merged commit 329a1e6 into acmesh-official:dev Aug 21, 2018
@lenartj
Copy link
Contributor Author

lenartj commented Aug 21, 2018

Done :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants