function

package module
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 15 Imported by: 0

README

DNSimple Punktum DS upload

Go reference

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 Punktum.dk via their DS Update protocol (https://github.com/Punktum-dk/dsu-service-specification).

The cloud function needs to be configured through environment variables.

The TOKEN environment variable is the access token that should be added as URL query parameter to the trigger URL (e.g. ?token=abcdefeghijklmnopqrstuvxyz0123456789).

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 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 Punktum.dk.

123456_USERID: the Punktum.dk handle you use to login to their self service.

123456_PASSWORD: the Punktum.dk password you use to login to their self service.

Documentation

Overview

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 Punktum.dk via their DS Update protocol (https://github.com/Punktum-dk/dsu-service-specification).

The cloud function needs to be configured through environment variables.

The `TOKEN` environment variable is the access token that should be added as URL query parameter to the trigger URL (e.g. `?token=abcdefeghijklmnopqrstuvxyz0123456789`).

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 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 Punktum.dk.

`123456_USERID`: the Punktum.dk handle you use to login to their self service.

`123456_PASSWORD`: the Punktum.dk password you use to login to their self service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(w http.ResponseWriter, r *http.Request)

Handle is the entrypoint for the Google Cloud Function.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL