Skip to content

Commit

Permalink
Forward cert signing requests to the primary on perf secondaries as w…
Browse files Browse the repository at this point in the history
…ell as perf standbys (#12180) (#12248)
  • Loading branch information
sgmiller committed Aug 4, 2021
1 parent 436d893 commit c48b322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/pki/path_issue_sign.go
Expand Up @@ -188,7 +188,7 @@ func (b *backend) pathSignVerbatim(ctx context.Context, req *logical.Request, da

func (b *backend) pathIssueSignCert(ctx context.Context, req *logical.Request, data *framework.FieldData, role *roleEntry, useCSR, useCSRValues bool) (*logical.Response, error) {
// If storing the certificate and on a performance standby, forward this request on to the primary
if !role.NoStore && b.System().ReplicationState().HasState(consts.ReplicationPerformanceStandby) {
if !role.NoStore && b.System().ReplicationState().HasState(consts.ReplicationPerformanceStandby|consts.ReplicationPerformanceSecondary) {
return nil, logical.ErrReadOnly
}

Expand Down

0 comments on commit c48b322

Please sign in to comment.