Forward Performance Standby requests when configuring root credentials for AWS, LDAP and DB engines (#30039)

This commit is contained in:
vinay-gopalan 2025-03-27 14:32:49 -07:00 committed by GitHub
parent c23c05fab9
commit d16b0beee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 0 deletions

View file

@ -107,6 +107,8 @@ func (b *backend) pathConfigClient() *framework.Path {
OperationVerb: "configure",
OperationSuffix: "client",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
logical.UpdateOperation: &framework.PathOperation{
Callback: b.pathConfigClientCreateUpdate,
@ -114,6 +116,8 @@ func (b *backend) pathConfigClient() *framework.Path {
OperationVerb: "configure",
OperationSuffix: "client",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
logical.DeleteOperation: &framework.PathOperation{
Callback: b.pathConfigClientDelete,

View file

@ -44,6 +44,8 @@ func pathConfig(b *backend) *framework.Path {
DisplayAttrs: &framework.DisplayAttributes{
OperationVerb: "configure-auth",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
},

View file

@ -96,6 +96,8 @@ func pathConfigRoot(b *backend) *framework.Path {
OperationVerb: "configure",
OperationSuffix: "root-iam-credentials",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
logical.CreateOperation: &framework.PathOperation{
Callback: b.pathConfigRootWrite,
@ -103,6 +105,8 @@ func pathConfigRoot(b *backend) *framework.Path {
OperationVerb: "configure",
OperationSuffix: "root-iam-credentials",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
},

View file

@ -288,6 +288,8 @@ func pathConfigurePluginConnection(b *databaseBackend) *framework.Path {
OperationVerb: "configure",
OperationSuffix: "connection",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
logical.UpdateOperation: &framework.PathOperation{
Callback: b.connectionWriteHandler(),
@ -295,6 +297,8 @@ func pathConfigurePluginConnection(b *databaseBackend) *framework.Path {
OperationVerb: "configure",
OperationSuffix: "connection",
},
ForwardPerformanceSecondary: true,
ForwardPerformanceStandby: true,
},
logical.ReadOperation: &framework.PathOperation{
Callback: b.connectionReadHandler(),

15
changelog/30039.txt Normal file
View file

@ -0,0 +1,15 @@
```release-note:bug
secrets/aws: fix a panic when a performance standby node attempts to write/update config.
```
```release-note:bug
auth/aws: fix a panic when a performance standby node attempts to write/update config.
```
```release-note:bug
auth/ldap: fix a panic when a performance standby node attempts to write/update config.
```
```release-note:bug
secrets/db: fix a panic when a performance standby node attempts to write/update config.
```