Skip to content

Commit

Permalink
caddytls: Still provision permission module if ask is specified
Browse files Browse the repository at this point in the history
Only needed for JSON configs, and only temporarily as the ask property is deprecated and will be removed.
  • Loading branch information
mholt committed Apr 13, 2024
1 parent 567d96c commit dc9dd2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/caddytls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ func (t *TLS) Provision(ctx caddy.Context) error {
if err != nil {
return fmt.Errorf("preparing 'ask' endpoint: %v", err)
}
perm := PermissionByHTTP{
Endpoint: t.Automation.OnDemand.Ask,
}
if err := perm.Provision(ctx); err != nil {
return fmt.Errorf("provisioning 'ask' module: %v", err)
}
t.Automation.OnDemand.permission = perm
}

// automation/management policies
Expand Down

0 comments on commit dc9dd2e

Please sign in to comment.