mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
PKI - Allow performance secondaries to generate and store certificates locally to them (#13759)
* PKI - Allow performance secondaries to generate and store certificates locally to them * changelog Co-authored-by: divyapola5 <divya@hashicorp.com>
This commit is contained in:
@@ -189,7 +189,8 @@ 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|consts.ReplicationPerformanceSecondary) {
|
||||
// Allow performance secondaries to generate and store certificates locally to them.
|
||||
if !role.NoStore && b.System().ReplicationState().HasState(consts.ReplicationPerformanceStandby) {
|
||||
return nil, logical.ErrReadOnly
|
||||
}
|
||||
|
||||
|
||||
3
changelog/13759.txt
Normal file
3
changelog/13759.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
secrets/pki: Fix regression causing performance secondaries to forward certificate generation to the primary.
|
||||
```
|
||||
Reference in New Issue
Block a user