Skip to content

Commit dc9dd2e

Browse files
committed
caddytls: Still provision permission module if ask is specified
Only needed for JSON configs, and only temporarily as the ask property is deprecated and will be removed.
1 parent 567d96c commit dc9dd2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/caddytls/tls.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ func (t *TLS) Provision(ctx caddy.Context) error {
192192
if err != nil {
193193
return fmt.Errorf("preparing 'ask' endpoint: %v", err)
194194
}
195+
perm := PermissionByHTTP{
196+
Endpoint: t.Automation.OnDemand.Ask,
197+
}
198+
if err := perm.Provision(ctx); err != nil {
199+
return fmt.Errorf("provisioning 'ask' module: %v", err)
200+
}
201+
t.Automation.OnDemand.permission = perm
195202
}
196203

197204
// automation/management policies

0 commit comments

Comments
 (0)