Fix bug setting PKI issuer enable_aia_url_templating to be set to false (#28832)

Fix bug setting PKI issuer enable_aia_url_templating to be set to false.
This commit is contained in:
Victor Rodriguez
2024-11-04 15:51:01 -05:00
committed by GitHub
parent 38ad49d63b
commit c855f6e982
2 changed files with 5 additions and 1 deletions

View File

@@ -913,7 +913,7 @@ func (b *backend) pathPatchIssuer(ctx context.Context, req *logical.Request, dat
if enableTemplatingRaw, ok := data.GetOk("enable_aia_url_templating"); ok {
enableTemplating := enableTemplatingRaw.(bool)
if enableTemplating != issuer.AIAURIs.EnableTemplating {
issuer.AIAURIs.EnableTemplating = enableTemplating // TODO: Is this correct? If it is, does it need to be backported?
issuer.AIAURIs.EnableTemplating = enableTemplating
modified = true
}
}

4
changelog/28832.txt Normal file
View File

@@ -0,0 +1,4 @@
```release-note:bug
secret/pki: Fix a bug that prevents PKI issuer field enable_aia_url_templating
to be set to false.
```