1. 10 Mar, 2022 4 commits
  2. 29 Nov, 2021 12 commits
  3. 09 Nov, 2021 1 commit
  4. 23 Sep, 2021 1 commit
  5. 14 Sep, 2021 22 commits
    • dominik.rimpf's avatar
      upd: go 1.17 · 4f3330d5
      dominik.rimpf authored
      4f3330d5
    • dominik.rimpf's avatar
      fix documentation · 426e3a7b
      dominik.rimpf authored
      426e3a7b
    • dominik.rimpf's avatar
      cleanup & solved todos · 3fa31c11
      dominik.rimpf authored
      3fa31c11
    • dominik.rimpf's avatar
      CHG: create not existing fqdns instead of failing · 6b4e7d30
      dominik.rimpf authored
      this closes #14
      6b4e7d30
    • dominik.rimpf's avatar
      cleanup readme.md · 0a5e9d52
      dominik.rimpf authored
      0a5e9d52
    • dominik.rimpf's avatar
    • dominik.rimpf's avatar
      add missing tests · d0d17adb
      dominik.rimpf authored
      d0d17adb
    • dominik.rimpf's avatar
      cf87852e
    • dominik.rimpf's avatar
      more tests (netvs_ta_generators.go) · c7a5b6df
      dominik.rimpf authored
      c7a5b6df
    • dominik.rimpf's avatar
      FIX: certbot challenge is in CERTBOT_VALIDATION, not _TOKEN · b06c1fff
      dominik.rimpf authored
      this closes #13
      b06c1fff
    • dominik.rimpf's avatar
      fix: typo · 295cbf04
      dominik.rimpf authored
      295cbf04
    • heiko.reese's avatar
      Add goreleaser metadata to --help output. · f1c4454d
      heiko.reese authored and dominik.rimpf's avatar dominik.rimpf committed
      diff --git a/cmd/certbot_netvs_hooks/certbot_netvs_auth_hook/main.go b/cmd/certbot_netvs_hooks/certbot_netvs_auth_hook/main.go
      index d9a3934..cb94bff 100644
      --- a/cmd/certbot_netvs_hooks/certbot_netvs_auth_hook/main.go
      +++ b/cmd/certbot_netvs_hooks/certbot_netvs_auth_hook/main.go
      @@ -2,12 +2,12 @@ package main
      
       import (
       	"fmt"
      -	"log"
      -	"os"
      -
       	"git.scc.kit.edu/KIT-CA/acme4netvs/v2"
       	"github.com/k0kubun/pp"
       	flag "github.com/spf13/pflag"
      +	"log"
      +	"os"
      +	"path"
       )
      
       var (
      @@ -21,13 +21,21 @@ var (
       	apiClient *acme4netvs.NETVSClient
       )
      
      +// goreleaser variables
      +var (
      +	version string = "unknown"
      +	commit  string = "unknown"
      +	date    string = "unknown"
      +	builtBy string = "unknown"
      +)
      +
       func init() {
       	var err error
      
       	// custom help message
       	flag.Usage = func() {
      -		fmt.Fprint(os.Stderr, "This is usually called directly by certbot:\n\n")
      -		fmt.Fprintf(os.Stderr, "  %s [OPTIONS]\n\n", os.Args[0])
      +		fmt.Fprint(os.Stderr, "Usage (this is usually called directly by certbot):\n\n")
      +		fmt.Fprintf(os.Stderr, "  %s [OPTIONS]\n\n", path.Base(os.Args[0]))
       		fmt.Fprint(os.Stderr, "OPTIONS:\n\n")
       		flag.PrintDefaults()
       		fmt.Fprint(os.Stderr, `
      @@ -43,6 +51,7 @@ Optional environment variables:
         CERTBOT_ALL_DOMAINS: A comma-separated list of all domains challenged for the current certificate
      
       `)
      +		fmt.Fprintf(os.Stderr, "Version %s build on %s (commit %s)\n", version, date, commit)
       		fmt.Fprintln(os.Stderr, acme4netvs.RELEASE_URL_TEXT)
       		os.Exit(0)
       	}
      diff --git a/cmd/certbot_netvs_hooks/certbot_netvs_cleanup_hook/main.go b/cmd/certbot_netvs_hooks/certbot_netvs_cleanup_hook/main.go
      index 5983207..8df40b5 100644
      --- a/cmd/certbot_netvs_hooks/certbot_netvs_cleanup_hook/main.go
      +++ b/cmd/certbot_netvs_hooks/certbot_netvs_cleanup_hook/main.go
      @@ -4,6 +4,7 @@ import (
       	"fmt"
       	"log"
       	"os"
      +	"path"
      
       	"git.scc.kit.edu/KIT-CA/acme4netvs/v2"
       	"github.com/k0kubun/pp"
      @@ -21,13 +22,21 @@ var (
       	apiClient *acme4netvs.NETVSClient
       )
      
      +// goreleaser variables
      +var (
      +	version string = "unknown"
      +	commit  string = "unknown"
      +	date    string = "unknown"
      +	builtBy string = "unknown"
      +)
      +
       func init() {
       	var err error
      
       	// custom help message
       	flag.Usage = func() {
      -		fmt.Fprint(os.Stderr, "This is usually called directly by certbot:\n\n")
      -		fmt.Fprintf(os.Stderr, "  %s [OPTIONS]\n\n", os.Args[0])
      +		fmt.Fprint(os.Stderr, "Usage (this is usually called directly by certbot):\n\n")
      +		fmt.Fprintf(os.Stderr, "  %s [OPTIONS]\n\n", path.Base(os.Args[0]))
       		fmt.Fprint(os.Stderr, "OPTIONS:\n\n")
       		flag.PrintDefaults()
       		fmt.Fprint(os.Stderr, `
      @@ -44,6 +53,7 @@ Optional environment variables:
         CERTBOT_AUTH_OUTPUT: Whatever the auth script wrote to stdout
      
       `)
      +		fmt.Fprintf(os.Stderr, "Version %s build on %s (commit %s)\n", version, date, commit)
       		fmt.Fprintln(os.Stderr, acme4netvs.RELEASE_URL_TEXT)
       		os.Exit(0)
       	}
      diff --git a/cmd/dehydrated_netvs_hook/main.go b/cmd/dehydrated_netvs_hook/main.go
      index ec3aa7a..d13e11e 100644
      --- a/cmd/dehydrated_netvs_hook/main.go
      +++ b/cmd/dehydrated_netvs_hook/main.go
      @@ -4,6 +4,7 @@ import (
       	"fmt"
       	"log"
       	"os"
      +	"path"
      
       	flag "github.com/spf13/pflag"
      
      @@ -19,15 +20,25 @@ var (
       	apiClient *acme4netvs.NETVSClient
       )
      
      +// goreleaser variables
      +var (
      +	version string = "unknown"
      +	commit  string = "unknown"
      +	date    string = "unknown"
      +	builtBy string = "unknown"
      +)
      +
       func init() {
       	var err error
      
       	// custom help message
       	flag.Usage = func() {
      -		fmt.Fprint(os.Stderr, "This is usually called directly by dehydrated:\n\n")
      -		fmt.Fprintf(os.Stderr, "  %s [OPTIONS] OPERATION DOMAIN CHALLENGE_TOKEN DNS-01-TOKEN\n\n", os.Args[0])
      +		fmt.Fprint(os.Stderr, "Usage (this is usually called directly by certbot):\n\n")
      +		fmt.Fprintf(os.Stderr, "  %s [OPTIONS] OPERATION DOMAIN CHALLENGE_TOKEN DNS-01-TOKEN\n\n", path.Base(os.Args[0]))
       		fmt.Fprint(os.Stderr, "OPTIONS:\n\n")
       		flag.PrintDefaults()
      +		fmt.Fprintln(os.Stderr, "")
      +		fmt.Fprintf(os.Stderr, "Version %s build on %s (commit %s)\n", version, date, commit)
       		fmt.Fprintln(os.Stderr, acme4netvs.RELEASE_URL_TEXT)
       		os.Exit(0)
       	}
      f1c4454d
    • heiko.reese's avatar
      Ignore platforms that are either EOL or very uncommon · a3e1b240
      heiko.reese authored and dominik.rimpf's avatar dominik.rimpf committed
      a3e1b240
    • heiko.reese's avatar
      Added canonical download URL to --help (fixes #12). · a5f66968
      heiko.reese authored and dominik.rimpf's avatar dominik.rimpf committed
      a5f66968
    • dominik.rimpf's avatar
      1d7741d2
    • dominik.rimpf's avatar
      fix coverage · 0bb70aab
      dominik.rimpf authored
      0bb70aab
    • dominik.rimpf's avatar
      FIX: test / coverage command · 1271a8ec
      dominik.rimpf authored
      1271a8ec
    • dominik.rimpf's avatar
      fix token · b1e15bb5
      dominik.rimpf authored
      b1e15bb5
    • dominik.rimpf's avatar
      try export test results · 066435ac
      dominik.rimpf authored
      066435ac
    • dominik.rimpf's avatar
      redone gitlab-ci rules · 3f3c57ae
      dominik.rimpf authored
      3f3c57ae
    • dominik.rimpf's avatar
      fix MR pipelines · 1f2561b6
      dominik.rimpf authored
      1f2561b6
    • dominik.rimpf's avatar
      add releasing mechanism & cleanup ci file · 3ba9a03a
      dominik.rimpf authored
      3ba9a03a