mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Return BadRequest when validating sign options.
This commit is contained in:
@@ -173,7 +173,7 @@ func (a *Authority) SignSSH(ctx context.Context, key ssh.PublicKey, opts provisi
|
||||
// validate the given SSHOptions
|
||||
case provisioner.SSHCertOptionsValidator:
|
||||
if err := o.Valid(opts); err != nil {
|
||||
return nil, errs.ForbiddenErr(err, "error validating ssh certificate options")
|
||||
return nil, errs.BadRequestErr(err, "error validating ssh certificate options")
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user