From d76488866a0ac95c4792bebb94d982a5c93743b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Sat, 16 Dec 2023 22:10:07 +0100 Subject: [PATCH 1/2] Changed DK Hostmaster to Punktum.dk DK Hostmaster has changed their name to Punktum.dk. --- README.md | 14 +++++++------- README.md.template | 2 +- doc.go | 12 ++++++------ function.go | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 2f08c81..2d1fa84 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# DNSimple DK Hostmaster DS upload +# DNSimple Punktum DS upload [![GoDoc](https://godoc.org/github.com/reload/dnsimple-dk-hostmaster-ds-upload?status.svg)](https://godoc.org/github.com/reload/dnsimple-dk-hostmaster-ds-upload) @@ -6,9 +6,9 @@ Package function is a Google Cloud Function receiving webhook events from DNSimple (https://dnsimple.com/webhooks). It reacts to `dnssec.rotation_start` and `dnssec.rotation_complete` -events and passes the new DS record on to DK Hostmaster via their DS +events and passes the new DS record on to Punktum.dk via their DS Update protocol -(https://github.com/DK-Hostmaster/dsu-service-specification). +(https://github.com/Punktum-dk/dsu-service-specification). The cloud function needs to be configured through environment variables. @@ -20,16 +20,16 @@ The `DNSIMPLE_TOKEN` environment variable is a DNSimple API token that is used to retrieve DS records from DNsimple. For the domains in your DNSimple account that you would like this -cloud function to update in DK Hostmaster you need to add three +cloud function to update in Punktum.dk you need to add three environment variables. They should all be prefix with the Domain ID from DNSimple (e.g. 123456). -`123456_DOMAIN`: the (apex) domain name in DK Hostmaster. +`123456_DOMAIN`: the (apex) domain name in Punktum.dk. -`123456_USERID`: the DK Hostmaster handle you use to login to their +`123456_USERID`: the Punktum.dk handle you use to login to their self service. -`123456_PASSWORD`: the DK Hostmaster password you use to login to +`123456_PASSWORD`: the Punktum.dk password you use to login to their self service. diff --git a/README.md.template b/README.md.template index 2a80ae3..478048d 100644 --- a/README.md.template +++ b/README.md.template @@ -1,4 +1,4 @@ -# DNSimple DK Hostmaster DS upload +# DNSimple Punktum DS upload [![GoDoc](https://godoc.org/github.com/reload/dnsimple-dk-hostmaster-ds-upload?status.svg)](https://godoc.org/github.com/reload/dnsimple-dk-hostmaster-ds-upload) diff --git a/doc.go b/doc.go index fc28f90..5f355f7 100644 --- a/doc.go +++ b/doc.go @@ -3,9 +3,9 @@ Package function is a Google Cloud Function receiving webhook events from DNSimple (https://dnsimple.com/webhooks). It reacts to `dnssec.rotation_start` and `dnssec.rotation_complete` -events and passes the new DS record on to DK Hostmaster via their DS +events and passes the new DS record on to Punktum.dk via their DS Update protocol -(https://github.com/DK-Hostmaster/dsu-service-specification). +(https://github.com/Punktum-dk/dsu-service-specification). The cloud function needs to be configured through environment variables. @@ -17,16 +17,16 @@ The `DNSIMPLE_TOKEN` environment variable is a DNSimple API token that is used to retrieve DS records from DNsimple. For the domains in your DNSimple account that you would like this -cloud function to update in DK Hostmaster you need to add three +cloud function to update in Punktum.dk you need to add three environment variables. They should all be prefix with the Domain ID from DNSimple (e.g. 123456). -`123456_DOMAIN`: the (apex) domain name in DK Hostmaster. +`123456_DOMAIN`: the (apex) domain name in Punktum.dk. -`123456_USERID`: the DK Hostmaster handle you use to login to their +`123456_USERID`: the Punktum.dk handle you use to login to their self service. -`123456_PASSWORD`: the DK Hostmaster password you use to login to +`123456_PASSWORD`: the Punktum.dk password you use to login to their self service. */ package function diff --git a/function.go b/function.go index 98ef201..51407ff 100644 --- a/function.go +++ b/function.go @@ -82,11 +82,11 @@ func Handle(w http.ResponseWriter, r *http.Request) { config, err := envConfig(dnssecEvent.DelegationSignerRecord.DomainID) if err != nil { - log.Printf("No DK Hostmaster / DNSimple config for %d: %s", dnssecEvent.DelegationSignerRecord.DomainID, err.Error()) + log.Printf("No Punktum.dk / DNSimple config for %d: %s", dnssecEvent.DelegationSignerRecord.DomainID, err.Error()) // It's OK if there is no configuration. It could be a - // domain not handled by DK Hostmaster and/or DNSSEC. - // We send a 200 OK so DNSimple will not retry. - http.Error(w, "Missing DK Hostmaster / DNSimple credentials config", http.StatusOK) + // domain not handled by Punktum.dk and/or DNSSEC. We + // send a 200 OK so DNSimple will not retry. + http.Error(w, "Missing Punktum.dk / DNSimple credentials config", http.StatusOK) return } From 1ca5d9b8a612ea1d5144b30c66a3c5ab5fd80f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Sat, 16 Dec 2023 22:20:52 +0100 Subject: [PATCH 2/2] Bump go version to 1.21 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b9e1f5b..07a12e9 100644 --- a/go.mod +++ b/go.mod @@ -24,4 +24,4 @@ require ( google.golang.org/protobuf v1.31.0 // indirect ) -go 1.19 +go 1.21