aboutsummaryrefslogtreecommitdiff
path: root/pkg/policy/wildcard.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/policy/wildcard.go')
-rw-r--r--pkg/policy/wildcard.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/policy/wildcard.go b/pkg/policy/wildcard.go
index c67e1d9..b0bdf61 100644
--- a/pkg/policy/wildcard.go
+++ b/pkg/policy/wildcard.go
@@ -38,7 +38,7 @@ func (w *Wildcards) match(sans []string, notAfter time.Time) bool {
// 2. the certificate expired before the BootstrapAt timestamp.
type Wildcard struct {
BootstrapAt time.Time `json:"bootstrap_at"`
- Wildcard string `json:"wildcard"`
+ Wildcard string `json:"suffix"`
Excludes []string `json:"excludes,omitempty"`
}
@@ -52,10 +52,10 @@ func (w *Wildcard) UnmarshalJSON(data []byte) error {
func (w *Wildcard) Validate() error {
if w.BootstrapAt.IsZero() {
- return fmt.Errorf("bootstrap time is required")
+ return fmt.Errorf("bootstrap_at is required")
}
if len(w.Wildcard) == 0 {
- return fmt.Errorf("wildcard is required")
+ return fmt.Errorf("suffix is required")
}
return nil
}