Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #174 from reload/punktum.dk
Browse files Browse the repository at this point in the history
punktum.dk
  • Loading branch information
arnested authored Dec 16, 2023
2 parents c9146c6 + 1ca5d9b commit 87309c6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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)

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.

Expand All @@ -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.


Expand Down
2 changes: 1 addition & 1 deletion README.md.template
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
12 changes: 6 additions & 6 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ require (
google.golang.org/protobuf v1.31.0 // indirect
)

go 1.19
go 1.21

0 comments on commit 87309c6

Please sign in to comment.