Skip to content

Commit

Permalink
Fix bug setting PKI issuer enable_aia_url_templating to be set to fal…
Browse files Browse the repository at this point in the history
…se (#28832)

Fix bug setting PKI issuer enable_aia_url_templating to be set to false.
  • Loading branch information
victorr authored Nov 4, 2024
1 parent 38ad49d commit c855f6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/pki/path_fetch_issuers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 4 additions & 0 deletions changelog/28832.txt
Original file line number Diff line number Diff line change
@@ -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.
```

0 comments on commit c855f6e

Please sign in to comment.